/session-flow:workflow [steps|pre-pr|wrap-up|philosophy|spec-first|continue [auto]]from session-flow
Navigates a staged development workflow (interview through retro), detects current position, and suggests next stage. Handles end-of-phase routing (continue, clear, compact, handoff, background).
Ships in session-flow. 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.
Arguments. [steps|pre-pr|wrap-up|philosophy|spec-first|continue [auto]]. e.g., /workflow, /workflow steps, /workflow pre-pr, /workflow wrap-up, /workflow philosophy, /workflow spec-first, /workflow continue, /workflow continue auto
The reference and navigator for a staged development workflow. Individual stages are executed by whatever means the consuming repo provides (its own stage skills, or inline work); this skill is the map. It defines the stages, detects the current position, and suggests what comes next.
Three roles:
context/steps.md)This skill adapts to the consuming repo rather than imposing structure:
CLAUDE.md names one, e.g. an explore, research, plan, or implement skill), suggest
invoking that skill. Otherwise execute the stage inline following its definition in
context/steps.md. Never invent skill names. Check what actually exists.CLAUDE.md /
.claude/rules/). When no convention exists, the checklist is a per-topic stage ledger at
<memory_dir>/<slug>/workflow-checklist.md. Default .work/<slug>/workflow-checklist.md, the
topic's memory-tier slice:
never committed; on the session's first memory-tier write, verify-or-create the resolved memory
root's .gitignore containing * (announced). The sibling handoff skill's
<memory_dir>/handoffs/ holds only handoff save-points (handoff files, plus the per-hop archive
files in its archive/ subdirectory), a fixed-filename checklist there would clobber across two
in-flight topics.Read $ARGUMENTS whole: its first word is the mode and, when the mode is continue, its second word is the continuation modifier. Treat a missing mode as the default row. Treat a missing modifier, or any modifier other than auto, as suggest-only continuation. auto is the only modifier.
| Argument | Mode | Action |
|---|---|---|
| (none) | Default | Show compact stage overview + detect current position + suggest next stage |
steps | Steps | Load context/steps.md, full stage definitions |
pre-pr | Pre-PR | Load context/pre-pr.md, pre-PR sequence checklist; the verification level below applies |
wrap-up | Wrap-up | Load context/wrap-up.md, end-of-session checklist |
philosophy | Philosophy | Load context/philosophy.md, depth expectations and verification rigor |
spec-first | Spec-first | Load context/spec-first.md, stage-by-stage execution from a written spec |
continue | Continuation | Load context/continuation.md, end-of-phase continuation-mechanism router; recommend one mechanism, do not execute it |
continue auto | Continuation (autonomous) | The continue mode plus its one modifier. Consume the second token before dispatching, or this row is unreachable and auto silently degrades to suggest-only. Same router, plus the per-invocation license to execute the mechanism it routes to. Authorizes this invocation only, never a standing mode, and never a substitute for a routed skill's own hard gate |
The verification level, on every route into context/pre-pr.md (this pre-pr row, wrap-up's pre-PR step, or a sibling plugin that routes here): before its step 2, run bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin session-flow --skill workflow --file docs/conventions/session-flow.yaml once in the session and report its line; step 2 reads that level.
The retro offer, on the wrap-up route: retro_offer is ${user_config.retro_offer}. A surviving literal placeholder, or any value other than off, means offer. off: context/wrap-up.md offers no retro.
Read reference/stages.yaml, the stage map, and render it as one line per group: each stage
numbered in map order with its name and flag, the note of a detour stage, and the ship
entry after the stage it runs-after. Name a stage's entry skill only when it is enabled in
this session.
Each kind of task starts at the first stage of its row in the Task kinds table
(context/steps.md); on the full path that is stage 1, the interview. Explore,
research and a PRD are detours it calls only when a question needs them, then the interview
resumes; none runs before it. Conditional stages run only on their trigger (context/steps.md):
Explore when a question turns on what the code does now, Research when it rests on an external
claim (what a live system holds now is no stage: the asking stage reads it through the system's
CLI or MCP tool), PRD when product intent is unsettled on a user-facing, business-driven change, and Decompose
when the plan holds more than one independently shippable ticket. Design runs for
design-significant work and records a one-line early exit otherwise, so a bug fix passes through
it in one step. The interview decides behavior (the Brief), design decides interfaces and
contracts, and plan decides files and symbols.
For unfamiliar territory, stages 1-7 sit inside a longer pre-implementation order (blindspot →
brainstorm/prototype → interview, escalating to wayfind when it outgrows one session, and calling
a PRD when product intent is unsettled → reference port → design → plan → decompose);
context/pre-implementation-order.md states it with rationale and is its one home: other skills
and docs point there for route choice. Load it when the work enters unfamiliar territory or
another skill asks which planning pass comes next.
Check conversation context for evidence of completed stages:
light/off, with the skip token)? → Stage 10 donelight/off, with the skip token)? → Stage 11 doneVerify a stage from its artifact or output, a plan file, cited sources, green test output, not from conversation vibes.
A session that began at an entry skill (explore, research, blindspot, brainstorm, debug, triage, an interview) is placed on the ladder by the same evidence: credit the stages its output satisfies, then continue from there.
When the skill that just ran has a ## Next bullet matching its result, that bullet wins; this
ladder is the fallback when none matches. Otherwise, based on what's been done, recommend the
next stage with rationale. First name the kind of task
and read its row in the Task kinds table at the end of context/steps.md: that row is the stage
list, in order, and the stages it skips, each skip with the row's reason. Never state a kind's
stages from memory. With nothing done, suggest the row's first stage; on the full path that is
stage 1, the interview, and explore, research and a PRD then run as detours the interview calls.
A change that passes both quick-change tests takes the quick-change on-ramp below. If the
consuming repo has a skill for that stage, name it; otherwise describe the inline work. Add that
stage's effort advice per "Effort per stage" in context/steps.md.
Where published items go after decompose. implementation_route says whether the items
decompose published take their remaining stages, implement through ship, in a local session
(local, the default) or in the repository's unattended factory lanes, such as CI workflows that
pick up agent-ready items (factory). Resolve it once, when the position reaches decompose, lowest
layer first: the default local; the user's option ${user_config.implementation_route}, where a
literal, unexpanded placeholder means unset; then the repository's
docs/conventions/session-flow.yaml, which wins when it sets the key (schema:
${CLAUDE_PLUGIN_ROOT}/schemas/session-flow.schema.json).
Read the repository value with
bash "${CLAUDE_PLUGIN_ROOT}/skills/retro/scripts/parse-concern-value.sh" --strict "<git root>/docs/conventions/session-flow.yaml" implementation_route,
and only when the working directory's git root is neither $HOME nor an ancestor of it; otherwise
skip that layer and say so. Empty output means unset only when the key is absent: if
grep -qE '^implementation_route[[:space:]]*:' "<file>" matches, the key is present but empty or
not a scalar, which is invalid. Exit 3 means the parser rejected the file: name the file and drop
the layer. A value other than local or factory is named with its file or option, the key and
the value, and that layer is dropped: the repository's valid value still wins over an invalid user
value, and an invalid repository value or file resolves local, never the user's value; the run
never stops on it. Report one line, for example
implementation_route: factory (docs/conventions/session-flow.yaml). Settings page:
${CLAUDE_PLUGIN_ROOT}/reference/config.md.
local: the kind's row continues into implement as above.factory: once decompose has published its items, recommend no local implement stage. Name
each published agent-ready item as handed to the factory, which owns its implement, test,
review, verify and ship. An item that needs a local dependency stays local and is named as
such, with the dependency: one the tracker marks as owned by a local session (the work-items
session-owned role label, if enabled), or one whose body names something only a local machine
reaches, such as the owner's own hosts, devices or credentials. That item continues from
implement in a local session. The lanes read labels, not body text, so an item kept local only
for what its body names gets the session-owned label through the tracker before anything else,
and the recommendation names that as its first step; until then the factory can still pick it up. An item published as needing a human keeps that gate. The
session's own next step is then the retrospective, or the next task's first stage. A plan that
skipped decompose has published nothing, so its route is unchanged.To look a kind's sequence up together with the skills that run each stage and their arguments,
point the user at the "By kind of task" table of the skill cheat sheet,
docs/skill-cheat-sheet.md
in the marketplace repository, generated from that same Task kinds table.
When the just-finished work closed out a stage (its artifact exists), or the user is asking how
to carry on, the mechanism question is separate from the next stage question: continue here,
/clear, handoff, background, clean-stop, or compact, with a cloud session offered as advice. Load context/continuation.md and walk
its ordered router; recommend exactly one mechanism with its rationale, zone-informed when
context-usage's zone report (its mcp__context-usage__status tool, or its snapshot) has data and
conservative when it does not. Mid-stage with a healthy window,
skip this, the default is simply to continue. Mid-stage with a bloated window, walk the router
too. Within one task it suggests /compact <focus>; at a phase or task boundary, next in
sequence, a handoff then /clear (context/continuation.md).
For an active /goal or /loop, follow the continuation router's handoff rule.
The router suggests; it does not act. The recommendation goes to the human with the evidence
that drove it, and executing the routed mechanism takes an explicit per-invocation license
(continue auto, or the user's own words), which expires with the invocation. Its inputs beyond
the gather above are presence-gated pointers to the siblings that own them; the rules live there.
| Key | Value | Unset behavior |
|---|---|---|
cloud_route | ${user_config.cloud_route} | A surviving literal placeholder, or any value other than off, means offer. off: the router never mentions the cloud option. |
For work expected to span 3+ stages, when this session has the task tools (TaskCreate is in its
tool list; branch on that, never on the model), create a task per stage in the kind's Task kinds row via TaskCreate,
mark completed stages completed and the current one in_progress. With TodoWrite instead,
keep the same stage list in TodoWrite. A stage that will not run stays listed as
skip: <reason>, never deleted. With neither, the checklist
file below (or the plan artifact that replaces it) is the only progress tracker. For durable
cross-/clear tracking,
also copy templates/checklist.md into the artifact location (see "Consumer conventions") as
workflow-checklist.md and tick boxes as stages produce their outputs. Skip the file when the
consuming repo already tracks the same stages in its own plan artifact, never mirror progress in
two files.
The stage sequence is the main line, not the only entrance. Work also arrives from the side and merges in at a later stage. Recognize the class of arrival and merge at the right point instead of forcing every session through stage 1. Common classes:
context/steps.md; the diff is reviewed and aligned on once it exists, with test and verify at
full rigor. When the diff is tiny, a wrong build costs almost nothing, so aligning on the diff after
it exists beats aligning before it. If the diff turns out not to be quick to review, stop and route to the interview. Basis for adopting this rule:
the "Session-start flow and main flow" section of docs/upstream/mattpocock-skills.md (under Map)
in the marketplace repository.context/steps.md. An already-diagnosed, agent-ready
item carries its Brief and root cause, so position detection credits the stages before
implement; observed-but-undiagnosed breakage is diagnosed through a diagnosis capability (if the
consuming setup installs one, e.g. from a diagnose or debugging plugin) before that row reaches
implement.These are classes, not an inventory. Match the arriving situation to its class, then check which skills for that class are enabled in the session, the same rule as stage execution: never invent skill names, and degrade to inline work when nothing is enabled.
Adjacent capabilities overlap at their edges. Intake vs diagnosis, wayfinding vs planning, upkeep vs review. Route to exactly one owner and state why; never present both and leave the user to disambiguate. Precedence:
This rule governs stage routing, not option surfacing. "Never present both" is about refusing to
hand the user two candidate owners for one stage decision and letting them sort it out. It is not a
prohibition on ever showing a set: deliberately laying out the whole option set, ranked and
annotated, for a human to choose from is a different job, and /session-flow:recommend-skills owns it.
Reach for this skill when the user wants the next stage decided; reach for that one when they want
the menu. When a request could be either, "what comes next" is a stage question and belongs here.
context/philosophy.md)context/pre-pr.md) is ordered
for a reason; verification evidence comes before the PR, not after.context/continuation.md (opens in a new tab)context/philosophy.md (opens in a new tab)context/pre-implementation-order.md (opens in a new tab)context/pre-pr.md (opens in a new tab)context/spec-first.md (opens in a new tab)context/steps.md (opens in a new tab)context/wrap-up.md (opens in a new tab)evals/evals.json (opens in a new tab)reference/stages.yaml (opens in a new tab)templates/checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
workflow-navigation, stage-management, session-flow, checklist
npx claudepluginhub melodic-software/claude-code-plugins --plugin session-flow20 skills in this plugin
/audit-frictionAudit frictionAudit Claude Code sessions for permission and autonomy friction (denials, approval prompts, hook blocks, hand-offs), traced to cause in one decision brief. Use when the agent keeps asking or handing off, auto mode denies, or re-measuring after permission fixes./audit-sessionsAudit sessionsAudit every Claude Code session on this machine or behind a pull request for wasted time and tokens against a baseline, routing findings to fixes, plus score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'retro this PR', trends, or repeating corrections. Not for one session: /session-flow:retro./clean-stopOther plugins' skills for the same job