/maxi:planfrom maxi
Use when the user invokes /maxi:plan or wants to create a technical implementation plan for a clarified feature — spec must be at status "clarified"
Ships in maxi. 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.
Read when SKILL.md points to them.
Create or explicitly correct a technical implementation plan for an existing spec. Delegates every structural plan write to /maxi:writing-plans and writes only docs/maxi/specs/NNNN-slug/plan.md plus its optional planning support artifacts.
Load skill-resolution.md. Before every writing-plans handoff, run bash "$maxi_skills_root/using-maxi/resolve-skill.sh" "$maxi_owner_skill" writing-plans and read the complete returned skill. Normal creation and structural correction use this same bundled engine.
docs/maxi/constitution.md must exist — hard stop if missing: "No constitution found. Run /maxi:constitution first."docs/maxi/specs/ at status clarified
drafting: stop — "Spec is still drafting. Run /maxi:specify first."specified: stop — "Spec must be clarified before planning. Run /maxi:clarify first. If the spec has no ambiguities, /maxi:clarify will complete in seconds and confirm this."planned or later and the user did not explicitly request a structural plan.md correction: stop — "Spec is already planned. Proceed to /maxi:tasks."planned, tasked, analyzed, or implementing; parked, cancelled, and done remain blocked. Never infer correction mode from an ordinary /maxi:plan invocation.plan.md already exists; then load spec.md (FRs, SCs, user stories) and constitution.md (principles, constraints)./maxi:writing-plans SKILL.md if it is not already loaded in the current context; stop if it is unavailable. An announcement or this wrapper does not replace that read. Invoke its instructions in the current agent; skill delegation does not require an extra planning agent. Pass the spec and constitution, canonical Maxi plan path, settled choices, requested destination and owner-only return context. Let writing-plans run its full planning process including file structure decisions and task decomposition. Its output is the canonical Maxi plan, without a duplicate plan or nested execution handoff. Trace every changed value through producer, mutation, persistence, reload and consumer; cover interacting paths and corresponding verification before returning.docs/maxi/specs/NNNN-slug/plan.md following plan-template.md structure, the Global Constraints Protocol and Review Focus Protocol below. Keep lean upstream task bodies: interfaces and assertions remain in their owning tasks with verification commands; ordinary implementation bodies are unnecessary when the interface and test determine the code. Set plan.md frontmatter: spec_slug from spec, created and updated to today's ISO date. Additionally create any of these if writing-plans produced them: research.md, data-model.md, contracts/ directoryplan.md for non-obvious architectural choices. Look for: Tech Stack sections, storage/database/runtime/framework picks, phrases like "we chose X over Y because" or "considered A, B, chose C". For each detected choice, invoke /maxi:x-adr — it will draft the ADR, show it to the user, and write it only if the user consents. If the user declines all ADR proposals, the plan is still complete; ADR capture is opt-out, not mandatory. Do not invoke /maxi:x-adr for trivial choices (e.g., variable naming conventions, test library defaults).status → planned; also set updated: [today's ISO date] on spec.md and on plan.md.spec.md and plan.md; the coordinator owns the single bounded review round. Suppress only the nested initial-review dispatch. For standalone normal first planning (no prior plan), Invoke /maxi:review exactly once for one design review of the current spec.md and plan.md; return its verdict without correction. A narrower phase-only request stops after the plan write. Standalone replanning returns after its owner write; only an authorized design coordinator continues through correction and review.planned status, plus the verdict if a review ran. Never invoke tasks, analyze or implement from this operation.Use this owner mode only when the user explicitly requests a structural correction to the existing plan.md and the spec status is planned, tasked, analyzed, or implementing. parked, cancelled, and done are blocked, and a normal invocation never becomes a correction implicitly.
plan.md before any write./maxi:writing-plans from the bound snapshot for the correction.planned.planned status to the outer coordinator when supplied. Direct edit-only correction stops after this owner write.This correction never invokes review, specify, clarify, tasks, or analyze and never edits tasks.md or analysis.md.
Apply this protocol to normal creation, replanning, and explicit structural plan correction after mandatory delegation to /maxi:writing-plans. Classify only applicable durable cross-task constraints from the current spec and constitution: scope boundaries, protected artifacts or data, required verification evidence, compatibility or integration handoffs, and completion or reporting expectations.
Post-format every newly written or structurally corrected plan with exactly one Global Constraints section and no second delivery-contract section. Use simple applicable-only bullets with no fixed category labels or per-category None entries. When none apply, write exactly:
Exclude current worktree, HEAD, selected tasks, and stop point. Do not persist individual authorization for Git-history, remote-repository, deployment/infrastructure, data-publication, or secret-access mutations. A durable rule requiring fresh authorization is allowed, but an earlier authorization never carries forward.
Do not add a reviewer predicate, artifact, status, ledger record, automatic dispatch, or any other execution mechanism for this protocol. Existing historical plans remain byte-unchanged unless an owning Maxi workflow explicitly rewrites them.
After the writing-plans risk scan, retain exactly one Review Focus section in every new or structurally corrected plan. Write zero to five justified Review Focus cases, each naming its owning task and test. If the scan finds no case beyond tests already assigned to tasks, write exactly:
Keep the task's exact interface, assertion and verification command in its body. Do not invent risks to fill a quota or turn this section into a second review dispatch.
Before delegating to /maxi:writing-plans, run this check:
For each constitution principle, ask: "Does the spec require something that contradicts this principle?"
Examples:
If violations found: present them to the user. Options: (a) amend constitution, (b) amend spec, (c) note as exception. Do NOT proceed to planning until user decides.
This check is mandatory even when:
All written to docs/maxi/specs/NNNN-slug/:
| Artifact | Required | Notes |
|---|---|---|
plan.md | Always | Verify plan-template.md exists (Read tool) before writing; if missing, stop: "Cannot proceed — plan-template.md is missing. Please reinstall the maxi plugin." Then follow the template schema |
research.md | If needed | Technology choices, library comparisons |
data-model.md | If needed | Entities, relationships, schemas |
contracts/ | If needed | API endpoint definitions |
quickstart.md remains an optional planning output.
When this skill emits prose that references another maxi artifact (an ADR, spec, plan, tasks, constitution, or repo file) — in an artifact body or in a chat report — render it as a relative Markdown link, not a bare slug/number/code span:
.md (an ADR slug like 0003-constitution-decoupled-from-claudemd; for generic spec artifacts use <feature-dir>/<name>, e.g. 0002-migrate-adr-review-fixes/spec; non-.md files keep their full name).related_adrs entries stay bare slugs) or within-document IDs (FR-012, section names)./maxi:writing-plans. This applies even for "simple" or "small" features — there is no complexity threshold below which direct writing is allowed.plan-template.md structure — not free-form notes. Always copy the template structure first.docs/maxi/specs/NNNN-slug/. Never write to project root, docs/, .specify/, or the user's current working directory./maxi:writing-plans → delegate firstdocs/maxi/specs/NNNN-slug/drafting or specified spec → stop, spec must be clarifiedstatus: planned before plan.md is verified on disk → atomic transition only/maxi:x-adr → delegate to /maxi:x-adr, which handles consent, numbering, and index updatesdocs/maxi/specs/NNNN-slug/, regardless of cwd| Rationalization | Counter |
|---|---|
| "I wrote the spec so I know it's aligned with the constitution" | Self-authored specs still get checked. The check exists precisely because authors have blind spots. Run it. |
| "The user says there are no ambiguities, skipping clarify is fine" | User assertions don't replace the clarification phase. /maxi:clarify completes in seconds on an unambiguous spec — run it. The pipeline is strict precisely to avoid this class of shortcut. |
| "The spec came from migrate-from-speckit, it's already mature" | Maturity doesn't replace the phase. The pipeline applies equally to migrated specs. Run /maxi:clarify. |
| "This is a simple feature, writing-plans is overkill" | Feature complexity does not determine whether the sub-skill is invoked. Invoke writing-plans unconditionally. |
| "I'll write plan.md here since that's where we're working" | The plan lives in docs/maxi/specs/NNNN-slug/plan.md. Working directory is irrelevant. |
| "The user says skip the constitution check" | The constitution check is a pipeline gate, not an optional step. It cannot be skipped by user request. |
| "I'll adapt the template from a previous plan" | Always copy plan-template.md. Previous plans may have customizations that corrupt the schema. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub amoutiers/maxi-superpowers --plugin maxi34 skills in this plugin
/analyzeUse when the user invokes /maxi:analyze or wants to audit spec/plan/tasks artifacts for quality issues — spec must be at status "tasked" or later; constitution is required/boardUse when the user invokes /maxi:board or wants a kanban overview of all specs and their pipeline status in the current project/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./cancelUse when the user invokes /maxi:cancel, says a feature is abandoned, dead, or will never ship — requires active spec status, explicit reason, and explicit yes/no confirmation before writing anything./clarifyUse when the user invokes /maxi:clarify or when a spec.md has open questions, [NEEDS CLARIFICATION] markers, or ambiguous FRs — status must be "specified"/constitutionUse when the user invokes /maxi:constitution, wants to establish or amend project principles, or when docs/maxi/constitution.md does not yet exist and needs to be created