|
| 1 | +--- |
| 2 | +description: Create an implementation-ready plan without applying changes: research, spec, and plan review. |
| 3 | +agent: lead |
| 4 | +--- |
| 5 | + |
| 6 | + |
| 7 | +Objective: |
| 8 | + |
| 9 | +$ARGUMENTS |
| 10 | + |
| 11 | +Run a deterministic plan-only flow. |
| 12 | + |
| 13 | +Contract: `lead -> researcher -> specifier -> reviewer`. |
| 14 | + |
| 15 | +## Mandatory flow |
| 16 | + |
| 17 | +1. Ground the user objective with assumptions, questions, scope, non-scope, and verifiable success criteria. |
| 18 | +2. Always invoke `researcher` first; wait for the full result before continuing. |
| 19 | +3. Synthesize research findings: verified facts, inferences, risks, recommended decisions, and open questions. |
| 20 | +4. Invoke `specifier` only after research has been consolidated. |
| 21 | +5. Ask `specifier` for an implementation-ready plan, acceptance criteria, validation, and ordered tasks. |
| 22 | +6. Invoke `reviewer` to review the plan/spec against the objective, research, assumptions, risks, and acceptance criteria. |
| 23 | +7. If `reviewer` finds no significant issues, deliver the final plan. |
| 24 | +8. If `reviewer` finds significant issues, allow exactly 1 correction pass. |
| 25 | +9. After the second review, deliver the plan with explicit risks or declare the state blocked. |
| 26 | + |
| 27 | +## Dependency rules |
| 28 | + |
| 29 | +- Do not invoke developer. |
| 30 | +- Do not invoke `designer`; if the work needs design, mark that dependency in the plan or recommend `/design` or `/feature`. |
| 31 | +- Do not implement code or modify application files. |
| 32 | +- Do not invoke `specifier` while `researcher` has pending work. |
| 33 | +- Do not invoke `reviewer` before a reviewable plan/spec exists. |
| 34 | +- Do not use `evaluator`, `debugger`, or `evolver`; this command plans, it does not evolve or validate the harness. |
| 35 | +- Do not parallelize phases; this flow is sequential by design. |
| 36 | +- If there is a blocking question, stop the flow and state it instead of inventing a decision. |
| 37 | + |
| 38 | +## Single correction pass |
| 39 | + |
| 40 | +If `reviewer` returns `requires changes`: |
| 41 | + |
| 42 | +- If evidence, context, or research is missing, send a bounded task back to `researcher` and then to `specifier`. |
| 43 | +- If research is sound but the plan is incomplete or inconsistent, send a bounded task only to `specifier`. |
| 44 | +- If there is an unresolvable contradiction or blocking product decision, stop and deliver a blocked state. |
| 45 | +- After that correction, invoke a second and final `reviewer` pass. |
| 46 | +- Do not run additional cycles even if observations remain; deliver risks, pending items, and the next human decision. |
| 47 | + |
| 48 | +## Expected output |
| 49 | + |
| 50 | +Deliver: |
| 51 | + |
| 52 | +1. Research summary. |
| 53 | +2. Decisions made. |
| 54 | +3. Assumptions and open questions. |
| 55 | +4. Implementation-ready plan. |
| 56 | +5. Acceptance criteria. |
| 57 | +6. Validation plan. |
| 58 | +7. Reviewer result. |
| 59 | +8. Risks and pending items. |
0 commit comments