/ship:plan [feature-name]from ship
Creates detailed implementation plans with tasks for features that have been brainstormed. Supports replanning from review findings.
Ships in ship. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create an implementation plan for the active feature.
Feature state is injected by hooks at session start and after compaction — check conversation context for "SHIP ACTIVE FEATURES" or "SHIP FEATURE STATE" blocks first.
$ARGUMENTS is provided, use it as the feature namebrainstormed or planned (replanning).planning/features/*/CONTEXT.mdBefore exploring, decide whether this is a fresh plan or a replan. Replan mode is on when all three hold:
.planning/features/{name}/PLAN.md exists, and## Plan Review section, and**Status:** line is NEEDS-REVISION (a /ship:plan-verify verdict), or the last ### Outcome — {status} heading is STUCK, UNRESOLVED, or BLOCKED (a /ship:go plan-loop outcome).Anything else — no PLAN.md, no review section, or a last verdict of APPROVED — is a fresh plan: follow the steps below exactly as today.
In replan mode, the open findings are the reason the skill was invoked, and the plan is revised around them rather than rewritten:
Required inputs. The open CRITICAL findings are the required inputs to this run: the ### Critical Issues list (plan-verify), or the CRITICAL findings named by the last ### Round n subsection and the outcome block's history (loop). Read each one and verify it against the code before acting on it — a finding can be wrong, and a disproved finding is recorded as such, not silently dropped.
Surgical edits only. Keep every task id and never renumber. Leave tasks the findings do not name untouched. Revise only what a finding names — files, reference, action, verify, ordering — or add a new task with the next unused id when a finding calls for work no task covers. Exploration is scoped to the findings; do not re-explore the whole surface. Do not rewrite ## Exploration Summary or ## Decisions wholesale; append to ## Decisions when a finding changes one.
Preserve ## Plan Review entirely — every prior ### Round n, ### Critical Issues, and ### Outcome block stays as written. Then append a new subsection at the end of the section:
### Round {n} — /ship:plan
**Findings received:** {count}
1. [CRITICAL] Task {id} / {file} — {description}
revised: {what changed}
2. [CRITICAL] Task {id} / {file} — {description}
disproved: {evidence from the code}
{n} is one greater than the highest existing ### Round number in the section (treat an absent number as 0), so the record never collides with a round the loop or a replanner wrote. Every finding received gets exactly one revised: or disproved: line.
Step 7 and the display below carry the replan-mode branches; Step 8 is unchanged.
Scale exploration to uncertainty — the gate is the output, not the process:
## Codebase Notes first, if present. When the brainstorm already mapped the territory, do not re-explore it — verify with spot-checks only..planning/verify-checklist.md, if present. The verifier fails the feature on every bullet the diff violates. A bullet that bears on this feature is a design constraint: settle it in the <action> of the task it governs, rather than leaving it for a fix round after the design is fixed.Planning may start only when you know the integration points, the closest existing patterns, and the conventions the new code must follow. Collect what you learned into an ## Exploration Findings block; these findings land in PLAN.md's ## Exploration Summary.
Review the Exploration Findings and CONTEXT.md together. Ask follow-up questions only if ANY of these are true:
If none apply, skip this step. If questions are warranted, use AskUserQuestion with 1-4 targeted questions informed by exploration findings.
Now create the plan. You have the full exploration findings and CONTEXT.md. Do supplementary Glob/Read calls as needed for specific details.
Extract from CONTEXT.md:
## Open Questions, when present) — decisions the brainstorm left for you to settleUse the pre-gathered exploration findings as your codebase understanding. Do supplementary Glob/Read calls only for specific details not covered.
If the feature involves unfamiliar technology, make up to 3 WebFetch calls.
Research when: unfamiliar library, new API integration, uncertain config format. Skip when: you're confident about the domain.
If CONTEXT.md contains a ## Chosen Architecture section, use that approach as your architectural foundation.
Document implementation decisions not already in CONTEXT.md. For each, note the rationale.
Settle every open question. Each entry under CONTEXT.md ## Open Questions gets one ## Decisions line naming the question, the answer, and the rationale. A question you cannot settle from the code or CONTEXT.md goes to the user through the Post-Exploration Clarifying Questions step — it never enters the plan as an open item.
Decisions travel to the builder. PLAN.md's ## Decisions section is copied into every per-task builder's brief, so write each entry to stand on its own in a line or two.
If a decision contradicts CONTEXT.md, flag it explicitly.
Write the tasks the feature needs — task count is judgment, not a quota. If the plan exceeds ~12 tasks, split the feature. Each task must:
Task XML format:
<task id="1" status="pending" depends="(optional: comma-separated task IDs when dependency isn't simply the previous task)">
<name>Verb phrase describing what is built</name>
<files>exact/path/to/file.ts, another/path.ts</files>
<reference>path/to/similar/existing_code.ts:functionName — closest existing pattern to follow</reference>
<action>Specific implementation instructions at contract altitude. Include: schema shape and field names, HTTP method + path, error behavior at boundaries, integration points. Be concrete enough that the builder can implement the contracts without guessing; internals stay theirs.</action>
<verify>Runnable command that proves completion. Examples:
- npm test -- --testPathPattern=auth
- node -e "require('./src/models/user')"
- grep -q "export function createUser" src/services/user.ts
</verify>
</task>
Reference field: For each task, include a <reference> pointing to the closest existing code pattern found during exploration. The builder reads this file first and uses it as a template. Omit only if no analogous code exists in the project.
Task dependencies: Use depends when a task's dependency isn't simply the previous task (e.g., task 5 depends on tasks 1 and 3 but not 4). Omit when tasks are naturally sequential.
Writing for the builder — contracts vs internals: <action> specifies the observable, load-bearing contracts — endpoint shapes, schemas and field names, error behavior at boundaries, library choices, integration points — and leaves internals (function names, decomposition, imports, file-internal structure) to the builder. The litmus: would two reasonable implementations differ in a way the user cares about? If yes, decide it in the plan; if no, leave it to the builder.
Specificity litmus test: Could a different Claude instance execute this task without asking clarifying questions? If not, add more detail.
| TOO VAGUE | SPECIFIC ENOUGH |
|---|---|
| "Add authentication" | "Add JWT auth using jose library, store in httpOnly cookie, 15min expiry. POST /api/auth/login accepts {email, password}, validates with bcrypt against User table, returns 200 + Set-Cookie on success, 401 on failure." |
| "Create the API" | "Create POST /api/projects endpoint in src/routes/projects.ts accepting {name: string, description: string}, validates name length 3-50 chars, inserts via db.projects.create(), returns 201 with project object." |
| "Handle errors" | "Wrap API calls in try/catch in src/services/api.ts. On 4xx/5xx return {error: string}. In src/components/Form.tsx show error via toast notification using existing showToast() from src/utils/toast.ts." |
| "Returns project object" | "Returns 201 with project. On validation: 400 with {error: string}. On duplicate name: 409. On DB error: 500 logged via existing logger." |
Error path rule: For tasks at system boundaries (API endpoints, file I/O, DB operations, external APIs), specify error responses in <action>: what errors can occur, what status/shape is returned, and whether errors are logged.
Task ordering: infrastructure before logic, models before services, services before routes.
Phasing: After designing all tasks, assess whether they need phases:
<phase> groupsPhase sizing is judgment-based. General target: 3-5 tasks per phase. Group by natural boundaries: infrastructure → logic → integration → tests.
<phase id="1" name="Core data models" status="pending">
<task id="1" status="pending">...</task>
<task id="2" status="pending">...</task>
</phase>
Phase status: pending → building → done. Task IDs are globally unique across all phases.
Integration verify: The last task's <verify> must exercise the complete feature path, not just its individual piece. If the feature spans multiple layers (API + UI, or CLI + service), the final verify should test the integrated flow.
Context-aware phasing: Each phase should be completable within a single builder context window. If a phase requires reading >15 unique files or has >5 tasks with complex multi-file actions, split it. The builder runs with 60 maxTurns per phase. A phase that outlives that budget is recoverable — a continuation builder resumes from the first pending task — but every handoff loses warm context, so size tasks to avoid it: a task whose action spans many files or a long spec should be split.
Before writing, verify each check. Fix any issues.
Build an explicit mapping from each acceptance criterion to its implementing task(s):
Criterion: "Users can log in" → Task 3 (POST /api/auth/login)
Criterion: "Invalid credentials show error" → Task 3 (401) + Task 5 (toast)
If any criterion has no task mapping, add a task.
For each task involving external boundaries (API endpoints, file I/O, DB operations, user input), ask:
Add mitigations to the relevant task's <action> if issues are found.
Completeness, wiring, ordering, and phase-coherence judgments belong to the independent plan-verify reviewer. One hard rule stands regardless: every <verify> must be a runnable shell command — that rule lives in Step 5's task format, not this checklist.
In replan mode, do not Write the template. Edit .planning/features/{name}/PLAN.md in place: revise the tasks the findings name, preserve everything else (including ## Plan Review), and append the ### Round {n} — /ship:plan subsection described under Replan Mode.
Otherwise, write .planning/features/{name}/PLAN.md:
---
feature: "{name}"
goal: "[Goal derived from CONTEXT.md]"
---
## Exploration Summary
**Similar patterns:** [file:line references to closest existing implementations]
**Architecture:** [module boundaries, layers, entry points relevant to this feature]
**Conventions:** [naming, imports, error handling, test patterns]
## Research Notes
[Findings, or "Domain familiar — no research needed"]
## Decisions
- [Decision]: [rationale]
## Must Deliver
- [Outcome statement mapping to acceptance criterion]
## Acceptance Coverage Map
[The mapping from Step 6.1]
---
<task id="1" status="pending">
<name>...</name>
<files>...</files>
<reference>...</reference>
<action>...</action>
<verify>...</verify>
</task>
[more tasks...]
## Risk Notes
- [Task N — what could go wrong and what to do]
Update the status field in CONTEXT.md frontmatter to planned.
After writing, display:
## PLAN READY
Feature: {name}
[In replan mode:] Mode: replan (N findings addressed)
Tasks: [N] [in M phases / flat]
Must Deliver: [N items]
Research: [done / skipped]
[List each task name on its own line, grouped by phase if phased]
Next: /ship:plan-verify
<action>Implement the feature</action>.## Plan Review section the run exists to address.$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
high16 skills in this plugin
/autoUse when you want to take an idea, a ledger row or an in-flight feature all the way to a pull request with no prompts after the brainstorm/buildUse when a feature plan has been verified and is ready for implementation — executes tasks with atomic commits/designUse when a brainstormed feature needs architectural decisions — presents 2-3 approaches for user to choose before planning/deviation-rulesUse when plan diverges from reality during build execution — provides 3 escalation levels for handling failures/finishUse when a feature has been verified and needs to be completed — creates PR, merges locally, or keeps branch/git-commitsUse when making git commits during Ship feature builds — provides atomic commit format and conventionsnpx claudepluginhub dilhanz/ship --plugin shipOther plugins' skills for the same job