원클릭으로
execute-phased-plan
Use when executing a project folder under plans/ that contains SPEC.md, PLAN.md, and PHASE_XX.md files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when executing a project folder under plans/ that contains SPEC.md, PLAN.md, and PHASE_XX.md files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run markdown linting from tools/spec-lint/, fix issues, and rerun until clean
Whole-repo audit for over-engineering. Like ponytail-review, but scans the entire codebase instead of a diff: writes a ranked checklist to plans/AUDIT.md of what to delete, simplify, or replace with stdlib/native equivalents. Use when the user says "audit this codebase", "audit for over-engineering", "what can I delete from this repo", "find bloat", or calls ponytail-audit. One-shot report, does not apply fixes.
Fix ponytail audit items from plans/AUDIT.md one at a time. For each item: implementer fix → ponytail-review → normal review → quality gate → mark done → commit. Cycle until reviewer is happy at each stage. Complements ponytail-audit.
Code review focused exclusively on over-engineering. Finds what to delete: reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this over-engineered", "simplify review", or calls ponytail-review. Complements the correctness-focused reviewer subagent — this one only hunts complexity.
Fix the first incomplete checklist item in plans/<project>/REVIEW.md, commit the fix, then stop. Does not commit REVIEW.md — it is gitignored by design.
Review the current repository state against a project's SPEC.md in plans/<project-name>/ and produce a checklist of issues in REVIEW.md. Use when you need a methodical spec-compliance audit of the present codebase.
| name | execute-phased-plan |
| description | Use when executing a project folder under plans/ that contains SPEC.md, PLAN.md, and PHASE_XX.md files. |
Execute a phased implementation plan from plans/<project-name>/ in an isolated git worktree. Each phase is implemented, verified, reviewed, and committed before the next phase begins. SPEC.md stays available to every agent throughout the work.
Use the project directory provided by the user. If none is provided, list directories under plans/ that contain SPEC.md, PLAN.md, and PHASE_XX.md files, then ask which project to execute.
Read:
AGENTS.mdPLAN.mdPHASE_XX.md file in phase orderSPEC.mdIf the project directory is missing SPEC.md, PLAN.md, or phase files, stop and ask the user to run the missing prior step.
Create a fresh git worktree and development branch before implementation begins.
Use a branch name derived from the project slug, such as:
dev/<project-slug>
If the branch name already exists, append a numeric suffix (-02, -03, etc.).
Worktrees live in .worktrees/ inside the repo root:
git worktree add -b dev/<project-slug> .worktrees/<project-slug> HEAD
All implementation, verification, review, and commits happen inside the new worktree.
For each PHASE_XX.md, dispatch an implementer subagent with this prompt:
Implement this phase of a phased plan.
**Spec file:**
[path to SPEC.md]
**Plan file:**
[path to PLAN.md]
**Current phase file:**
[path to PHASE_XX.md]
**Prior phase handoff context:**
[brief summary of completed prior phases and their commits, or "None"]
Requirements:
- Read `AGENTS.md`, `SPEC.md`, the plan, and current phase before editing.
- Implement only the current phase.
- Preserve completed prior-phase behaviour.
- Follow the verification steps and acceptance criteria in the current phase.
- Report files changed, verification run, and any unresolved blockers.
After the implementer returns, inspect the worktree diff and run the phase verification steps from the phase file. If the phase file omits a needed verification command, choose the narrowest relevant project command and record the choice.
After verification succeeds, dispatch a reviewer subagent with this prompt:
Review this implemented phase.
**Spec file:**
[path to SPEC.md]
**Plan file:**
[path to PLAN.md]
**Current phase file:**
[path to PHASE_XX.md]
**Implementation state:**
Review the current worktree diff and relevant files. Do not rely on git commit history.
Check for:
1. The current phase deliverables are implemented.
2. The implementation satisfies the current phase acceptance criteria.
3. The implementation stays aligned with `SPEC.md`.
4. Prior-phase behaviour remains intact.
5. Tests, verification, and error handling are sufficient for this phase.
6. The work is ready to commit as a complete phase.
Respond with one of:
- "APPROVED" (phase is complete and ready to commit)
- A numbered list of specific issues to fix
If the reviewer raises issues, dispatch the implementer again with the reviewer feedback verbatim, then re-run phase verification and review. Maximum two review cycles per phase before stopping and reporting the blocker to the user.
When phase verification succeeds and the reviewer approves, commit the phase inside the worktree.
Use a concise phase-specific commit message, such as:
implement phase 01 core schema
Do not commit unrelated files, secrets, or changes outside the phase scope. If unrelated user changes are present, leave them unstaged and report them.
Proceed to the next phase only after the prior phase is verified, reviewed, and committed.
Maintain a short handoff summary after each phase:
Pass this summary to the next phase implementer.
After every phase is committed, run the repository's full quality gate:
go test ./... && make check-fix
These two commands are non-negotiable — see AGENTS.md. Fix failures through the same implementer-reviewer loop. Commit any final quality-gate fixes separately.
Dispatch a final reviewer subagent with this prompt:
Review the completed implementation against `SPEC.md`.
**Spec file:**
[path to SPEC.md]
**Plan file:**
[path to PLAN.md]
**Phase files:**
[paths to all PHASE_XX.md files, in order]
**Implementation state:**
Review the current worktree and relevant files. Do not review git commit history. Assess the implemented system as it exists now.
Primary question:
Does the implemented system fulfil `SPEC.md`?
Check for:
1. Every spec requirement is implemented.
2. The implemented phases fit together coherently.
3. Edge cases and error handling from the spec are covered.
4. User-facing behaviour matches the spec.
5. Tests and verification provide appropriate confidence.
6. No plan phase left incomplete or contradicted the spec.
Respond with one of:
- "APPROVED" (the implementation fulfils `SPEC.md`)
- A numbered list of specific gaps to fix
If the final reviewer raises gaps, dispatch the implementer with the review feedback verbatim, re-run the full quality gate, and re-run the final review. Commit approved final fixes separately. Maximum two final review cycles before stopping and reporting unresolved gaps to the user.
Report:
SPEC.md available to every implementer and reviewer subagent.SPEC.md after all phases are complete.SPEC.md, the plan, and current phase path.SPEC.md.