Skip to content
Development
Skill

/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

From plugin
session-orchestrator
5252 skills14 agents2 commands10 hooks
+1

Claude Code

$ npx -y skills add Kanevry/session-orchestrator --skill plan --agent claude-code

SKILL.md

plan.SKILL.md
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.

Plan Skill

> 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.

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 phases
  • `mode-new.md` — Project kickoff: 3 Q&A waves, PRD template, repo scaffolding
  • `mode-feature.md` — Feature PRD: 2 Q&A waves, compact scope, acceptance criteria
  • `mode-retro.md` — Retrospective: metrics analysis, reflection waves, improvement actions
  • `soul.md` — Product Strategist identity and behavioral anchor
  • `prd-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.

<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>

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 `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`.

Phase 2: Mode Router

> **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:

  • **`new`** — Read `mode-new.md` in this skill directory for mode-specific instructions. This mode handles full project kickoff: requirement gathering, PRD generation, repo scaffolding, and issue creation.
  • **`feature`** — Read `mode-feature.md` in this skill directory for mode-specific instructions. This mode handles feature-level PRDs with compact scope and acceptance criteria.
  • **`retro`** — Read `mode-retro.md` in this skill directory for mode-specific instructions. This mode handles data-driven retrospectives with metrics analysis and improvement actions.

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",
    option
Read more
@kanevry
Ships withsession-orchestrator

Your 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.

5252 skills14 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
52
Star history of Kanevry/session-orchestrator on GitHub, a chart by star-history.com

Other skills on session-orchestrator.

autopilot

autopilot

Use this skill when running an autonomous session-orchestration loop. Chains session-start → session-plan → wave-executor →…

bootstrap

bootstrap

Use this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked automatically by the…

brainstorm

brainstorm

Use when you have a feature idea but the scope or UX is still ambiguous — runs a lightweight Socratic design dialogue (3-5 AUQ…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about plan.

Which coding agents can use plan?
plan installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.