Implement Plan
Hard rules
- Stay on the plan’s required outcome. Discovery/review do not add scope.
- Prefer the smallest behavior-preserving change. Skip unnecessary abstractions/tests/safeguards.
- Delegate by default when safe. “Small/easy” is not a reason to skip subagents.
- Leverage subagents — built-in, extensions/plugins, or skills. Follow
use-subagents policy; use native subagents, extensions / plugins, or other skills
- Main agent owns: tracker, integration, dispositions, acceptance, user comms, cleanup.
- Child handoffs = evidence, never acceptance. Inspect diffs; rerun checks.
- Findings /
decomplex recs never auto-create work — disposition first.
- Material doubt, scope/risk choices, or stuck review loops → ask user.
- Never fake
Complete.
Startup (blocking)
- Read the full plan (offset if truncated).
- Read
assets/progress-tracker-template.md with the file tool (memory doesn’t count).
- Leverage subagents — built-in, extensions/plugins, or via skills.
- Copy/adapt tracker into the plan or a standalone file.
- Map every actionable plan requirement → tracker rows (split compound work into tasks/subtasks).
- Record
Template loaded from: implement-plan/assets/progress-tracker-template.md.
- Only then implement.
On resume: repeat startup and reconcile. Missing template → stop.
Task loop
For each dependency-ready task/subtask (delegate by default):
- Analyze — read starts-at paths, callers, tests; research only if needed (
web-research when third-party/current behavior is uncertain).
- Implement — smallest change that satisfies the row; stay in ownership; record deviations.
- Check — targeted tests + applicable lint/typecheck/build/migration/browser (
agent-browser for UI).
- Review — independent
code-review when the task crosses a real boundary, or when the batch/phase completes; always for final full-plan review.
- Disposition findings:
Fix now · Validate · Reject · Ask user · Block
- Fix accepted items (delegate); rerun checks; focused re-review until
Clear
- Complexity-increasing fix →
decomplex triage if available, else built-in gate; doubt → ask user
- Two failed rounds / recurrence / no progress → ask user
- Update tracker —
Verified needs evidence; Descoped needs user approval.
- Cleanup lane resources per
use-subagents (and launcher runtime cleanup, e.g. Pi clean, if used) — no unaccounted workflow-owned resources.
- Next ready task/subtask.
Parallelize only independent tasks with isolated writers. Parent is sole tracker writer under concurrency.
When to review
- After major boundaries: integration, migration, public contract, security/data invariant, risky dep, delivery milestone
- Plan-authored checkpoints
- Final full-plan review (plan-backed)
Fresh reviewers; don’t share conclusions pre-handoff. One reviewer default. Parent review only if independent review is unavailable — record the limit.
Reviewer states: Clear · Changes required · Human decision required · Blocked
Done
- Reread full plan — no missed requirements.
- No row
Pending / In progress / Blocked.
- Diff hygiene — drop unjustified scope/complexity.
- Final checks + final plan-backed implementation review (+
decomplex Audit of this diff if proportionate).
- When repository files changed, use
create-changes-report after those checks to generate/QA a candidate (creator-QA-complete exact bytes). Material issue in evidence gathering → disposition, checks, and implementation review before regenerating.
- After candidate QA, launch one fresh read-only subagent that did not implement, perform final implementation review, or author the report. Give frozen scope/evidence, the candidate, and
create-changes-report references/artifact-review.md. No edits or recursive delegation. Require candidate Clear before completion. Keep report-review closure in the tracker/final handoff, never in the reviewed HTML.
- Report-only → regenerate, re-QA, re-review with a fresh reviewer.
- Underlying implementation → reopen affected rows, checks, final implementation review, scope freeze, report generation, and candidate review.
- Two failed rounds / recurrence / no progress → existing user-escalation rule.
- No safe subagent → ask if the user accepts a disclosed parent fallback; without approval remain
Partial/Blocked. Never claim independence for fallback review.
- Final cleanup — worktrees, branches, processes, runtime state, including anything created by a report-triggered fix cycle. Make the final changes-report path the primary handoff. If the skill is unavailable, record that and continue with the concise report below.
- Report truthfully.
Complete only when all rows are Verified or approved Descoped, validation passed, final implementation review is Clear, the changes-report candidate is Clear when a report is produced, and nothing material remains open. Else Partial or Blocked.
Report
- changes-report path, or why no report was created
- plan/tracker paths · status · remaining IDs
- what was delegated vs parent-owned (and why)
- checks run / skipped
- implementation-review and candidate-review outcomes + dispositions
- decisions, deviations
- worktrees created/integrated/removed · retained resources + why
1---2name: implement-plan3description: Implements existing Markdown plans exhaustively through delegated task loops, validation, and review closure. Use this skill when asked to implement, execute, carry out, or continue an existing plan. Do not use for creating a plan from scratch or only reviewing a plan without implementing it.4license: MIT5---67# Implement Plan89## Hard rules1011- Stay on the plan’s required outcome. Discovery/review do **not** add scope.12- Prefer the smallest behavior-preserving change. Skip unnecessary abstractions/tests/safeguards.13- **Delegate by default** when safe. “Small/easy” is not a reason to skip subagents.14- Leverage subagents — built-in, extensions/plugins, or skills. Follow `use-subagents` policy; use native subagents, extensions / plugins, or other skills15- Main agent owns: tracker, integration, dispositions, acceptance, user comms, cleanup.16- Child handoffs = evidence, never acceptance. Inspect diffs; rerun checks.17- Findings / `decomplex` recs never auto-create work — disposition first.18- Material doubt, scope/risk choices, or stuck review loops → **ask user**.19- Never fake `Complete`.2021## Startup (blocking)22231. Read the **full** plan (offset if truncated).242. **Read** [`assets/progress-tracker-template.md`](assets/progress-tracker-template.md) with the file tool (memory doesn’t count).253. Leverage subagents — built-in, extensions/plugins, or via skills.264. Copy/adapt tracker into the plan or a standalone file.275. Map every actionable plan requirement → tracker rows (split compound work into tasks/subtasks).286. Record `Template loaded from: implement-plan/assets/progress-tracker-template.md`.297. Only then implement.3031On resume: repeat startup and reconcile. Missing template → stop.3233## Task loop3435For each dependency-ready task/subtask (delegate by default):36371. **Analyze** — read starts-at paths, callers, tests; research only if needed (`web-research` when third-party/current behavior is uncertain).382. **Implement** — smallest change that satisfies the row; stay in ownership; record deviations.393. **Check** — targeted tests + applicable lint/typecheck/build/migration/browser (`agent-browser` for UI).404. **Review** — independent `code-review` when the task crosses a real boundary, or when the batch/phase completes; always for final full-plan review.415. **Disposition** findings:42 - `Fix now` · `Validate` · `Reject` · `Ask user` · `Block`43 - Fix accepted items (delegate); rerun checks; focused re-review until `Clear`44 - Complexity-increasing fix → `decomplex` triage if available, else built-in gate; doubt → ask user45 - Two failed rounds / recurrence / no progress → ask user466. **Update tracker** — `Verified` needs evidence; `Descoped` needs user approval.477. **Cleanup** lane resources per `use-subagents` (and launcher runtime cleanup, e.g. Pi `clean`, if used) — no unaccounted workflow-owned resources.488. Next ready task/subtask.4950Parallelize only independent tasks with isolated writers. Parent is sole tracker writer under concurrency.5152## When to review5354- After major boundaries: integration, migration, public contract, security/data invariant, risky dep, delivery milestone55- Plan-authored checkpoints56- Final full-plan review (plan-backed)5758Fresh reviewers; don’t share conclusions pre-handoff. One reviewer default. Parent review only if independent review is unavailable — record the limit.5960Reviewer states: `Clear` · `Changes required` · `Human decision required` · `Blocked`6162## Done63641. Reread full plan — no missed requirements.652. No row `Pending` / `In progress` / `Blocked`.663. Diff hygiene — drop unjustified scope/complexity.674. Final checks + final plan-backed implementation review (+ `decomplex` Audit of **this** diff if proportionate).685. When repository files changed, use `create-changes-report` after those checks to generate/QA a candidate (creator-QA-complete exact bytes). Material issue in evidence gathering → disposition, checks, and implementation review before regenerating.696. After candidate QA, launch one fresh read-only subagent that did not implement, perform final implementation review, or author the report. Give frozen scope/evidence, the candidate, and `create-changes-report` `references/artifact-review.md`. No edits or recursive delegation. Require candidate `Clear` before completion. Keep report-review closure in the tracker/final handoff, never in the reviewed HTML.70 - Report-only → regenerate, re-QA, re-review with a fresh reviewer.71 - Underlying implementation → reopen affected rows, checks, final implementation review, scope freeze, report generation, and candidate review.72 - Two failed rounds / recurrence / no progress → existing user-escalation rule.73 - No safe subagent → ask if the user accepts a disclosed parent fallback; without approval remain `Partial`/`Blocked`. Never claim independence for fallback review.747. Final cleanup — worktrees, branches, processes, runtime state, including anything created by a report-triggered fix cycle. Make the final changes-report path the primary handoff. If the skill is unavailable, record that and continue with the concise report below.758. Report truthfully.7677`Complete` only when all rows are `Verified` or approved `Descoped`, validation passed, final implementation review is `Clear`, the changes-report candidate is `Clear` when a report is produced, and nothing material remains open. Else `Partial` or `Blocked`.7879## Report8081- changes-report path, or why no report was created82- plan/tracker paths · status · remaining IDs83- what was delegated vs parent-owned (and why)84- checks run / skipped85- implementation-review and candidate-review outcomes + dispositions86- decisions, deviations87- worktrees created/integrated/removed · retained resources + why