architecture
Use when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities, consolidate…
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
Claude Code
$ npx -y skills add Kanevry/session-orchestrator --skill plan --agent claude-code
Codex
$ npx skills add Kanevry/session-orchestrator --skill plan -a codex -y
Cursor
$ npx skills add Kanevry/session-orchestrator --skill plan -a cursor -y
Gemini CLI
$ npx skills add Kanevry/session-orchestrator --skill plan -a gemini-cli -y
GitHub Copilot
$ npx skills add Kanevry/session-orchestrator --skill plan -a github-copilot -y
OpenCode
$ npx skills add Kanevry/session-orchestrator --skill plan -a opencode -y
Windsurf
$ npx skills add Kanevry/session-orchestrator --skill plan -a windsurf -y
name: plan user-invocable: true disable-model-invocation: true argument-hint: "[new|feature|retro]" tags: [planning, prd, requirements, research] model: inherit model-preference: opus model-preference-codex: gpt-5.4 model-preference-cursor: claude-opus-4-6 description: > 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.
> Project-instruction file resolution: CLAUDE.md and AGENTS.md (Codex CLI) are transparent aliases — see [skills/_shared/instruction-file-resolution.md](../_shared/instruction-file-resolution.md). All references below to `CLAUDE.md` resolve via that precedence rule.
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.
`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.
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.
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.
<HARD-GATE> Do NOT proceed past Phase 0 if GATE_CLOSED. There is no bypass. Refer to `skills/_shared/bootstrap-gate.md` for the full HARD-GATE constraints. </HARD-GATE>
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 `AskUserQuestion` extensively. 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. See `skills/_shared/platform-tools.md`.
> On Codex CLI, Explore agents map to the `explorer` agent role. See `skills/_shared/platform-tools.md`.
> **Ambiguous scope?** If the feature's UX/scope is still ambiguous before starting, run `/brainstorm` first (see `skills/brainstorm/SKILL.md`) to produce a design spec, then return here with the spec as input. `/brainstorm` outputs `docs/specs/YYYY-MM-DD-<slug>-design.md`.
Parse `$ARGUMENTS` to determine the planning mode:
If `$ARGUMENTS` is empty or does not match any mode, use AskUserQuestion to ask:
AskUserQuestion({
questions: [{
question: "Which planning mode do you want to run?",
header: "Plan Mode",
optionYour coding agents get an agreed plan, a check after each round of changes and a handover to the next session. A free, MIT-licensed workflow plugin for people running Claude Code, Codex CLI, Cursor IDE or Pi on a git repository.
Use when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities, consolidate…
Use this skill when running an autonomous session-orchestration loop. Chains session-start → session-plan → wave-executor →…
Use this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked automatically by the…
Use when you have a feature idea but the scope or UX is still ambiguous — runs a lightweight Socratic design dialogue (3-5 AUQ…
Use when detecting drift between CLAUDE.md (or AGENTS.md, the Codex CLI alias) / _meta narrative and live repository state. Ten…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.