implement-plan
Execute a plan file step-by-step with progress tracking and phase checkpoints
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute a plan file step-by-step with progress tracking and phase checkpoints
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run dead-code and duplicate-code detection across the codebase, get categorized cleanup recommendations
Review the current diff for correctness bugs and spec drift, then emit an evidence-oriented findings list
Initialize a session by executing the cross-agent New Sessions protocol declared in AGENTS.md.
Modularize large CLAUDE.md files with path-scoped rules and doc extraction
Deep research with parallel sub-agents, query classification, and filesystem artifact passing
One-time contributor setup. Install spec-spine and verify the governed loop (compile, index check, lint, couple) so /init can report lifecycle and structural counts.
| name | implement-plan |
| description | Execute a plan file step-by-step with progress tracking and phase checkpoints |
| allowed-tools | Bash, Read, Edit, Write, Glob, Grep, Agent |
| argument-hint | <path-to-plan-file> |
Execute a plan document while maintaining progress tracking and checkpoint discipline.
Plan file path: $ARGUMENTS
If no path is provided, search for plan files:
*.plan.md or files in a plans/ directory.completed, confirm with user before re-implementing.blocked, ask what needs unblocking.Extract discrete tasks from:
If the plan does not already have an "Implementation Progress" section, insert one after the first # heading:
## Implementation Progress
- [ ] Task from acceptance criteria 1
- [ ] Task from acceptance criteria 2
- [ ] Implementation step A
- [ ] Implementation step B
Update the plan's YAML frontmatter:
status to in-development (from draft, ready-for-development, or similar)startDate to today's date if not already setupdated to current ISO timestampprogress to 0Show:
Do not begin implementation until the user confirms.
Work through each task systematically:
<your build command>, <your test command>).- [x] Task descriptionprogress in frontmatter: (completed / total) * 100, rounded to nearest integerupdated timestampspec-spine compile, spec-spine index check, spec-spine lint --fail-on-warn) after any change that touches spec-owned paths or .derived/ regeneration.At the halfway point (50% progress), pause and report:
Wait for user confirmation before continuing.
When all tasks are checked off:
Update frontmatter:
status to in-reviewprogress to 100updated timestampRun final verification: execute all relevant quality checks (tests, lints, type checks, builds) and report any failures.
Deliver summary:
## Implementation Complete
**Plan**: [plan title]
**Tasks completed**: X / X
**Status**: in-review
**Duration**: [start to now]
### What was done
- [Bullet summary of major changes]
### Files modified
- [List of key files created or changed]
### Verification results
- Tests: [pass/fail count]
- Build: [pass/fail]
- Spec-spine gate: [compile ok | lint ok | index ok | couple ok]
### Known issues or follow-ups
- [Any items that need attention]
Valid status transitions:
draft --> in-development --> in-review --> completed
^ |
| v
blocked <------+
draft or ready-for-development: initial states, transition to in-development when work begins.in-development: active implementation in progress.blocked: encountered a blocker; document the issue in the plan and notify the user.in-review: all tasks complete, awaiting review.completed: review passed (set by user, not by this command).| Situation | Action |
|---|---|
| Plan file not found | Search for candidates, ask user for correct path |
| No frontmatter | Warn that this may not be a structured plan; offer to add frontmatter |
| Already completed | Confirm with user before re-implementing |
| Blocked status | Ask user to resolve blocker before proceeding |
| Test/build failure during task | Fix the issue, do not skip. If unfixable, mark task as blocked and continue with others |
| Ambiguous task | Ask user for clarification before implementing |
| Spec coupling failure | Surface the drift, do not silently patch the spec to match new code |
progress = round((checked / total) * 100)