implement-plan
Skill30 starsChanged 2 months agoMITView on GitHub
Execute an approved Markdown plan with checks for each PR. Record evidence and progress outside the plan. Use for requests to implement or resume a plan. Use implement-plan-audited when the user wants audits during execution.
- Reads credentials
21 other projects use a version of this.
Adopted by
Most recently taken up by
- korcekj/skillstheir own version, first seen Oct 5, 2026
- L-X-T/ng-agentic-skillstheir own version, first seen Oct 4, 2026
- spalladino/claude-skillstheir own version, first seen Sep 30, 2026
- sipandey/create-agent-roomtheir own version, first seen Sep 26, 2026
- maxedapps/agent-skillstheir own version, first seen Sep 24, 2026
- ConsolaDev/Consolatheir own version, first seen Sep 23, 2026
Used with
Projects with it also use iterate-plan, validate-plan and 9 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.
mhylleSkilliterate-plan
Update existing implementation plans through user feedback with thorough research and validation. Also migrates old checkbox-based plans to the new Task tools system. This skill should be used when iterating on implementation plans, updating plans based on new requirements, refining technical approaches in existing plans, migrating old plans to Task tools, or when the user wants to modify a previously created plan file. Triggers on requests like "update the plan", "change the implementation approach", "iterate on this plan", "migrate to new system", or when feedback is provided about an existing plan document.
Also in 4 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
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
parcadeiSkilldescribe-pr
Generate comprehensive PR descriptions following repository templates
Also in 3 projects that use this
JetBrainsSkillcreate-plan
Research the codebase and create an implementation plan with architecture notes, design document, and track decomposition. Use when starting a new feature or large change.
Also in 8 projects that use this
Microsoft AzureSkillreview-pr
Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.
Also in 4 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- maxedapps/agent-skills★ 60same name
- jesgarram/arete★ 40same name
- atomicinnovation/accelerator★ 34same name
- mhylle/claude-skills-collection★ 19same name
- L-X-T/ng-agentic-skills★ 13same name
- gabimoncha/skills★ 8same name
- paultyng/skill-issue★ 8same name
- Akindu23/my-agent-skills★ 4same name
- geemus/hax-yax★ 4same name
- ralphkrauss/agent-orchestrator★ 4same name
11 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 repository20 other files it gives its agents.
- capSkill
- code-audit-hardcoreSkill
- code-auditSkill
- coding-processSkill
- design-hierarchySkill
- design-masterSkill
- design-windowSkill
- evaluate-skillSkill
- fix-bugSkill
- human-proseSkill
- implement-plan-auditedSkill
- init-phoenixSkill
- learn-systemSkill
- plan-largeSkill
- plan-smallSkill
- refactorSkill
- remove-codeSkill
- review-large-prSkill
- review-planSkill
- write-agentSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. 0 are common, 20 are distinctive, and 15 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 17
Use the explicit path or the plan identified by the conversation.
- Distinctive: line 19
Stop if no plan exists. Do not select a plan by modification time.
- Very specific: line 37
Older Markdown plan: read ## Inc N, Depends on:, Files:, and Done when:.
- Distinctive: line 41
Read references/execution-state.md before recording or resuming work.
- Distinctive: line 47
Check that saved completion evidence still applies before skipping a completed unit.
- Distinctive: line 56
Read existing files in the unit's file list and the nearby code needed to understand their contracts.
- Very specific: line 58
Read linked use-case details and technical notes for this unit.
- Very specific: line 59
Read any planOverride in this unit's state and its referenced audit note before coding.
- Distinctive: line 66
If modifying existing functions: what does the current code do that callers depend on?
- Distinctive: line 71
If the unit's file list includes existing files that will be modified:
- Distinctive: line 74
If no existing tests cover the path: write a brief characterization test.
- Distinctive: line 82
Write code per the plan spec, the standards loaded in 3.1, and the common-mistakes loaded in 3.1.
- Distinctive: line 86
Run the project check command:
- Distinctive: line 100
After 4 stages without a clean check, stop.
- Very specific: line 106
Read every check for this unit, including relevant use-case results and older Done when fields.
- Distinctive: line 118
Do not claim that the full use case works until the connected behavior passes its checks.
- Distinctive: line 124
Before commit, reconcile touched vs declared:
- Distinctive: line 132
Keep pre-existing user changes and execution records separate from application changes.
- Distinctive: line 157
Follow references/execution-state.md.
- Very specific: line 163
After Step 3.10 records done, commit before the next increment.
- Very specific: line 166
If commit=no (arg) or the user has opted out in conversation — skip.
- Very specific: line 167
If commit=yes (arg) — proceed regardless of branch.
- Very specific: line 170
No AI attribution. No Co-Authored-By: Claude, no robot emoji, no "Generated with Claude" line, no model name in the trailer.
- Very specific: line 171
If pre-commit hooks fail: fix the issue and create a new commit.
- Distinctive: line 172
If the discovered change list is empty (no-op increment, fully cached): skip the commit, log a note, continue.
- Distinctive: line 178
If the retry ladder (3.5) exhausts 4 stages without a clean check, OR 3.6 cannot produce evidence, OR 3.7 reveals material divergence the …
- Very specific: line 184
Ask the user: continue with a modified approach, skip this increment (mark blocked-on-user), or abort.
- Very specific: line 188
When all increments are done or blocked-on-user:
- Very specific: line 190
Run a final full check command.
- Very specific: line 199
Commit count when enabled.
- Distinctive: line 203
When units have satisfied dependencies and no overlapping files, use subagents if their work can be isolated safely.
- Distinctive: line 206
All standards and common-mistakes for the files it will touch — pasted inline.
- Distinctive: line 219
Never implement ahead of dependencies.
- Distinctive: line 221
Keep execution records outside the plan.
- Very specific: line 226
Commit cadence follows CC-1.
“Common” is measured: kept by at least 6 in 10 of the 21 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 a plan
Args
plan=<path>— explicit plan path. Otherwise select the plan identified by the task.commit=auto|yes|no— defaultauto. Commits per increment unless onmain/master.yesforces commits even on trunk;nosuppresses commits entirely.
Process
Step 1 — Bootstrap context
Use the explicit path or the plan identified by the conversation. Ask if multiple tasks match.
Without an explicit file path, prefer plan.md in that directory. If only HTML exists, use the reader rules below.
Stop if no plan exists. Do not select a plan by modification time.
Load:
- The plan and linked use cases or technical notes. Read
state.jsonand relevant entries inworklog.mdwhen resuming. For older plans, include companion specification files. Do not load a published copy such asplan.artifact.html. - Globally relevant standards only from
.agents/standards/— the always-on baseline (commit style, security baseline, language conventions). Layer-specific standards load per increment in Step 3.1. - Index of available common-mistakes from
.agents/common-mistakes/. Don't load them all yet — load per-increment based on what each increment touches. - The project check command (look it up; do not assume). Must run the full suite — tests, type-check, lint — not a partial scope. Also capture how to run a single test or single file; the retry ladder and done-criteria check need it.
- Current git ref:
git rev-parse HEAD. Useful for diff-vs-start reporting.
Progressive loading is the point — more standing context degrades adherence to each item. Per-increment loading keeps attention focused.
Read the work units
The loop below calls each implementation unit an increment:
- Small Markdown plan: the entire
## Worklist is one unit, idsmall. Read its files from## Approach. Each checkbox supplies a change and check. - Large Markdown plan: each
### PR Nblock is one unit, idpr-N. Read**Depends on:**,**Files:**, and all checkbox checks. Map dependency labels to the same ids. - Older Markdown plan: read
## Inc N,**Depends on:**,**Files:**, and**Done when:**. Retain existing state ids; otherwise useinc-N. Ifoverview.mddefines the dependency graph, use it and flag contradictions. - Older HTML plan: read increment sections with
data-inc,data-depends,data-files, anddata-done. Preserve the literaldata-incvalue as the state id. Split comma lists and trim whitespace. Read linked specifications and inlineinc-notesdetails. For a small HTML plan with no increment sections, use onesmallunit from its files and verification sections.
An observable check is required. A size field and a particular acceptance grammar are not. Read references/execution-state.md before recording or resuming work.
Step 2 — Build the execution schedule
Build the dependency graph from the work units. Reject duplicate ids, unknown dependencies, and cycles before execution.
The ready set contains unfinished units whose dependencies are all done in state.json.
Check that saved completion evidence still applies before skipping a completed unit.
Blocked dependencies block their dependents; they do not make them ready.
Step 3 — Execute increments
For each ready increment, run the per-increment loop below. Substeps are ordered so verification gates fire before commit.
3.1 Load increment context
- Read existing files in the unit's file list and the nearby code needed to understand their contracts.
- Load increment-specific standards and common-mistakes based on the files and domain (e.g.
auth/→ load auth standards; migration file present → load migration standards). - Read linked use-case details and technical notes for this unit. For older plans, include inline
inc-notesand siblinginc-<N>-notes.mdfiles. - Read any
planOverridein this unit's state and its referenced audit note before coding. Apply the authorized correction; surface unresolved design conflicts.
3.2 Think before coding
In ≤ 4 lines of working notes:
- Smallest reversible step that moves this increment forward.
- If modifying existing functions: what does the current code do that callers depend on? Note the contract before touching it.
- What done-criteria evidence will be produced (command output, test result, curl response) — anchors Step 3.6.
3.3 Behavior-preservation setup (only if modifying existing code)
If the unit's file list includes existing files that will be modified:
- First preference: locate existing tests that exercise the code being modified. Run them — they must pass pre-change. If they fail pre-change, stop and surface; something is already broken.
- If no existing tests cover the path: write a brief characterization test. Run it — should pass pre-change. Commit it as part of the increment.
These tests are the regression net. After modification, they either still pass (intended for refactor / additive changes) or fail (must be deliberate and explicitly called out in done-criteria). A failing pre-existing test post-modification, without a done-criteria acknowledging the change, is a regression.
For greenfield files, skip this step — no existing behavior to preserve.
3.4 Implement
Write code per the plan spec, the standards loaded in 3.1, and the common-mistakes loaded in 3.1. Incremental edits — don't rewrite whole files when a targeted change is enough.
3.5 Check command — layered retry ladder
Run the project check command:
<check-cmd> > /tmp/hawk-implement-plan-check-<inc>.log 2>&1
rg -n 'error|warning|fail|FAIL' /tmp/hawk-implement-plan-check-<inc>.log | head -50<inc> is the increment id (e.g. inc3). If clean, proceed to 3.6. If not, escalate. Each stage must be qualitatively different from the previous — repeating the same approach with minor variations doesn't count.
- Stage 1 — bare retry. Re-run without changes. Transient failures (file lock, network, flaky test) clear themselves. If clean, proceed; note the retry in the outcome record.
- Stage 2 — direct fix. Read the failure carefully. Fix the immediate, specific error. One pass. Re-run.
- Stage 3 — rephrase. Re-read the increment spec, re-load the relevant standards/common-mistakes (context may have drifted), then re-attempt with the failure as explicit input. Note in working notes: "Stage 2 failed at X; standard says Y; trying Z."
- Stage 4 — flag the plan. Question whether the increment as specified is buildable in this codebase. If a key dependency is missing, the chosen approach is fundamentally incompatible, or the plan's assumptions don't hold — flag the plan, not the implementation. Stop and surface. Do not synthesize a different plan unilaterally.
After 4 stages without a clean check, stop. The escalation message lists which stages were tried, what each attempted, and the current failure. Recovery decisions (skip, modify, abort) belong to the user.
3.6 Done-criteria verification — the load-bearing gate
The check command passing means compile / lint / tests pass. It does not mean this increment did what was specified.
Read every check for this unit, including relevant use-case results and older Done when fields. Produce concrete evidence:
- Endpoint changes:
curland capture the response. Compare to expected. - UI changes: render the page; capture observable state (HTML, screenshot, accessibility tree).
- Schema changes: query the DB; capture the result. Verify constraints, indexes, row shape.
- Library / internal code: run the specific test the done-criterion implies, or write one inline.
- CLI changes: invoke the CLI; capture stdout/stderr.
Save to /tmp/hawk-implement-plan-verify-<inc>.log. If you cannot produce evidence, the increment is not done — re-enter 3.4 with the verification gap as the next thing to address, or escalate.
For a unit that delivers behavior, exercise the mechanism through its application caller, not only a test that constructs it directly. For an explicit prerequisite, verify its promised schema or compatibility result and identify the dependent unit that activates it. Do not claim that the full use case works until the connected behavior passes its checks.
This is the gate against the "I think it works" pattern. Self-asserted done is unreliable; evidence on disk is not.
3.7 File-divergence check
Before commit, reconcile touched vs declared:
git diff --name-only HEAD > /tmp/hawk-implement-plan-touched-<inc>.log
git ls-files --others --exclude-standard >> /tmp/hawk-implement-plan-touched-<inc>.logCompare actual changes with the unit's scope and file groups from Step 1. Keep pre-existing user changes and execution records separate from application changes. The file list is starting evidence, not a required exact set. Explain necessary extra files in the worklog. For untouched listed files, check whether the intended behavior still needs work there. Pause only for a material scope or design change. Do not add work just to match the list.
3.8 Self-review against common-mistakes
Walk through the loaded common-mistakes files for this increment. Apply each as a checklist item against the actual diff — do not paraphrase, apply. If any apply, fix before proceeding.
Lowest-asymmetry verification (same model that wrote the code is reviewing). Complements the deterministic gates above; do not rely on it alone.
3.9 Pre-commit semantic check
Targeted grep over the diff for things the check command won't catch:
- Debug residue:
console.log,console.debug,print(,dbg!,dump(,pp(, language-appropriate equivalents. - TODO/FIXME/XXX comments added in this increment (vs pre-existing).
- Hardcoded-looking secrets: long base64-ish strings,
BEGIN ... PRIVATE KEY,sk_live_,xoxb-, AWS access key patterns. - Temp files in untracked:
tmp_*,*.bak,*.swp,*-debug-*.
Pre-commit hooks catch most of this deterministically — this step is the fallback when they don't. Surface findings; don't auto-remove without confirmation.
3.10 Record outcome
Record the outcome in worklog.md and merge progress into state.json.increments[<id>].
Follow references/execution-state.md. Keep evidence paths, attempts, and changed files there.
Preserve audit checkpoints and forwarded overrides. Do not append logs or mark execution checkboxes in the plan.
Mark done only after every check has evidence. Record a failed or blocked attempt before stopping.
Step 3.5 — Commit cadence (contract CC-1)
After Step 3.10 records done, commit before the next increment. This sub-step is the named contract CC-1. Sibling skills (notably implement-plan-audited) inherit it by reference; do not duplicate its rules elsewhere. The step number is stable — code-audit and implement-plan-audited reference "Step 3.5" by name.
- Stop-out edge cases first. If the repo is mid-rebase (
.git/rebase-merge/or.git/rebase-apply/exists), mid-merge (.git/MERGE_HEADexists), or has unresolved conflicts (git status --porcelain | grep -E '^(UU|AA|DD|AU|UA|UD|DU)'returns rows) — stop and surface the state. Do not commit through (matches thecapskill's discipline). Plain detached HEAD (not from a rebase) is fine — treat as non-trunk and commit. - If
commit=no(arg) or the user has opted out in conversation — skip. - If
commit=yes(arg) — proceed regardless of branch; jump to step 5. - Detect the current branch:
git rev-parse --abbrev-ref HEAD. Ifmainormaster— skip the commit by default. The user is on trunk; assume their own cadence. Continue execution. - Otherwise — commit. Single-line message matching the repo's existing style (discovered via
git log -10 --oneline). Stage by actual change, using the discovery from Step 3.7 (the/tmp/.../touched-<inc>.log). Nevergit add -Aorgit add .— they sweep in.env, scratch files, unrelated changes. Always stage by the discovered name list. Renames + deletions:git diff --name-only HEADreports both the old (deleted) and new (modified) sides;git ls-files --othersreports the post-rename name as untracked. Stage both; git auto-detects renames. A pure deletion is staged correctly bygit add <deleted-path>— git records the removal. - No AI attribution. No
Co-Authored-By: Claude, no robot emoji, no "Generated with Claude" line, no model name in the trailer. The commit must read as if a human wrote it. - If pre-commit hooks fail: fix the issue and create a new commit. Never
--amend, never--no-verify. Pre-commit hooks are the repo maintainers' chosen deterministic gate; bypassing them is forbidden. - If the discovered change list is empty (no-op increment, fully cached): skip the commit, log a note, continue.
Because parallel-executed increments commit serially from the orchestrator after each subagent returns, at commit time the only uncommitted changes are the just-finished increment's — git diff --name-only HEAD is unambiguous.
Step 4 — Handle failures
If the retry ladder (3.5) exhausts 4 stages without a clean check, OR 3.6 cannot produce evidence, OR 3.7 reveals material divergence the agent can't explain: stop. Report:
- The specific failure (final check output, missing evidence, or file divergence).
- Which ladder stages were tried and what each attempted.
- The current diff state (uncommitted).
Ask the user: continue with a modified approach, skip this increment (mark blocked-on-user), or abort. Do not loop. Do not synthesize a different plan unilaterally.
Step 5 — Completion
When all increments are done or blocked-on-user:
- Run a final full check command. Capture to
/tmp/hawk-implement-plan-final-check.log. - Self-review the full diff against the full loaded standards set (not just per-increment subsets).
- Summarize to the user:
- Increments completed and blocked.
- For each completed increment: attempts (1 / 2 / 3 stages — quick signal of friction).
- Files created/modified across the run.
- Standards followed.
- Per-increment done-criteria evidence files (
/tmp/.../verify-incN.log) — explicit audit trail. - Remaining manual verification (anything the plan flagged as out of scope for automated checks).
- Commit count when enabled. If skipped (on
main/masterorcommit=no), say so explicitly so the user isn't surprised by a cleangit log.
Parallel execution
When units have satisfied dependencies and no overlapping files, use subagents if their work can be isolated safely. Each prompt is self-contained:
- The relevant slice of the plan (its increment + dependencies' summaries).
- All standards and common-mistakes for the files it will touch — pasted inline.
- The Big-output discipline rule verbatim (so subagents apply the same
/tmp+rgrecipe to their own check-command runs). - The per-increment loop instructions. Workers return the outcome and evidence; the orchestrator alone writes shared execution records.
Subagents do not commit. They return their diff to the orchestrator. The orchestrator owns the working tree and applies CC-1 serially in DAG-scheduled order after each subagent returns.
The parallel path uses the same verification gates as the serial path — done-criteria check, file-divergence check, outcome record. A subagent's "I implemented it and the check passed" is not enough; its verify log is part of what it returns, and the orchestrator confirms before committing.
Hard floors
The Process steps above are the source of truth. These are the floors that must not slip:
- Fresh sessions without context produce wrong code. Loading the plan, global standards, and increment-specific standards/common-mistakes is non-negotiable.
- Never implement ahead of dependencies. The DAG exists for a reason.
- Done means evidence on disk, not memory (Step 3.6). An increment without a verify log is not done — regardless of what the check command says.
- Keep execution records outside the plan. Read Markdown first; support older plans with the reader rules in Step 1.
- Retries are layered, not repeated (Step 3.5). Each stage qualitatively different.
- Behavior preservation by default when modifying existing code (Step 3.3). A failing pre-existing test post-modification, without a done-criteria explicitly calling out the change, is a regression.
- File divergence is a signal, not a footnote (Step 3.7). Material divergence pauses the run.
- Record a structured outcome in
worklog.mdand update state after each unit (Step 3.10). - Commit cadence follows CC-1. No AI attribution, no
--amend, no--no-verify, nogit add -A, no commits through mid-rebase / mid-merge / unresolved-conflict states. - Subagent prompts are self-contained. They can't access the parent context — paste all context inline, including the Big-output discipline rule.
- Stage 4 stops the run. Do not modify the plan's design — if the plan is wrong, tell the user.
- The orchestrator commits — subagents do not.
- Big-output discipline. Heavy command output (project check, full
git diff, repo-wide search, long log, large fetch) goes to/tmp/hawk-implement-plan-<step>.log, thenrg -n '<pattern>' /tmp/hawk-implement-plan-<step>.log | head -50extracts what you need. Read only the required lines from the file. Subagent prompts include this verbatim.
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.

