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
Purpose
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:
- Reference, stage definitions and how stages compose (
context/steps.md) - Navigator, session-aware guidance on which stage comes next based on what's been done
- Checklist. Pre-PR sequence and end-of-session wrap-up as structured checklists
Consumer conventions
This skill adapts to the consuming repo rather than imposing structure:
- Stage execution. When the consuming repo defines a skill for a stage (its skill listing or
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.
- Artifact location. When persisting stage outputs or checklists, honor the consuming repo's
documented convention for work/planning artifacts (check 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.
- Quality gates. The consuming repo's own build/test/lint commands, review criteria and commit conventions govern;
this skill names where gates belong in the sequence, not what they contain.
- Override boundary. The stage set itself is fixed. Plugin identity, not consumer config; there
is no seam to swap in a different taxonomy, and this skill never reads a consumer-supplied one.
What adapts flows through the conventions above (execution routes to your skills; gate commands
and review criteria come from your repo), never by editing the plugin.
Argument parsing
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.
Default mode (no arguments)
1. Show the workflow at a glance
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.
2. Detect current position
Check conversation context for evidence of completed stages:
- Is the Brief (goal, constraints, acceptance criteria) crisp, stated by the user or in a plan
artifact on disk? → Stage 1 satisfied
- Has the code each open question turns on been read, or does none turn on it? → Stage 2
satisfied
- Have external sources been consulted for each load-bearing technical claim, or does the work
rest on none? → Stage 3 satisfied
- Is product intent (problem, users, success metrics) written down, or is the work not
user-facing and business-driven? → Stage 4 satisfied
- Does the plan artifact carry its design section, or a recorded early exit? → Stage 5 done
- Has a plan been written and approved? → Stage 6 done
- Is the plan one ticket, or have its tickets been published? → Stage 7 satisfied
- Has code been written via Write/Edit? → Stage 8 in progress or done
- Have tests been run? → Stage 9 done
- Has a fresh-context reviewer returned on the diff, after the self-review (self-review alone under
light/off, with the skip token)? → Stage 10 done - Has a fresh-context verifier returned a verdict on the outcome against intent, with evidence (the author's own check alone under
light/off, with the skip token)? → Stage 11 done - Is there a PR? → PR lifecycle in progress
Verify 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.
3. Suggest next stage
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: