implement-plan

implement-plan is a skill for Claude Code, Codex from nicograef/handbook. It costs 80 tokens per session (2,761 once invoked), scanned A, original, MIT.

A workflow for carrying out a complete coding plan in separate Git worktrees, which are independent working folders for branches.

In plain words
What is it for?
Use it to implement multi-phase plans, verify each requirement, and bring the completed branches back into the base branch.
Why use it?
It keeps each phase's work, commits, and acceptance checks organized and recoverable while the plan progresses.

Skill for Claude CodeCodex

Part of the handbook plugin — 23 skills, 1 agent, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nicograef/handbook/implement-plan
Any agent
npx skills add nicograef/handbook --skill implement-plan
Clone the repo
git clone --depth 1 https://github.com/nicograef/handbook

Made for: Claude Code, Codex.

Or install handbook, the plugin that ships this one along with the rest of its 23 skills, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicograef/handbook/implement-plan.svg)](https://agentmods.dev/skills/nicograef/handbook/implement-plan)
Your own site
<a href="https://agentmods.dev/skills/nicograef/handbook/implement-plan"><img src="https://agentmods.dev/badge/skills/nicograef/handbook/implement-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.02761
Opus 5 $0.00040 $0.01380
Sonnet 5 $0.00016 $0.00552
Haiku 4.5 $0.00008 $0.00276

Measured 3d ago against content hash 3c1b7e880619, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

implement-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/implement-plan/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implement Plan

Execute a whole plan without a human turn between phases. Work is durable only once committed and ticked — that is the unit of progress. Everything else happens between checkpoints.

Workflow

  1. Resume before you start — every invocation, including the first.

    • Run the pickup sequence in recovery.md: worktree list, state scan, ## Run state, commit log, reconcile.
    • Finish or abort any half-open rebase/merge in its owning worktree first.
    • Redoing finished work is the most expensive failure available.
  2. Read the plan; pin the base.

    • Collect every phase with unmet - [ ] (plan anatomy: create-plan).
    • Detect the base branch with git symbolic-ref --short refs/remotes/origin/HEAD.
    • Fall back to git ls-remote --symref origin HEAD.
    • If neither resolves, ask — do not assume main.
    • Then pin it: BASE=$(git rev-parse refs/heads/<base>).
    • Every dry run, rebase and merge targets $BASE, never a moving branch name.
  3. Review every unmet phase in one pass — ambiguous criteria, missing context files, conflicting instructions, criteria no command can verify.

  4. Choose the shape — execution mode and the concurrency test, both in orchestration.md. Sequential is the default.

  5. Present the run contract and get one go-ahead. Contract:

    • plan path, base branch and pinned sha
    • the phase list with its grouping and each phase's review tier
    • worktree paths and branch names
    • the verification command, the stop conditions
    • every question from step 3
    • every shell command the agents need that is not already allowlisted — an unattended run stalls on a permission prompt

    The run's only planned human turn. It is using-git-worktrees step 3's confirm-before-creating, asked once instead of once per worktree.

  6. Create the run worktree .worktrees/plan-<slug> on branch plan/<slug> from $BASE, per using-git-worktrees.

    • Confirm a clean baseline there before the first edit: the verify command passes on unchanged code.
    • Later failures are then attributable.
  7. Execute each unit in order.

    • Sequential phases run in the run worktree.
    • A concurrency-eligible group gets one worktree, one branch and one agent per phase.
    • Dispatch per orchestration.md and the delegation contract.
    • No two agents ever write one file; no agent ever writes the plan file.
  8. Commit per acceptance criterion that names its own change, then tick.

    • A criterion asserting only the gate, or restating a sibling's verification, rides along with the change it describes. Never mint an empty commit for it.
    • Implement one criterion at a time, so its commit is whatever the tree already holds.
    • Never write a phase broadly and then partition it into criteria.
    • That bisecting is the only thing that makes a commit expensive. The commit itself is a second.
    • The phase's own worker runs the verification command: make test or make check if the repo has a Makefile.
    • Otherwise the language-appropriate default: go test ./..., pnpm test, mvn test.
    • Per criterion the worker runs only the targeted tests for what it changed.
    • The full gate runs once per phase, before the phase reports.
    • Scope even that gate to the languages the phase touched.
    • A Python-only phase paying for a frontend build is waste times the criterion count.
    • A whole gate multiplied by the criterion count is a phase's largest avoidable cost.
    • The lead reads that exit code. It re-runs the gate only after a fold, a rebase, or an edit the gate has not seen.
    • Commit the change with the run trailer (Constraints).
    • Tick the phase's criteria in one commit when the phase closes, not one commit per box.
    • The plan file is lead-owned, which is why the tick is a commit of its own — bookkeeping, not granularity.
    • Tick only what a tool result from this session proves.
    • If verification fails twice on one phase for the same reason, switch to systematic-debugging.
    • If that does not resolve it, stop.
  9. Fold each parallel group into plan/<slug> in ascending phase order.

    • Use the fold sequence in integration.md.
    • Transcribe that phase's ticks as you go.
    • Re-run verification after each fold — passing in isolation does not mean passing together.
  10. Land plan/<slug> on the base branch with the landing sequence in integration.md, then re-verify in the main checkout.

    • Delete the ## Run state block and commit that removal before landing.
    • The base branch never receives it.
    • Every acceptance criterion in the plan ticked: git rm the plan file in the main checkout after landing.
    • Commit that removal on the base branch as its own commit.
    • Any unticked criterion keeps the file.
    • Step 11 then reports the plan file as surviving.
    • Then git worktree remove each worktree the run created.
    • And git branch -d each merged branch.
    • Push, PR or discard is finish-branch's decision, not yours.
  11. Report. Counts line first, then one bullet per field:

    • 3 phases — 2 complete, 1 blocked; 9 criteria ticked; 11 commits landed
    • Phases — completed, with criteria ticked and commits landed.
    • Dropped — agents that returned nothing, and what happened to their work.
    • Unticked — anything left unticked, with the reason.
    • Plan file — deleted, or surviving with the unticked criteria that kept it.
    • Nothing dropped and nothing unticked: say so in one line, no padding.

Read the full file on GitHub · 217 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 217 lines · 80 tokens per session scan A 3c1b7e880619

Subscribe to this mod's changes

implement-plan is a skill published in the GitHub repository nicograef/handbook (2 stars, last pushed 27d ago), licensed MIT. It adds 80 tokens to every session and 2,761 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens