refactor(agents): relocate example blocks to body (retrieval agents)
This commit is contained in:
parent
816bf2a5fc
commit
27a7573b06
6 changed files with 120 additions and 108 deletions
|
|
@ -5,24 +5,6 @@ description: |
|
|||
Produces a structured conventions report covering naming, directory layout,
|
||||
import style, error handling, test patterns, git commit style, and
|
||||
documentation patterns. Uses concrete examples from the codebase.
|
||||
|
||||
<example>
|
||||
Context: Voyage exploration phase for a medium+ codebase
|
||||
user: "/trekplan Add authentication to the API"
|
||||
assistant: "Launching convention-scanner to discover coding patterns."
|
||||
<commentary>
|
||||
Phase 5 of trekplan triggers this agent for medium+ codebases (50+ files).
|
||||
</commentary>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
Context: User wants to understand a project's conventions before contributing
|
||||
user: "What are the coding conventions in this project?"
|
||||
assistant: "I'll use the convention-scanner agent to analyze the codebase."
|
||||
<commentary>
|
||||
Direct convention discovery request triggers the agent.
|
||||
</commentary>
|
||||
</example>
|
||||
model: opus
|
||||
color: yellow
|
||||
tools: ["Read", "Glob", "Grep", "Bash"]
|
||||
|
|
@ -159,3 +141,23 @@ Based on existing conventions, new code should:
|
|||
than scanning everything.
|
||||
- **Stay focused.** This is about conventions — not architecture, dependencies, or risks.
|
||||
Those are handled by other agents.
|
||||
|
||||
## When to use — examples
|
||||
|
||||
<example>
|
||||
Context: Voyage exploration phase for a medium+ codebase
|
||||
user: "/trekplan Add authentication to the API"
|
||||
assistant: "Launching convention-scanner to discover coding patterns."
|
||||
<commentary>
|
||||
Phase 5 of trekplan triggers this agent for medium+ codebases (50+ files).
|
||||
</commentary>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
Context: User wants to understand a project's conventions before contributing
|
||||
user: "What are the coding conventions in this project?"
|
||||
assistant: "I'll use the convention-scanner agent to analyze the codebase."
|
||||
<commentary>
|
||||
Direct convention discovery request triggers the agent.
|
||||
</commentary>
|
||||
</example>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue