/planner:plannerfrom planner
Builds file-backed architecture and execution plans from feature requirements or architecture documents. Writes structured plans as markdown files without executing implementation steps.
Ships in planner. 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.
The planner produces one complete file per activation:
ARCHITECTURE.md;PLANNER_EXECUTION.md.A successful activation never emits the full document to chat. It reports the path, kind, version, and two to four main outcomes. Full chat output is reserved for a failed write or failed metadata synchronization.
The planner writes plans; it does not execute implementation phases and does not invoke working agents.
PLANNER_OUTPUT.md is not deleted.Read <project-root>/.claude/planner-context.md. If it is missing, stale, or the user explicitly requests a rescan, follow references/bootstrap.md, then return here.
The state helper is:
${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py
Run it with python3. Do not reproduce its parsing or hashing logic in the prompt.
README.md, or a feature directory containing one → architecture mode in that directory.ARCHITECTURE.md, *-PLAN-*.md, *-DESIGN-*.md, or an explicitly supplied equivalent) → execution mode beside that file..claude/plans/<task-slug>/.A supplied path that does not exist or cannot be read is an error. Do not reinterpret a path-looking argument as free text.
For free text, create a short kebab-case slug. Before reusing an existing directory, read its plan files. If it belongs to another task or remains ambiguous, append the smallest available numeric suffix. After the final slug is selected, create that one directory with mkdir before validating the target path.
Resolve the target directory and run the matching check before preparing the document.
Architecture mode:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
validate-architecture-target <architecture-path> \
--directory <target-directory> [--source <README-path>]
Omit --source only for free-text input. Execution mode:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
validate-execution-target <execution-path> \
--architecture <architecture-path> --directory <target-directory>
Exit status 3 or 64 stops the run before the mode reference is loaded and before the document body is prepared. The checks reject wrong names, paths outside the selected directory, symbolic links, hard links, overlap with a protected input, and an execution target that is not beside its architecture.
After the check succeeds, load exactly one reference:
references/architecture-mode.md.references/execution-mode.md.Read the existing target without changing it. Prepare the complete new body without YAML frontmatter and keep that body in the current context until synchronization succeeds.
Decide whether the new body changes meaning:
yes when decisions, contracts, phases, dependencies, risks, or expected behavior changed;no when the body is unchanged or only formatting and wording changed without changing its instructions.This decision is explicit input to the helper. The helper owns metadata consistency; it does not judge prose.
Write must never change the target plan directly. Write the body to the exact transient path <target-name>.prepared beside the target. Do not use another neighboring file, a symbolic link, or a hard link.
Write <target-dir>/ARCHITECTURE.md.prepared, then run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
sync-architecture <architecture-path> \
--body-file <target-dir>/ARCHITECTURE.md.prepared \
--semantic-change <yes|no>
The helper reads and removes the prepared file before atomically replacing the complete target. If PLANNER_EXECUTION.md exists beside it, immediately run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
check <execution-path> --mark-stale
Exit status 2 here is an expected stale result, not a helper failure. Keep the execution body and report that it must be rebuilt.
Inspect the supplied architecture after the target check from step 3:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
inspect <architecture-path>
An architecture without supported planner frontmatter is reported as version 0 and must not be modified merely for migration. This includes ordinary Markdown that starts with a --- horizontal separator.
Write <target-dir>/PLANNER_EXECUTION.md.prepared, then run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/planner/assets/plan_state.py" \
sync-execution <execution-path> \
--body-file <target-dir>/PLANNER_EXECUTION.md.prepared \
--architecture <architecture-path> --semantic-change <yes|no>
The helper requires the exact prepared-file name, removes that file after reading it, then validates the architecture and atomically writes body and metadata together. A later validation error leaves the target unchanged and does not leave a prepared file behind.
A prepared-file Write error or helper exit status 3/64 means the new plan was not saved successfully. The existing target remains the current file result.
Do not catch the error and continue with stale metadata.
After a successful write, output:
<Kind> saved: <path>
Version: <N> — <current|stale>
Summary:
- <main outcome 1>
- <main outcome 2>
- <optional outcome 3>
- <optional outcome 4>
Next: <command, if needed>
Never include the full plan after this summary. If a legacy PLANNER_OUTPUT.md remains beside the new files, add one concise note that it was preserved and ignored as the current plan.
These are the exact field sets and nesting used in saved plan files. Dynamic values are computed by plan_state.py, not authored in the prepared body. The complete saved-file templates, including their Markdown bodies, are in references/architecture-mode.md and references/execution-mode.md.
---
plan_type: architecture
version: 1
status: current
content_sha256: <body fingerprint>
---
---
plan_type: execution
version: 1
status: current
content_sha256: <body fingerprint>
architecture:
path: "./ARCHITECTURE.md"
version: 1
content_sha256: <architecture body fingerprint>
---
Rules:
current to stale preserves its version and body.inspect.version.The planner may write only:
<project-root>/.claude/planner-context.md during bootstrap or explicit rescan;.claude/plans/<task-slug>/;<target-name>.prepared file beside the selected target.Write may create the transient prepared file but must not overwrite a target plan. The state helper validates the paths, consumes the prepared file, and is the only writer of the target architecture or execution file. Use Bash only to create the selected plan directory and invoke this helper. Do not use shell redirection or another command to bypass the write boundary.
references/bootstrap.md — project scan and planner-context.md creation.references/template-context.md — canonical bootstrap template.references/architecture-mode.md — architecture body requirements and update rules.references/execution-mode.md — dependency graph, phase grouping, model choice, and execution body requirements.assets/execution_outputs.py (opens in a new tab)assets/plan_state.py (opens in a new tab)assets/test_execution_outputs.py (opens in a new tab)assets/test_plan_state.py (opens in a new tab)assets/test_work_hint.py (opens in a new tab)assets/work_hint.py (opens in a new tab)references/architecture-mode.md (opens in a new tab)references/bootstrap.md (opens in a new tab)references/execution-mode.md (opens in a new tab)references/template-context.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub spumer/i-m-senior-developer --plugin planner4 skills in this plugin
/planner-reflectReflects on a completed planner execution: compares PLANNER_EXECUTION.md with commits, review files, agent runs, and user corrections, then appends stable lessons to planner-context.md.
/product-baselineBuilt-in limited product provider — the last-resort fallback of the planner product-discovery pipeline. Selected by routing only when no capable external provider is available. Turns the current formulation and collected statements into a normalized consultation draft (problem, outcome, actors, scope, assumptions, unknowns, candidate slices, recommended outcome, limitations) and returns it to the calling skill. Never writes files. Never claims user or market research, real-person feedback, independent multi-role review, or hypothesis confirmation; limitations are stated in every response.
/product-discoveryЭтот скилл нужно вызвать до ответа, когда человек приносит сырой продуктовый замысел, проблему людей, желаемый исход или список желаемых возможностей и спрашивает, с чего начать: «есть мысль — обсудим?», «есть идея», «хотим…», «надо сделать X, Y и Z — с чего начнём?». Перечень функций к разработке — это тоже продуктовый вход: сначала нужны общая гипотеза, границы и порядок фич, а не техническое решение. Не отвечай на такие запросы напрямую и не переходи к проектированию. Используй также для /plan-idea, /plan-epic, /plan-roadmap и /plan-feat. Не используй, когда продуктовые решения уже приняты: точечный технический вопрос, исправление бага, реализация по готовой архитектуре.
Other plugins' skills for the same job