plan
Write or revise an implementation plan under documentation/plans/. The turn can read, research and run checks, but only plan files can be written.
by HenriGrimm★ 25 GitHub stars
Install plan in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
One plan format
Every plan uses the Build schema at the end of this skill (planType: build): sequential numbered steps with shared context written once. Batch independent scope questions and ask dependent ones in order. When the user delegates remaining decisions, record your assumptions and draft the plan. Ask only about a genuine blocker or required approval. Apply {{plan_granularity}} to step size.
A saved plan runs either in one chat (Build here) or unattended with /factory <plan path>, which hardens the spec, writes failing acceptance checks first and builds one feature at a time in the chat’s checkout. Write acceptance criteria that can be turned into checks: observable behaviour, concrete commands, finite lists of cases rather than "every" or "any". When revising an older plan without planType: build, convert it to the Build schema.
/plan — planning turn
You are running /plan. Your single deliverable is a detailed, executable plan document saved as a markdown file — either a new one, or a revision of a plan that already exists. You do not modify application files or commit changes. You may write and edit plan markdown and use issue_* tools (search, file, update, link, comment) so the plan can attach to Issues. Shell and code-exec (execute_command, run_javascript, run_python) are allowed only for read-only discovery (version checks, listing, probes) — not for changing the repo or running builds that write artifacts outside documentation/plans/.
What /plan produces
A markdown file at:
documentation/plans/<descriptive-kebab-name>.md
If documentation/plans/ does not exist yet, create it with make_directory (path: "documentation/plans") or write the plan with save_file (the server creates parent directories automatically). Do not ask the user to create the folder manually.
New plan or revision?
Decide this first.
- No plan for this work yet → write a new one (Step 1 → Step 2).
- The user is changing an existing plan ("add a step for X", "drop step 4", "split step 2", "update the plan") → revise it in place. Do not start a fresh file and do not rewrite the whole document.
- Find the plan (
find_files/list_directoryunderdocumentation/plans/) andread_filethe part you are changing. - Apply the smallest correct edit with
replace_text_in_file(preferred — passexpected_countto prove the match is as narrow as you think),insert_at_line(useafter_text/before_textanchors, not line numbers), orappend_filefor a new trailing section. - Re-read the edited region, then run
check_planon the saved path (see Plan-quality requirements).
- Use
save_fileon an existing plan only when the rewrite is genuinely wholesale — a new structure, or more than roughly half the document.
- Find the plan (
Edits are scoped the same way saves are: documentation/plans/**.md only. Anything outside is refused.
Step 1 — Gather context
Before writing the plan, you MUST:
- Read the user's request carefully and restate it back in one sentence to confirm understanding.
- Apply the
{{plan_granularity}}granularity setting (configured in Settings → Agents). Use this level unless the user explicitly requests a different one.large— one task per feature, module, or sub-system. Best for large-context-window models or users who know the architecture.medium— one task per component, route, or logical unit. Functions are grouped together.small— every function, every config key, every test case is its own numbered task. Best for small-context local models.
- When scope, MVP boundaries, or priority order are ambiguous, prefer
ask_question(structured cards) before drafting the plan so assumptions are explicit. Batch related questions into one call (up to 4 per call) rather than asking them one per turn. - Explore the codebase using read/search/list tools to understand the current state, conventions, and dependencies. Only when the user explicitly requests delegation, spawn read-only research sub-agents with focused briefs.
- Verify third-party library docs and APIs via Context7 (if enabled) before specifying imports or signatures in the plan.
- Use web tools for current docs, deprecations, or migration guides not confirmed in the repo.
- Do not write the plan until key assumptions are tool-verified or explicitly labeled as assumptions.
- Identify the files that will be modified and the risks/test implications.
Ask the user about unresolved goals, expected behavior, or constraints that change the plan. Resolve routine implementation details from the repo and recommend a sensible approach; do not turn those into questions for the user.
How to ask planning questions
- Write for a junior developer by default: plain language, short sentences, and one decision per question. Match a more technical level when the user requests it.
- As
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the plan skill do?
Write or revise an implementation plan under documentation/plans/. The turn can read, research and run checks, but only plan files can be written.
How do I install the plan skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the plan skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…