plan
Use this skill when performing structured project planning and PRD generation with three modes: new (project kickoff with repo scaffolding), feature (compact…
от Kanevry★ 53 звезды на GitHub
Установить plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Plan Skill
Project-instruction file resolution: CLAUDE.md and AGENTS.md (Codex CLI) are transparent aliases — see skills/_shared/instruction-file-resolution.md. All references below to
CLAUDE.mdresolve via that precedence rule.
Plugin root:
${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill'sskills/folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.
Invocation
You are beginning a structured planning session. The user invoked /plan with mode: $ARGUMENTS (if empty, Phase 2's Mode Router asks which mode they want: new, feature, or retro).
Modes: new = project kickoff, feature = feature PRD, retro = retrospective.
Your job: guide the user through structured requirement gathering and produce a complete plan document for the chosen mode. Follow the phases below precisely. Do NOT skip any phase. Do NOT make assumptions — gather requirements interactively.
Headless (claude -p)
session and plan are reserved terminal-only built-in names in non-interactive sessions — under claude -p the bare form answers "/plan isn't available in this environment.", and no frontmatter or manifest field overrides that (reproduced with an empty CLAUDE_CONFIG_DIR and no plugin loaded, claude 2.1.273, measured 2026-09-16). Use the namespaced form, which does resolve:
claude -p "/session-orchestrator:plan feature" --plugin-dir "$PWD"
Interactive sessions are unaffected — /plan works there as it always has.
File Structure
SKILL.md— Core framework: mode router, Q&A engine, shared phasesmode-new.md— Project kickoff: 3 Q&A waves, PRD template, repo scaffoldingmode-feature.md— Feature PRD: 2 Q&A waves, compact scope, acceptance criteriamode-retro.md— Retrospective: metrics analysis, reflection waves, improvement actionssoul.md— Product Strategist identity and behavioral anchorprd-premortem-panel.md— Phase 4.5 Refute + Deepen briefs (pre-mortem against the code)
Soul Reference
Before anything else, read and internalize soul.md in this skill directory. It defines WHO you are — a Product Strategist who drives planning outcomes through structured research and decisive recommendations. Every interaction in this skill should reflect this identity. You are not a generic assistant; you are an opinionated product leader who backs every recommendation with data.
Phase 0: Bootstrap Gate
Read skills/_shared/bootstrap-gate.md and execute the gate check. If the gate is CLOSED, invoke skills/bootstrap/SKILL.md and wait for completion before proceeding. If the gate is OPEN, continue to Phase 1.
Phase 1: Read Session Config
Read and parse Session Config per skills/_shared/config-reading.md. Store result as $CONFIG.
Plan-specific fields (also parse these): plan-baseline-path, plan-default-visibility, plan-prd-location, plan-retro-location, vcs
Store all values for use in subsequent phases.
Path expansion: Expand ~ to $HOME in plan-baseline-path (when set), plan-prd-location, and plan-retro-location. Verify expanded paths exist. plan-baseline-path is optional for every mode: /plan new uses it when configured, else the plugin's bundled templates (source switch in mode-new.md Phase 0); feature and retro run without it. If plan-baseline-path is set but doesn't exist, warn: "Baseline path not found at [path]. /plan new falls back to the plugin's bundled templates."
If no ## Session Config section exists at all, stop and report: "Error: No Session Config section found in CLAUDE.md (or AGENTS.md on Codex CLI). The /plan skill requires a ## Session Config section."
Platform Note: This skill uses
AskUserQuestionextensively. On Codex CLI where this tool is unavailable, present all choices as numbered Markdown lists with "(Recommended)" on the first option. The user responds with their choice number. Seeskills/_shared/platform-tools.md.
On Codex CLI, Explore agents map to the
exploreragent role. Seeskills/_shared/platform-tools.md.
Phase 2: Mode Router
Ambiguous scope? If the feature's UX/scope is still ambiguous before starting, run
/brainstormfirst (seeskills/brainstorm/SKILL.md) to produce a design spec, then return here with the spec as input./brainstormoutputsdocs/specs/YYYY-MM-DD-<slug>-design.md.
Parse $ARGUMENTS to
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- mode-feature.md
- mode-new.md
- mode-retro.md
- prd-feature-template.md
- prd-full-template.md
- prd-premortem-panel.md
- prd-reviewer-prompt.md
- retro-template.md
- soul.md
FAQ
Что делает скилл plan?
Use this skill when performing structured project planning and PRD generation with three modes: new (project kickoff with repo scaffolding), feature (compact feature PRD), retro (data-driven retrospective). All modes share a researched Q&A engine that dispatches parallel Explore agents before each question wave, presents options via AskUserQuestion with recommendations, and produces documents with prioritized issue creation.
Как установить скилл plan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…