implement
Skill0 starsChanged 10 months agoMITView on GitHub
Implement phases from a plan. Acts as thin dispatcher: spawns builder agents per phase, validators to verify, handles PASS/FAIL routing. Builders are ephemeral — each phase gets a fresh builder with clean context. Use when ready to implement ('implement the next phase', 'start building', 'run the implementation'). Do NOT use for creating plans (use /create-plan) or reviewing plans (use /review-plan).
193 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- ofweb/skillstheir own version, first seen Oct 5, 2026
- roby2358/skillstheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use setup-ts-deep-modules, ask-matt and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 17 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 36 projects that use this
AWSSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
Also in 75 projects that use this
ArvorCoSkillspecify
Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.
Also in 12 projects that use this
qwlabsSkillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 18 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 22 projects that use this
- +5 more from aws
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- mattpocock/skills★ 335ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- huggingface/OpenEnv★ 2.6ksame name
- stevesolun/ctx★ 588same name
- nodetool-ai/nodetool★ 551same name
- aws/graph-explorer★ 484same name
- boshu2/agentops★ 447same name
- devcxl/mattpocock-skills-zh★ 426same name
- bighadj22/codflow★ 338same name
- ninehills/skills★ 280same name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-planSkill
- builder-workflowSkill
- code-reviewSkill
- context7-mcpSkill
- create-planSkill
- customizeSkill
- devSkill
- hand-crafted-svgSkill
- improve-promptSkill
- playwright-e2eSkill
- playwright-mcpSkill
- postgres-expertSkill
- react-form-builderSkill
- review-planSkill
- sequential-thinking-mcpSkill
- server-action-builderSkill
- service-builderSkill
- tavily-mcpSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
38 rules. 0 are common, 20 are distinctive, and 18 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read the plan file at $ARGUMENTS/plan.md
- Very specific: line 33
Check if $ARGUMENTS/reviews/planning/plan.md exists
- Very specific: line 34
If no review exists, run /review-plan $ARGUMENTS first
- Very specific: line 37
If Yes → proceed to Step 2
- Very specific: line 38
If No → STOP and report the Critical Issues to the user
- Distinctive: line 46
2. Skip for small plans: If 1-2 phases, skip to Step 3.
- Very specific: line 48
3. Check if audit exists: Look for $ARGUMENTS/reviews/planning/flow-audit.md.
- Very specific: line 50
4. If missing: STOP and tell the user to run /audit-plan $ARGUMENTS first.
- Very specific: line 64
Run TaskList first. If tasks already exist from a previous session or before a context compact:
- Very specific: line 65
Read existing tasks with TaskGet for each task ID
- Very specific: line 66
If any task is in_progress — that's where you were interrupted.
- Distinctive: line 67
Do NOT recreate the task list — resume with existing tasks
- Distinctive: line 71
Read the Phase Table in plan.md.
- Distinctive: line 73
If all phases are done:
- Very specific: line 74
Remove the plan's sidecar: rm -f ~/.cache/claude-statusline/plans/PLAN_NAME.json
- Distinctive: line 80
If no tasks exist yet, create one task per pending phase:
- Distinctive: line 103
All dependencies have status "Done" → unblocked
- Distinctive: line 110
After identifying unblocked phases, write a per-plan sidecar file using the lowest-numbered unblocked phase so the statusline displays …
- Very specific: line 129
Before spawning builders, gate-check each unblocked phase from Step 3.
- Very specific: line 144
If non-zero exit, the phase contains [To be detailed] or TBD.
- Very specific: line 149
If no review exists, run /review-plan $ARGUMENTS phase {NN}
- Distinctive: line 205
If only one phase is unblocked, spawn a single builder — this is the common case for phases with sequential dependencies.
- Distinctive: line 209
Wait for builder completion messages (automatic delivery — do NOT poll).
- Distinctive: line 211
When a builder reports done:
- Very specific: line 240
Update phase YAML frontmatter: status: done
- Distinctive: line 241
Update Phase Table in plan.md: status → "Done"
- Distinctive: line 246
If other builders/validators are still active, continue waiting for their completions (Step 7)
- Distinctive: line 247
When all active builders are done, loop back to Step 3 — newly completed phases may unblock additional pending phases
- Distinctive: line 274
Wait for fix builder → spawn fresh validator → re-validate → repeat until PASS
- Distinctive: line 278
When all phases are done OR an error breakout condition is met:
- Distinctive: line 303
Do not proceed to the next phase when blocked.
- Distinctive: line 309
If you notice context was compacted or you're unsure of current progress:
- Very specific: line 311
Run TaskList to see all tasks and their status
- Very specific: line 313
Run TaskGet {id} on that task to read full details
- Distinctive: line 314
Read plan.md to get the Phase Table for broader context
- Very specific: line 315
Check if team exists: read ~/.claude/teams/{plan-name}-impl/config.json
- Distinctive: line 316
If team exists, teammates are still active — coordinate via messages
- Distinctive: line 317
If no team, re-create it (Step 5) — validators are spawned on-demand in Step 7
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Implement Plan
Implement phases from: $ARGUMENTS/plan.md
Architecture
This skill is a thin dispatcher. It does NOT read references, extract patterns, or implement code. Builders handle all implementation work via the preloaded builder-workflow skill.
| Role | Responsibility |
| Orchestrator (you) | Find phases, gate checks, spawn/shutdown teammates, route PASS/FAIL |
| Builder | Phase implementation: read phase, find references, invoke skills, code, test, typecheck. Does NOT review its own code. |
| Validator | Independent review: runs /code-review (reference-grounded, with auto-fix), then typecheck + tests. Reports PASS/FAIL. |
Builders and validators are ephemeral. Each phase gets a fresh builder with a clean 200K context. When a builder completes, a fresh validator is spawned for that phase's review. After the review cycle completes (PASS or FAIL resolution), both are shut down. This prevents context contamination between phases, ensures skill instructions are never compacted away, and eliminates the single-validator bottleneck when multiple builders run in parallel.
Step 1: Read and Review the Plan
- Read the plan file at
$ARGUMENTS/plan.md - Check if
$ARGUMENTS/reviews/planning/plan.mdexists - If no review exists, run
/review-plan $ARGUMENTSfirst - Read the review file at
$ARGUMENTS/reviews/planning/plan.md - Check the Verdict section:
- If
Yes→ proceed to Step 2 - If
No→ STOP and report the Critical Issues to the user
- If
Proceeding with implementation when the plan review verdict is "No" means building on a plan with structural gaps — the user will discover these during implementation when they're more costly to fix.
Step 2: Check Flow Audit
1. Count phases in the Phase Table.
2. Skip for small plans: If 1-2 phases, skip to Step 3.
3. Check if audit exists: Look for $ARGUMENTS/reviews/planning/flow-audit.md. This should already exist from /create-plan (Step 10).
4. If missing: STOP and tell the user to run /audit-plan $ARGUMENTS first. The orchestrator should not run the audit itself — it consumes too much context for a thin dispatcher.
5. Gate logic:
| Overall Assessment | Behavior |
| "Major Restructuring Needed" | HARD BLOCK: STOP. Report issues to user. |
| "Significant Issues" | SOFT BLOCK: WARN user. Ask whether to proceed or fix. |
| "Minor Issues" or "Coherent" | PROCEED. |
Step 3: Find Unblocked Phases
3a: Check for existing tasks (compact recovery):
Run TaskList first. If tasks already exist from a previous session or before a context compact:
- Read existing tasks with
TaskGetfor each task ID - If any task is
in_progress— that's where you were interrupted. Resume from that phase's current state (check if a builder/validator is active) - Do NOT recreate the task list — resume with existing tasks
3b: Read the Phase Table:
Read the Phase Table in plan.md. Collect all phases with status "Pending".
If all phases are done:
- Remove the plan's sidecar:
rm -f ~/.cache/claude-statusline/plans/PLAN_NAME.json - Report completion to the user
- Skip to Step 9 (cleanup)
3c: Create orchestrator tasks (first run only):
If no tasks exist yet, create one task per pending phase:
TaskCreate({
subject: "Phase {NN} — {phase title}",
description: "Gate check → build → validate → mark done\nPhase: $ARGUMENTS/phase-{NN}-{slug}.md",
activeForm: "Implementing Phase {NN}"
})Then set up dependencies with TaskUpdate using addBlockedBy to mirror each phase's dependencies frontmatter. For example, if Phase 03 depends on Phase 01:
TaskUpdate({ taskId: "3", addBlockedBy: ["1"] })Tasks survive context compacts and give the user progress visibility. Without them, the orchestrator loses track of which phases are in flight after a compact.
3d: Determine which pending phases are unblocked:
For each pending phase, read its frontmatter dependencies field:
dependencies: [](empty) → unblocked — no prerequisitesdependencies: [Phase 01, Phase 03]→ check the Phase Table for each listed dependency- All dependencies have status "Done" → unblocked
- Any dependency is not "Done" → blocked — skip for now
Collect all unblocked phases. These are the candidates for gate-checking (Step 4) and builder spawning (Step 6).
Update the statusline sidecar:
After identifying unblocked phases, write a per-plan sidecar file using the lowest-numbered unblocked phase so the statusline displays current progress. Each plan gets its own file — multiple agents on different plans won't overwrite each other:
mkdir -p ~/.cache/claude-statusline/plans && echo '{"plan":"PLAN_NAME","phase":PHASE_NUM,"updated":'$(date +%s)'}' > ~/.cache/claude-statusline/plans/PLAN_NAME.jsonWhere:
PLAN_NAME= the plan folder name (from$ARGUMENTS, e.g.,notesfromplans/notes)PHASE_NUM= the current phase number (from the phase's frontmatternumberfield or phase filename)
Example: If implementing phase 3 of the "notes" plan, run:
mkdir -p ~/.cache/claude-statusline/plans && echo '{"plan":"notes","phase":3,"updated":'$(date +%s)'}' > ~/.cache/claude-statusline/plans/notes.jsonThis makes the statusline display: notes - Phase 3
Step 4: Gate Check Phases
Before spawning builders, gate-check each unblocked phase from Step 3. Mark each phase task as in_progress before gate-checking:
TaskUpdate({ taskId: "{phase-task-id}", status: "in_progress" })Apply 4a and 4b to each phase individually.
4a: Check for skeleton/placeholder content:
echo '{"cwd":"."}' | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/validators/validate_no_placeholders.py \
--directory $ARGUMENTS --extension .mdIf non-zero exit, the phase contains [To be detailed] or TBD. STOP — do not spawn a builder for a skeleton phase.
4b: Verify the phase review:
- Check if
$ARGUMENTS/reviews/planning/phase-{NN}.mdexists - If no review exists, run
/review-plan $ARGUMENTS phase {NN} - Read the review Verdict:
- Ready: Yes → proceed to Step 5
- Ready: No or Critical/High issues → FIX the phase first, re-run review, then proceed
Step 5: Create Team (First Phase Only)
On the first phase, create the team. Reuse it across phases.
TeamCreate({
team_name: "{plan-name}-impl",
description: "Implementation team for {plan title}"
})Validators are spawned on-demand per phase (see Step 7). Unlike the builder (spawned here in Step 6), validators are created when a builder reports completion. This eliminates the single-validator bottleneck — when multiple builders finish in parallel, each gets its own validator reviewing concurrently.
Step 6: Spawn Builders
Spawn a fresh builder for each unblocked phase that passed gate-checking. Use parallel Task calls to launch multiple builders concurrently — max 2-3 at a time to avoid context pressure from simultaneous completion messages.
// Spawn builders for ALL unblocked phases in parallel:
Task({
description: "Implement phase {NN}",
subagent_type: "builder",
model: "opus",
team_name: "{plan-name}-impl",
name: "builder-1",
mode: "bypassPermissions",
prompt: `Implement the phase at: $ARGUMENTS/phase-{NN}-{slug}.md
Plan folder: $ARGUMENTS
Follow your preloaded builder-workflow skill. It teaches you how to:
1. Read the phase and extract requirements
2. Find reference files and invoke domain skills
3. Create internal tasks (TaskCreate) for each step — prefix with [Step]. This is REQUIRED for context compact recovery
4. Implement with TDD (Step 0 first), marking tasks in_progress/completed as you go
5. Run tests and typecheck
6. Report completion to team-lead (do NOT run /code-review — the validator handles that independently)
IMPORTANT: Before using the Write tool on any existing file, you MUST Read it first or the write will silently fail.`
})
Task({
description: "Implement phase {MM}",
subagent_type: "builder",
...same structure...,
name: "builder-2",
prompt: `Implement the phase at: $ARGUMENTS/phase-{MM}-{slug}.md ...`
})Each builder gets a fresh context, a unique name (builder-1, builder-2, etc.), and works independently. The builder-workflow skill is preloaded via the builder agent's skills: field.
If only one phase is unblocked, spawn a single builder — this is the common case for phases with sequential dependencies.
Step 7: Wait and Route
Wait for builder completion messages (automatic delivery — do NOT poll). When multiple builders are active, process each completion as it arrives.
When a builder reports done:
- Spawn a fresh validator for this phase:
Task({
description: "Validate phase {NN}",
subagent_type: "validator",
team_name: "{plan-name}-impl",
name: "validator-{N}",
mode: "bypassPermissions",
prompt: `Validate phase {NN} on the {plan-name}-impl team. Follow the workflow defined in your agent instructions.
Phase file: $ARGUMENTS/phase-{NN}-{slug}.md
Plan folder: $ARGUMENTS
Run /code-review against the phase file, then verify with typecheck + tests. Report PASS/FAIL to team-lead via SendMessage.`
})Each validator gets a unique name matching its builder (validator-1 for builder-1, validator-2 for builder-2, etc.). Multiple validators can run concurrently — do NOT wait for one validator to finish before spawning another.
- Continue processing other builder completions as they arrive. If another builder completes while a validator is already running, spawn another validator immediately.
- Wait for validator verdicts. Each validator runs comprehensive code review (reference-grounded, with auto-fix) and verification independently. This is the independent review — the builder never reviewed its own code.
Step 8: Handle Verdict
PASS:
- Update phase YAML frontmatter:
status: done - Update Phase Table in plan.md: status → "Done"
- Mark the phase task as completed:
TaskUpdate({ taskId: "{phase-task-id}", status: "completed" }) - Shutdown the builder and validator for this phase:
SendMessage({ type: "shutdown_request", recipient: "builder-N" })SendMessage({ type: "shutdown_request", recipient: "validator-N" })
- If other builders/validators are still active, continue waiting for their completions (Step 7)
- When all active builders are done, loop back to Step 3 — newly completed phases may unblock additional pending phases
FAIL:
- Shutdown the current builder AND validator (both contexts may be stale):
SendMessage({ type: "shutdown_request", recipient: "builder-N" })SendMessage({ type: "shutdown_request", recipient: "validator-N" })
- Spawn a fresh builder with the validator's fix instructions:
Task({
description: "Fix phase {NN} issues",
subagent_type: "builder",
model: "opus",
team_name: "{plan-name}-impl",
name: "builder-1",
mode: "bypassPermissions",
prompt: `Fix the issues found by the validator in phase $ARGUMENTS/phase-{NN}-{slug}.md:
[paste validator's FAIL details here]
After fixing:
1. Run pnpm test — all must pass
2. Run pnpm run typecheck — no errors
3. Report completion to team-lead`
})- Wait for fix builder → spawn fresh validator → re-validate → repeat until PASS
Step 9: Cleanup
When all phases are done OR an error breakout condition is met:
- Shutdown all active teammates (builders and validators still running):
// For each active builder-N and validator-N:
SendMessage({ type: "shutdown_request", recipient: "builder-1" })
SendMessage({ type: "shutdown_request", recipient: "validator-1" })
// ... repeat for all active agents- Delete team:
TeamDelete() - Remove this plan's statusline sidecar:
rm -f ~/.cache/claude-statusline/plans/PLAN_NAME.jsonError breakout conditions — STOP and shut down if:
- Validator FAIL repeats 3+ times on the same phase
- Tests can't be fixed (cascading failures)
- Phase has Critical blocking issues from plan review
- User intervention is clearly needed
Do not proceed to the next phase when blocked. Shut down and let the user decide.
Resuming After Context Compact
If you notice context was compacted or you're unsure of current progress:
- Run
TaskListto see all tasks and their status - Find the
in_progresstask — that's the phase you were working on - Run
TaskGet {id}on that task to read full details - Read plan.md to get the Phase Table for broader context
- Check if team exists: read
~/.claude/teams/{plan-name}-impl/config.json- If team exists, teammates are still active — coordinate via messages
- If no team, re-create it (Step 5) — validators are spawned on-demand in Step 7
- Continue from the in_progress phase — don't restart from Step 1
Pattern for every work cycle:
TaskList → find in_progress or first pending → TaskGet → continue work → TaskUpdate (completed) → next taskTasks are the orchestrator's source of truth for progress — not memory, not plan.md alone.
Reference Material
For anti-pattern prevention, context compact recovery, and troubleshooting, see references/team-operations.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

