refactor(agents): relocate example blocks to body (reviewer/planning agents)
This commit is contained in:
parent
27a7573b06
commit
b148b6f8b8
6 changed files with 120 additions and 108 deletions
|
|
@ -4,24 +4,6 @@ description: |
|
|||
Use this agent to decompose an trekplan into self-contained headless sessions.
|
||||
Reads a plan file, analyzes step dependencies, groups steps into sessions,
|
||||
identifies parallelism, and generates session specs + dependency graph + launch script.
|
||||
|
||||
<example>
|
||||
Context: User wants to run a plan across multiple headless sessions
|
||||
user: "/trekplan --decompose .claude/plans/trekplan-2026-04-06-auth-refactor.md"
|
||||
assistant: "Launching session-decomposer to split the plan into headless sessions."
|
||||
<commentary>
|
||||
The --decompose flag triggers this agent to analyze and split the plan.
|
||||
</commentary>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
Context: User has a large plan and wants parallel execution
|
||||
user: "Split this plan into sessions I can run in parallel"
|
||||
assistant: "I'll use the session-decomposer to identify parallel session groups."
|
||||
<commentary>
|
||||
Plan decomposition request for parallel headless execution.
|
||||
</commentary>
|
||||
</example>
|
||||
model: opus
|
||||
color: green
|
||||
tools: ["Read", "Glob", "Grep", "Write"]
|
||||
|
|
@ -310,3 +292,23 @@ After all sessions complete, run:
|
|||
wrong sequentiality only costs time.
|
||||
- **Verify file existence.** Use Glob to confirm that files referenced in the
|
||||
plan actually exist before assigning them to sessions.
|
||||
|
||||
## When to use — examples
|
||||
|
||||
<example>
|
||||
Context: User wants to run a plan across multiple headless sessions
|
||||
user: "/trekplan --decompose .claude/plans/trekplan-2026-04-06-auth-refactor.md"
|
||||
assistant: "Launching session-decomposer to split the plan into headless sessions."
|
||||
<commentary>
|
||||
The --decompose flag triggers this agent to analyze and split the plan.
|
||||
</commentary>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
Context: User has a large plan and wants parallel execution
|
||||
user: "Split this plan into sessions I can run in parallel"
|
||||
assistant: "I'll use the session-decomposer to identify parallel session groups."
|
||||
<commentary>
|
||||
Plan decomposition request for parallel headless execution.
|
||||
</commentary>
|
||||
</example>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue