implement-plan
Skill4 starsChanged 6 months agoMITView on GitHub
Execute implementation plans using a reviewer-led loop with one-task-per-agent delegation, iterative verification, and mandatory hardening passes. Use when the user asks to implement a plan, execute tasks, harden an implementation, or iterate on quality before final handoff.
We split this skill into the rules it gives an agent
40 rules. 0 are common, 29 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
29
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Re-plan on drift: if assumptions break, tests fail repeatedly, or scope changes, stop and update the plan before continuing.
- Distinctive: line 20
Main agent is the reviewer: keep global context, risk register, acceptance criteria, and final decisions in the main agent.
- Distinctive: line 22
Evidence before completion: no task is complete without code evidence plus verification evidence.
- Very specific: line 23
Build/test constraints: use just commands, never run apps, and run only affected test projects by default.
- Distinctive: line 24
Scope hygiene: do not include unrelated generated or style-only changes.
- Very specific: line 26
Lessons loop (aggressive): add a lesson to plans/_lessons.md after any of these triggers — not just user corrections:
- Very specific: line 36
Do not auto-commit: never commit or push automatically.
- Very specific: line 42
If no plan exists, tell the user and suggest using the create-plan skill first
- Distinctive: line 49
Update the plan's Implementation Tasks table and Execution Log section as you progress.
- Very specific: line 52
Check for a context file at contexts/{branch-name}/context.md:
- Distinctive: line 53
If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal …
- Distinctive: line 58
Run this loop for each dependency-ready task:
- Distinctive: line 67
Use a more capable model for risky logic or financial flows.
- Distinctive: line 68
Use a faster model only for narrow mechanical edits.
- Distinctive: line 72
All acceptance criteria from the plan are satisfied
- Distinctive: line 73
No extra features, refactors, or "improvements" beyond scope were added
- Distinctive: line 74
No acceptance criteria were partially implemented or skipped
- Distinctive: line 75
If spec issues are found, fix them before proceeding to quality review
- Distinctive: line 80
call-site propagation for contract changes
- Distinctive: line 82
Run targeted verification and capture evidence:
- Distinctive: line 83
run the project's targeted build and test commands for the affected modules
- Very specific: line 84
when a change touches cross-cutting infrastructure (scheduled jobs, message handlers, transactional consumers, etc.), verify it conforms to …
- Distinctive: line 86
Check the plan's Quality Gates section (if present).
- Distinctive: line 91
Update the plan file after each task completes:
- Distinctive: line 94
Do NOT commit or push — leave changes in the working tree for review
- Distinctive: line 98
Run after implementation reaches feature-complete state.
- Distinctive: line 102
Every plan task maps to concrete code changes
- Distinctive: line 103
No partially implemented interfaces/contracts remain
- Distinctive: line 104
All changed call sites compile and behave as intended
- Distinctive: line 117
no magic strings or IDs in core domain logic
- Distinctive: line 126
Update docs when behavior or conventions changed
- Distinctive: line 127
Remove unrelated diff noise and confirm PR scope hygiene
- Distinctive: line 131
Update the plan file with final status and produce a summary:
- Distinctive: line 134
All tasks have evidence in the Execution Log
- Very specific: line 139
Do NOT commit or push — leave changes in the working tree for review.
- Very specific: line 143
Check if implementation revealed patterns, gotchas, or constraints worth codifying that are not already covered by existing .agents/rules/ …
- Very specific: line 145
If yes, delegate to /create-rule.
- Distinctive: line 155
After the completion report, check for patterns worth codifying as permanent rules:
- Very specific: line 162
If candidates found, suggest: "This implementation validated {N} patterns that could become permanent rules.
- Very specific: line 168
After the completion report, ask the user if they want to create a pull request.
“Common” is measured: kept by at least 6 in 10 of the 29 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 Plans
Reviewer-led workflow for turning plan files into production-ready code with repeated verification and hardening. The main agent owns architecture, quality gates, and final sign-off. Delegated agents execute tightly scoped tasks.
When To Use
- User asks to implement a plan from
plans/{branch-name}/ - User asks for phased delivery with multiple verification points
- User asks to harden an implementation before final handoff
Critical Rules
- Plan before code: for non-trivial work (3+ steps, cross-project changes, or architecture decisions), create a plan first using the
create-planskill. - Re-plan on drift: if assumptions break, tests fail repeatedly, or scope changes, stop and update the plan before continuing.
- Main agent is the reviewer: keep global context, risk register, acceptance criteria, and final decisions in the main agent.
- One task per agent: delegate exactly one task item per agent; no broad multi-task prompts.
- Evidence before completion: no task is complete without code evidence plus verification evidence.
- Build/test constraints: use
justcommands, never run apps, and run only affected test projects by default. - Scope hygiene: do not include unrelated generated or style-only changes.
- Behavior diff check: for changed contracts/flows, verify old vs new behavior explicitly, not just compile success.
- Lessons loop (aggressive): add a lesson to
plans/_lessons.mdafter any of these triggers — not just user corrections:- User corrects your approach or a delegated agent's output
- A delegated agent makes a mistake that the review catches (pattern the review should have prevented)
- A hardening pass finds a recurring issue type
- A build/test failure reveals a non-obvious constraint
Apply all existing lessons from
_lessons.mdat the start of every agent brief, not just at plan load time.
- Balanced elegance: for non-trivial changes, run one elegance pass; simplify only when it reduces risk or complexity.
- Follow project conventions for cross-cutting machinery: when a change touches scheduled jobs, message handlers, transactional consumers, or other cross-cutting infrastructure, follow the project's existing patterns (rule files, reference docs, architectural guides) rather than inventing a new shape. If a relevant
.agents/rules/*.mdor architecture doc exists, read it before implementing. - Boundary validation: clamp/validate externally supplied numeric controls (e.g., batch sizes) at handler boundaries before domain-service execution.
- No skipping or deferring without consent: NEVER skip, defer, or simplify any task from the plan without explicit user approval. Every task in the plan must be implemented as specified. If a task seems too complex or edge-case-only, ask the user before deferring — do not decide unilaterally to skip it.
- Do not auto-commit: never commit or push automatically. Leave changes (including plan file updates) in the working tree so that review skills (
/review,/review-codex) can inspect them. The user will commit when ready using/commit.
Step 1: Locate Plan and Build Task Graph
- Get the current git branch:
git branch --show-current - Find the plan at
plans/{branch-name}/plan.md- If no plan exists, tell the user and suggest using the
create-planskill first
- If no plan exists, tell the user and suggest using the
- Extract for each task:
- task id/title
- dependencies
- acceptance criteria
- impacted files/projects
- required verification (build/tests/docs)
- Update the plan's Implementation Tasks table and Execution Log section as you progress. Use these status values:
pending,in_progress,blocked,completed,deferred
- Load prior lessons from
plans/_lessons.md(cross-feature lessons) and.agents/rules/*.md(rules matching impacted files from the plan). Apply relevant ones before coding and include them in agent briefs. - Check for a context file at
contexts/{branch-name}/context.md:- If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal architecture patterns, and test patterns.
- The context file is the primary knowledge source for agent briefs — it prevents agents from wasting time on discovery and missing edge cases.
Step 2: Reviewer-Driven Task Loop
Run this loop for each dependency-ready task:
- Prepare implementation brief:
- exact scope (single task id)
- likely files touched
- acceptance criteria
- constraints from
AGENTS.md - context file preamble: if a context file exists at
contexts/{branch-name}/context.md, the agent prompt MUST start with: "First, readcontexts/{branch-name}/context.mdand then read all critical must-read files listed in it. This gives you the domain knowledge, patterns, and edge cases you need before writing any code." Include the context file path and the critical must-read file paths explicitly in the prompt so the agent reads them upfront — do not assume it will discover them on its own.
- Delegate implementation to an agent.
- Use a more capable model for risky logic or financial flows.
- Use a faster model only for narrow mechanical edits.
Review the agent's output in two passes:
Spec compliance (first) -- does it match the task, nothing more, nothing less?
- All acceptance criteria from the plan are satisfied
- No extra features, refactors, or "improvements" beyond scope were added
- No acceptance criteria were partially implemented or skipped
- If spec issues are found, fix them before proceeding to quality review
Code quality (second) -- is it well-built?
- architecture and pattern fit
- invariants and edge-case handling
- call-site propagation for contract changes
- logging and observability quality
- Run targeted verification and capture evidence:
- run the project's targeted build and test commands for the affected modules
- when a change touches cross-cutting infrastructure (scheduled jobs, message handlers, transactional consumers, etc.), verify it conforms to the patterns documented in the relevant
.agents/rules/*.mdor architecture docs.
- Rule check: diff the task's changed files against matched rules from
.agents/rules/(loaded at plan start). For each matched rule, verify the new code does not exhibit the anti-pattern. If a violation is found, send it back to the agent as focused feedback — do not mark the task complete until rule violations are resolved. Log: "Task {id}: checked against N rules — {pass/N violations}" - Check the plan's Quality Gates section (if present). If any gate can now be verified for this task's files, verify it. Update the gate checkbox.
- Decide:
- Pass: mark task completed in the plan with evidence
- Fail: provide focused feedback (including rule violations) and rerun the same task
- Scope drift: re-plan first, then continue
- Update the plan file after each task completes:
- Set task status to
completedin the Implementation Tasks table - Fill in the Execution Log entry with evidence and notes
- Do NOT commit or push — leave changes in the working tree for review
- Set task status to
Step 3: Mandatory Hardening Passes
Run after implementation reaches feature-complete state.
Pass A: Functional Completeness
- Every plan task maps to concrete code changes
- No partially implemented interfaces/contracts remain
- All changed call sites compile and behave as intended
Pass B: Bug Hunt and Failure Paths
Actively search for bugs in:
- edge conditions, null/empty/invalid inputs
- rollback/transaction semantics
- idempotency and concurrency risks
- fallback route correctness and observability
For domain-critical features (money handling, irreversible mutations, regulated flows), also verify:
- no magic strings or IDs in core domain logic
- deterministic routing/decision references are set consistently
- mutations align with documented invariants
- explicit handling of late events and terminal states
- warning/audit logging on fallback paths
Pass C: Regression and Quality Gates
- Re-run affected build/test gates after hardening fixes
- Update docs when behavior or conventions changed
- Remove unrelated diff noise and confirm PR scope hygiene
Step 4: Completion Report
Update the plan file with final status and produce a summary:
- Set top-level Status to
completed - All tasks have evidence in the Execution Log
- Deferred or blocked tasks have rationale and next actions
- Verification commands run and outcomes recorded
- Residual risks and monitoring recommendations noted
- Lessons added to
plans/_lessons.mdduring this run (if any) - Do NOT commit or push — leave changes in the working tree for review. The user will commit when ready using
/commit.
Step 4b: Knowledge Capture — Rule Check
Check if implementation revealed patterns, gotchas, or constraints worth codifying that are not already covered by existing .agents/rules/ files. Sources include: recurring hardening findings, non-obvious constraints discovered during implementation, patterns from user corrections, or lessons added to _lessons.md during this run that have broader applicability.
If yes, delegate to /create-rule. Provide:
- The pattern (the convention or constraint discovered)
- The anti-pattern (the code that was wrong or the mistake that was made)
- The evidence (branch name, task ID, what happened during implementation)
- Suggested context tags (what kind of work this applies to)
Do NOT write rule files directly — /create-rule handles dedup, ID assignment, index update, and source tracking.
Step 4c: Rule Harvest
After the completion report, check for patterns worth codifying as permanent rules:
- Tasks that required multiple iterations due to undocumented conventions
- Lessons added to
plans/_lessons.mdduring this run that are generalizable - Rule candidates listed in the plan's "Rule Candidates" table (if present) that were validated by implementation
- Recurring review findings from hardening passes that have no existing rule
If candidates found, suggest: "This implementation validated {N} patterns that could become permanent rules. Create them via /create-rule? {list with one-line descriptions}"
Rules are created only for validated patterns — not speculative ones.
Step 5: PR Creation
After the completion report, ask the user if they want to create a pull request. If approved, follow the create-pr skill to create a PR with the issue number in the title and the plan summary as the body.
Verification Checklist
- Plan located and task graph understood
- Context file loaded (if
contexts/{branch-name}/context.mdexists) and passed to agents - Plan file updated throughout the run
- One-task-per-agent delegation used per task
- Spec compliance + code quality review passed for each completed task
- Hardening Pass A complete
- Hardening Pass B complete
- Hardening Pass C complete
- Build/test evidence recorded
- Docs/localization updates handled where needed
- Final report includes risks, deferrals, and lessons
Reference
AGENTS.md-- repository-wide constraints and implementation rules.agents/skills/create-plan/SKILL.md-- companion skill for creating plans.agents/skills/create-pr/SKILL.md-- PR creation with issue number in titleplans/_lessons.md-- cross-feature lessons learned
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- penpot/penpot★ 62ksame name
- ChatbotXIO/ChatbotX★ 925same name
- OpenFn/lightning★ 317same name
- maxedapps/agent-skills★ 59same name
- atomicinnovation/accelerator★ 34same name
- hawkyre/hawk-skills★ 30same name
- mhylle/claude-skills-collection★ 20same name
- L-X-T/ng-agentic-skills★ 13same name
- gabimoncha/skills★ 8same name
- paultyng/skill-issue★ 8same name
19 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.
Used alongsideProjects with it also use iterate-plan, validate-plan and 5 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.
corticalstackSkilliterate-plan
Revise an existing implementation plan in flow/plans/ based on feedback, researching when needed. Explicit-only; run only when invoked via /iterate-plan or explicitly asked.
Also in 5 projects that use this
shawn-dumasSkillvalidate-plan
Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.
Also in 4 projects that use this
parcadeiSkilldescribe-pr
Generate comprehensive PR descriptions following repository templates
Also in 4 projects that use this
joshuaalpuertoSkillresearch-codebase
Conducts structured research across a codebase to answer questions about architecture, components, and data flow. Use when investigating how code works, where functionality lives, or how systems interact. Decomposes questions, runs parallel investigations, synthesizes findings with file:line references, and produces persistent research documents.
Also in 4 projects that use this
MicrosoftSkillreview-plan
Review an implementation plan produced by the Plan agent. It is CRITICAL to review plans before handing off to implementation — plans often have gaps, incorrect assumptions, or suboptimal sequencing that are cheaper to catch now than after coding. Use when the user asks to 'review the plan', 'check my plan', 'is this plan ready', or after the Plan agent produces a plan.md.
Also in 5 projects that use this
JetBrainsSkillfix-bug
End-to-end bug fix workflow for the Exposed project. Accepts a GitHub issue (#NUMBER), YouTrack issue (EXPOSED-NUMBER), or YouTrack URL (https://youtrack.jetbrains.com/issue/EXPOSED-NUMBER). Fetches the issue, creates a failing reproducer test, commits on a new branch, implements the fix, validates, and opens a PR. Use this skill whenever the user wants to fix a bug from an issue tracker, mentions a EXPOSED issue number, or references a GitHub issue to fix.
Also in 3 projects that use this
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-workspace-projections.mdcCursor rule
- .cursor/rules/mcp-tool-configs.mdcCursor rule
- .cursor/rules/node-typescript.mdcCursor rule
- .cursor/rules/runstore-listruns-cache.mdcCursor rule
- .cursor/rules/worker-posture.mdcCursor rule
- .cursor/rules/worker-safety.mdcCursor rule
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- load-contextSkill
- mergeprepSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- resolve-review-findingsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- update-contextSkill
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

