/peak-workflow:discover <description of what to build or what's changing>from peak-workflow
Guides an adaptive discovery interview to produce product-vision.md and concept-of-operations.md for new or evolving projects. Creates a docs/ branch for reviewable planning artifacts.
Ships in peak-workflow. 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.
None: SKILL.md is the whole skill.
You are conducting an adaptive discovery interview to produce (or refine) the project's product vision and concept of operations documents.
The user's request: $ARGUMENTS
Before any other action: run sh "${CLAUDE_PLUGIN_ROOT}/scripts/tor-lifecycle" format.
On exit 0 (verdict: current, or new for a project with no peak-workflow files yet), continue.
On any other exit, print its output and stop — it names the fix (/peak-workflow:upgrade, a
plugin update, or a Python install). After this guard, read the project's files only in the
current format.
Right after the Format Guard:
git rev-parse -q --verify HEAD fails (no commits yet), stop: "This repository has no commits
yet — run /peak-workflow:setup first. It makes the first commit and the develop branch this
docs/ branch merges into."git branch --show-current. Capture the result as <current-branch>.<current-branch> is develop, main, or master:
git status --porcelain lists files. They carry over
onto the new branch; handle them right after it is created (below).$ARGUMENTS or the CLAUDE.md Project Overview (e.g. kiln-mvp)
and ask via AskUserQuestion:
"I'll keep this planning work on its own branch, docs/{derived}. OK?"["Use docs/{derived}", "Let me type a different name"] — only the second asks for
free text[a-z0-9-], collapse consecutive hyphens into one, strip leading/trailing hyphens, truncate to 40 chars.Branch name will be:
docs/{slug}(slugified from "{raw}"). Proceed? UseAskUserQuestionwith options["Yes — create docs/{slug}", "No — let me type a different name"]. If No, repeat the prompt.
git checkout -b docs/{slug}
AskUserQuestion: "There are uncommitted files from before this session ({list}). Commit them on docs/{slug} as 'chore: peak-workflow setup'?" — options ["Commit them here", "Leave them uncommitted"]. Never commit on the base
branch from this step.Created and switched to branch
docs/{slug}. All vision, requirements, and planning changes will live here until you merge.
<current-branch> already starts with docs/:
Continuing on existing docs branch:
<current-branch>
<current-branch> is neither develop/main/master nor a docs/ branch:
AskUserQuestion:
"Current branch ('{current-branch}') is not a docs/ branch. Continue here, or stop to create one?"["Continue on this branch", "Stop — I'll create a docs/ branch first"]Before the discovery interview, verify that /peak-workflow:setup has been run:
CLAUDE.md has a Verification & Quality Gates section:
grep -qiE "Verification.*Quality|Quality.*Gates" CLAUDE.md && echo "found" || echo "missing"
CLAUDE.md does not exist, print "There is no CLAUDE.md yet — run /peak-workflow:setup
before or right after this session." and continue. Otherwise, if the section is missing,
print a non-blocking advisory and continue — discovery can proceed now, but
setup must be run before the first /peak-workflow:start-epic:
Setup Advisory:
CLAUDE.mddoes not have a "Verification & Quality Gates" section./peak-workflow:start-epicand/peak-workflow:wrapup-epicboth require this section. Consider running/peak-workflow:setupbefore or immediately after this discovery session — it auditsCLAUDE.mdand stubsdocs/architecture.mdanddocs/design-notes.mdas well.
new, nothing has stamped the project yet, and once
this session writes the vision it would count as an older project. Stamp it now, on the
docs/ branch: run sh "${CLAUDE_PLUGIN_ROOT}/scripts/tor-lifecycle" format --init and include
docs/.peak-workflow.toml in this session's Commit Gate. If it exits 3 (no Python 3.11+), print
its install hint and stop — later commands need Python, and running discover again after
installing is safe.Follow these steps exactly:
docs/product-vision-planning/product-vision.md. Check whether it exists and has substantive content (a ## 2. Problem Statement section with at least one paragraph of real content — not a placeholder).docs/product-vision-planning/concept-of-operations.md. Check whether it exists and has substantive content.docs/implementation-plan/status/epic-*.md. A project with no status/ directory or no sidecar files has no completed epics. To check completion counts, run: grep -rl 'status: Complete\|status: Implemented' docs/implementation-plan/status/ 2>/dev/null | wc -lGreenfield = product-vision.md does not exist, has no Problem Statement content, or is a skeleton/placeholder. Proceed to Step 2A.
Brownfield = product-vision.md has substantive content AND at least one epic is complete. Proceed to Step 2B.
Revise in place = product-vision.md has substantive content, no epic is complete, and the
ConOps has no **Open — blocks planning:** line — ask once whether to revise the vision and
ConOps in place (run Step 2B's delta interview without writing a changelog) or stop; never
silently restart the greenfield interview over existing documents.
Resolving open blockers = product-vision.md has substantive content, no epic is complete, and
the ConOps contains **Open — blocks planning:**. Do not re-interview and write no changelog.
Show each open line, ask what changed (e.g. "Has an independent thermal fuse or over-temperature
limit been installed?"), and edit ConOps §8 in place: flip the row to — confirmed by the owner
and delete the Open line once resolved, or leave it with a note if not. Then continue at Step 4.5
and Step 6.
Report the detection result to the user before continuing:
Mode: [Greenfield / Brownfield / Revise in place / Resolving open blockers]
Reason: [1-2 sentences explaining what was found]
Conduct an adaptive interview in 4 phases. Each phase follows this protocol:
For each phase:
$ARGUMENTS, any prior conversation context, and common patterns for the project type.Produce draft content for Product Vision sections 1–4:
Produce draft content for Product Vision sections 5–7:
This is the heart of the discovery. Produce draft content for Product Vision section 8 and ConOps sections 2–6:
CLAUDE.md's shape block records Q2 … no — attribution only (entered-by field), the scenarios that create records name that field (e.g. "types their initials in Entered by") so it becomes a requirement. For each scenario from PV Section 8, expand into the full ConOps format:
### Scenario N: [Title]
**Actor:** [Role]
**Trigger:** [What initiates the scenario]
**Goal:** [What the actor wants to achieve]
**Steps:**
1. [Concrete step with specific UI elements named]
2. [...]
**Outcome:** [What the actor walks away with]
Each scenario should have 4–12 steps that are specific enough to derive acceptance criteria from. Name UI elements, data fields, and user actions explicitly. (For CLI projects, "UI elements" means flags, arguments, stdin/stdout, and exit codes — e.g., "user runs fibcalc 10, tool prints 55 to stdout and exits 0". For a Service or API, it means endpoints, query parameters, request and response fields, and status codes — e.g., "caller sends GET /pokemon?type=fire&page=2, receives 200 with 20 items and a next link". For Embedded, it means physical controls, indicators, displays, and the debug console — e.g., "potter holds START for 2 seconds, the display shows FIRING 1/4".)Produce draft content for Product Vision sections 9–11 and ConOps sections 7–9:
CLAUDE.md has a UX Baseline section, draft §9 within its Design system declaration — do not propose another component library, token scheme, or dark-mode mechanism. (For CLI/terminal projects, "design direction" means output formatting conventions, flag naming style, error message tone, and exit code behavior — not visual/GUI design. For a Service or API, it means resource naming, pagination and filtering conventions, error body shape, and versioning. For Embedded, it means what the person sees and presses on the device and how it signals trouble.)### What Must Never Happen table under §8 with the hazards this kind of product typically has (hazard, what could cause it, the safe state, the limit), then ask the user to react in plain words: "Here's what I think this must never do, even if a wire comes loose, the power blinks, or a reading goes wrong — what's missing or wrong?" For anything that switches mains power or heat, include a row stating that a hardware cutoff independent of the software (a thermal fuse, an over-temperature limit switch) is assumed — software cannot protect against a relay that has welded shut — and mark it Assumption — hardware, outside the software for the user to confirm. Record the answer in the row (— confirmed by the owner / — NOT present). A NOT present answer is a stop: warn plainly that software alone cannot make the product safe, name the fix ("install an independent thermal fuse or over-temperature limit switch, then run /peak-workflow:discover again"), and add under ConOps §8 the line **Open — blocks planning:** <hazard> has no hardware safeguard — /peak-workflow:plan-project stops on it. /peak-workflow:capture-requirements turns each hazard row the software can act on into a # Safety TOR (assumption rows stay assumptions), and /peak-workflow:plan-project ships it with the first epic that drives that output. Do not skip this because the user is a hobbyist — they are the people least likely to raise it unprompted.docs/product-vision-planning/product-vision.md and docs/product-vision-planning/concept-of-operations.md in full.docs/implementation-plan/phase-*/index.md) and spot-check sidecars in docs/implementation-plan/status/ to understand what phases and epics have been planned and built.docs/architecture.md and docs/design-notes.md for current system context (skip either silently if absent).Present a summary to the user:
## Current State
- Product Vision: [version, date, key scope items]
- ConOps: [number of scenarios, key features covered]
- Implementation: [N of M epics complete]
## What's New?
Based on your description, here's what I think has changed or needs to be added:
- [List of deltas inferred from the user's $ARGUMENTS]
Then conduct a focused interview covering ONLY what is new or changed. Use the same adaptive protocol (draft → react → iterate → gate) but skip sections that don't need updates.
For each existing section that needs changes, show the current content alongside the proposed update so the user can see exactly what's changing.
Re-litigation check. Before drafting a proposed capability into the vision or ConOps, run
sh "${CLAUDE_PLUGIN_ROOT}/scripts/tor-lifecycle" search -- <2–4 key nouns or quoted phrases>.
Exit 0 = no earlier decision. Exit 1 prints the Change Records that retired, superseded, or
recorded the idea as pending. A hit on an open pending record (not
closed by) is not a re-proposal — do not ask: write the section's Modified (decided) or
Pending (undecided) row naming (settles <CR-ID>), never a New Capabilities line. For each other
hit that is really the same idea, ask with AskUserQuestion:
"<capability> was <retired / superseded / recorded as pending> in <CR-ID> (<date>): <reason, one line>. Bring it back anyway?"["Bring it back — note why in the changelog", "Drop it — the earlier decision stands"]On "Bring it back", carry on and name the record in the capability's line under "New
Capabilities Identified" (reintroduces the idea in <CR-ID>: <why now>) so
/peak-workflow:capture-requirements gives it a new ID. On "Drop it", leave it out and list it
under "Deferred Items" with the record ID.
A capability that changes or goes away is captured, not just discussed: every section edit
that changes what an existing capability does is a Modified row in the changelog, and every
capability withdrawn is a Removed row (Step 3).
After all phases are complete, write the documents.
docs/product-vision-planning/docs/product-vision-planning/product-vision.md following this exact structure:# [Product Name] — Product Vision & Brief
**Document Version:** 1.0
**Date:** [today's date]
**Status:** Draft
---
## 1. Product Name
## 2. Problem Statement
## 3. Target Users
## 4. Vision Statement
## 5. Goals & Success Criteria (MVP)
## 6. MVP Scope Summary
## 7. Out of Scope for MVP
## 8. Key Business Scenarios
## 9. Design Direction
## 10. Data Strategy
## 11. Backlog / Future Vision
docs/product-vision-planning/concept-of-operations.md following this exact structure:# [Product Name] — Concept of Operations (ConOps)
**Document Version:** 1.0
**Date:** [today's date]
**Status:** Draft
---
## 1. Purpose & Scope
## 2. Current State ("As-Is")
## 3. Proposed System ("To-Be")
## 4. User Roles & Profiles
## 5. Operational Scenarios
## 6. System Interfaces & Data Flows
## 7. Functional Summary
## 8. Operational Constraints & Assumptions
## 9. Glossary
Update docs/product-vision-planning/product-vision.md in place — increment the document version, update the date, and rewrite only the sections that changed to the current state: the document reads as if it had always said this. No "previously", "was", "removed in vN", strike-through, or change notes — the history lives in the changelog and git. A withdrawn capability is deleted from scope, scenarios, and the functional summary (move it to §7 Out of Scope or §11 Backlog only if it is genuinely still out of scope or future work).
Update docs/product-vision-planning/concept-of-operations.md in place — same approach. Renumber nothing that requirements cite: keep scenario numbers and step numbers stable, and leave a withdrawn scenario's number unused rather than shifting later ones. Product Vision §8 uses the same scenario numbers — leave a withdrawn one unused there too.
Write docs/product-vision-planning/changelogs/discovery-changelog-{TIMESTAMP}.md with content. {TIMESTAMP} is a second-granularity UTC timestamp — second granularity is required because parallel discovery sessions on different machines may produce changelogs within the same minute, and day-granularity would collide. Generate it with:
date -u +%Y-%m-%d-%H%M%S
Example filename: discovery-changelog-2026-04-23-174205.md. Do not substitute local time — UTC keeps filenames sortable and unambiguous across timezones.
# Discovery Changelog
**Date:** [today's date]
**Mode:** Brownfield (post-MVP ideation)
**Previous Version:** [version from existing docs]
## What Changed
| Document | Section | Change Type | Summary |
|----------|---------|-------------|---------|
| product-vision.md | [section] | [Added / Modified / Removed / Pending] | [1-line summary] |
| concept-of-operations.md | [section] | [Added / Modified / Removed / Pending] | [1-line summary] |
## New Capabilities Identified
[Bulleted list of new capabilities that emerged from this discovery, each with a brief description. These are the inputs for `/peak-workflow:plan-project`.]
## Priority Signal
[Capture the user's stated priorities — what's most important, what's nice-to-have, what's deferred. This guides epic ordering in `/peak-workflow:plan-project`.]
## Deferred Items
[Items discussed but explicitly pushed to a future cycle.]
Modified and Removed rows are mandatory whenever an existing capability's behavior
changes or the capability is withdrawn — one row per affected section, with the Summary naming
the capability and what changed (Modified) or that it is withdrawn and why (Removed). A
wording change to a term the requirements use (no behavior change) is a Modified row whose
Summary starts Wording only:. A capability that may change but the user has not decided is
a Pending row (the documents keep describing today's behavior), naming the capability and
the open question. A change to an existing capability is written only as a Modified row —
never also under "New Capabilities Identified", which is for capabilities with no requirements
yet. Promoting an out-of-scope or backlog item into scope is an Added row (promoted from backlog) on the section that now describes it — never a Removed row for the backlog line.
/peak-workflow:capture-requirements reads them: Modified rows send the requirements tracing
to that section through its decision test (reword, supersede, or record as pending),
Removed rows make those requirements retire candidates, and Pending rows make them
record-as-pending candidates. A change left out of this table
leaves its requirements silently stale.
Before presenting the final documents to the user, verify:
What Must Never Happen table with a safe state per hazardModified row and every withdrawn one a Removed row/peak-workflow:setup chose the stack from product-shape questions asked before the
product was described. Discovery is the first point where those answers can be checked against
what the product actually does, and it is the last cheap moment to change them — the walking
skeleton in /peak-workflow:plan-project materializes the stack.
Read the **Product shape:** block in CLAUDE.md's Tech Stack section, then branch:
CLAUDE.md has a populated Tech Stack (an existing project from before shape
questions existed) — do not re-derive a stack. Say in one line that no recorded shape exists to
check against, and offer to run the shape questions now only if the ConOps surfaced something
the stack may not cover.setup has not run.Re-read the ConOps scenarios and the Product Vision's §10 Data Strategy against each recorded
answer. A contradiction is a scenario step that needs something the recorded shape says the
product does not have. An answer recorded not asked (<type>) is never a contradiction:
| Recorded as "no" | Contradicted by a scenario that… |
|---|---|
| Cross-device / sync | uses the product from a second device expecting to find the same data already there |
| Sign-in / multiple people | names two roles with different permissions enforced by separate sign-in over the same data, or anything shared, assigned, reviewed, or approved inside the product, from another device or account |
| File attachments | attaches or uploads a photo, document, or spreadsheet the product then has to store |
| Live updates from elsewhere | expects something to appear without the person acting — a notification, another person's change |
| Product-held secret | calls a paid or authenticated third-party service |
| Internet on the computers it runs on (Q6, desktop) | syncs, emails, checks for updates, or calls any online service |
Three things are not contradictions, and firing on them would re-platform a correct stack:
no — attribution only), or a person who only receives an exported file, is not
sign-in and not "others see the data"./peak-workflow:discover writes ConOps Section 4 for every
project, so a single-person product still lists a role or two. Only differing permissions count.One row tests a recorded "yes": if sign-in is recorded as Auth: local accounts now, org SSO deferred and a scenario turns on identity carrying weight — an approval, a signature, an audit
trail, a regulated record — raise it. Local accounts are real authentication, but who vouches for
the person is still deferred, and that is worth naming before the requirements baseline is written.
If nothing contradicts, say so in one line in the Step 5 summary and move on.
If something contradicts, do not rewrite CLAUDE.md silently and do not change the vision or
ConOps to fit the stack. Name the contradiction in the user's own words, say what it changes, and
ask:
"Scenario {N} says {plain-language quote}. The stack we recorded assumes {recorded answer} — {plain consequence, e.g. 'the information only lives in one browser, so it will not be on their phone'}. Which is right?""The scenario is right — update the stack""The stack is right — I'll simplify the scenario""Leave both for now — decide before planning"On "update the stack": if only a row or two changes, re-run the Tech Stack step of
/peak-workflow:setup for the changed answers, rewrite the **Product shape:** block and the
affected Stack Summary rows. If the sheet itself changes (static ↔ web, or desktop ↔ Hybrid
with the web sheet's service layers), re-run
/peak-workflow:setup wholesale instead of patching — a sheet change invalidates more than the
stack table, and each of these is load-bearing:
| Section | Why it changes |
|---|---|
Verification & Quality Gates → Test directories | The sheets have different test trees; a stale line makes every start-epic and wrapup-epic grep silently return nothing |
| Local Environment | The static branch skips the backend and live-data questions the web branch requires |
| Tool Hygiene → Version exposure | Footer plus console line on a static SPA; a /version endpoint on a served app |
| Security Baseline | Gains the sign-in reminders when sign-in enters the picture |
| Reference Materials | Its sheet pointer now names the wrong sheet |
Either way, note the change in the Step 5 summary. The edit lands on this docs/ branch, so the
stack change is reviewed and approved by the same merge as the requirements baseline.
On "simplify the scenario": edit the ConOps scenario and re-run Step 4's quality check on it.
On "leave both": record the open question under ConOps §8 Operational Constraints &
Assumptions as **Open — blocks planning:** <the question> and surface it again in the Step 5
summary — /peak-workflow:plan-project stops on that line.
A shape change from N/A to active is never silent: it adds layers that every later epic pays
for. A change in the other direction (a recorded "yes" that no scenario needs) is worth raising
too — the same question, inverted.
Show the user what was created:
## Discovery Complete
### Documents Written
- `docs/product-vision-planning/product-vision.md` — [Created / Updated to v{N}]
- `docs/product-vision-planning/concept-of-operations.md` — [Created / Updated to v{N}]
[Brownfield only:] - `docs/product-vision-planning/changelogs/discovery-changelog-{TIMESTAMP}.md` — Delta summary for implementation planning
### Product Shape Re-check
- [No contradictions — the recorded shape still matches the scenarios / {what contradicted, and what was decided} / No recorded shape to check]
### By the Numbers
- [N] target user groups identified
- [N] MVP goals with success criteria
- [N] operational scenarios with [total] detailed steps
- [N] out-of-scope items explicitly deferred
- [N] glossary terms defined
### Next Step
[When the ConOps contains `**Open — blocks planning:**`, replace this whole section with: "Planning is
blocked: <each open line in plain words>. Resolve it, then run `/peak-workflow:discover` again —
requirements capture and planning will stop until then."]
Run `/peak-workflow:capture-requirements` to derive the formal TOR requirements baseline from
these documents. The requirements capture will run on the same `docs/` branch as this discovery
session. After that, `/peak-workflow:plan-project` derives the implementation plan.
[UI projects only (Web app / Desktop app / Hybrid with a UI):] Run `/peak-workflow:mockup`
first — it derives the screen inventory, per-scenario flows, and grayscale wireframes and
concretizes the ConOps steps with screen and control names — and then
`/peak-workflow:capture-requirements`.
Do NOT commit on your own initiative while writing the documents (Steps 1–4). Committing only ever happens via the explicit Commit Gate in Step 6 — or Step 0's one-time question about files left uncommitted from before the session — and only with the user's confirmation.
After presenting the summary, ask the user how to proceed via AskUserQuestion:
When the ConOps contains **Open — blocks planning:**, do not recommend continuing: offer only
"Stop here — I'll resolve the blocker and run /peak-workflow:discover again" (commit through the
Commit Gate first if the user wants the work saved) and the merge options without a recommendation.
"How would you like to proceed with the docs/ branch?""Continue planning — run /peak-workflow:capture-requirements next on this branch, or /peak-workflow:mockup first on a UI project (recommended for greenfield — do not merge yet)""Solo merge — merge this docs/ branch to base now (vision-only sessions only: use when no requirements derivation is needed this cycle)""Team PR — push and open a PR for vision-only review (same caveat — appropriate only when requirements capture is not part of this cycle)"Do nothing further. The user will invoke /peak-workflow:capture-requirements to continue on
the same docs/ branch — preceded by /peak-workflow:mockup when the Project type is Web app,
Desktop app, or a Hybrid with a UI.
Both merge paths below assume the docs/ branch's working tree is clean — git merge and
git push only act on what is committed. Because discover (and any capture-requirements /
plan-project run already chained onto this same branch) explicitly avoids auto-committing,
uncommitted work can silently accumulate across the whole planning sequence and then be left
out of the merge entirely. Close that gap here, every time, before either branch below runs:
git status --short. If the working tree is clean, skip straight to the chosen branch's
steps below.AskUserQuestion:
"This docs/ branch has uncommitted changes — commit them now so the merge/push below is safe to run?"["Commit with this message", "Let me edit the message first", "I'll commit myself — skip this"]git add -A) and commit.Regardless of which option above was chosen — the working tree's cleanliness is re-checked
immediately before the merge/push actually runs, in the steps below. "Commit with this message" and "Let me edit the message first" only stage the specific files this session
wrote (never git add -A), so pre-existing unrelated uncommitted changes can still be present
afterward — do not assume the tree is clean just because one of those options was picked.
Do NOT commit without this confirmation exchange — the gate exists to make committing an explicit, visible user decision at the one point it is actually required (immediately before merge or push), not to quietly commit on the skill's own initiative.
Note the current docs/ branch name.
Detect the base branch: run git branch --list develop main master and prefer develop if
it exists, then main, then master.
Run git status --short again, regardless of which Commit Gate option was chosen above. If
it is still dirty, use AskUserQuestion:
"The docs/ branch still has uncommitted changes that will NOT be part of this merge commit — proceeding will run 'git checkout <base-branch>', which will either block on these changes or carry them onto <base-branch>'s working tree uncommitted. Proceed anyway, or stop so you can commit first?"["Proceed anyway", "Stop — let me commit first"]git checkout <base-branch>
git merge <docs-branch> --no-ff -m "docs(vision): merge <docs-branch> — vision and ConOps update"
git branch -d <docs-branch>
Confirm: git log --oneline -5
Report:
Branch
<docs-branch>merged into<base-branch>and deleted. Changes not pushed — rungit pushwhen ready.
If step 3 above ended in "Proceed anyway", prefix this report with:
⚠️ Uncommitted changes remained before this merge — they are not part of what just shipped.
Note the current docs/ branch name.
Detect the base branch as above.
Run git status --short again, regardless of which Commit Gate option was chosen above. If
it is still dirty, use AskUserQuestion:
"The docs/ branch still has uncommitted changes that will NOT be part of this push/PR — proceed anyway (they'll be left behind), or stop so you can commit first?"["Proceed anyway", "Stop — let me commit first"]git push -u origin <docs-branch>
Build the PR body:
/peak-workflow:capture-requirements)
has not run yet — this PR covers discovery only.🤖 Generated via /peak-workflow:discovergh pr create --base <base-branch> --title "docs: <one-line summary of discovery update>" --body "<body>"
Stay on the docs/ branch. Do NOT run gh pr merge.
Report:
PR opened:
<url>. Branch<docs-branch>pushed. Await review; do not merge locally.
If step 3 above ended in "Proceed anyway", prefix this report with:
⚠️ Uncommitted changes remained before this push — they are not part of what was just opened for review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin peak-workflow15 skills in this plugin
/addAdds new epic(s) to the implementation plan from a natural language description.
Epics reference TOR requirement IDs from docs/requirements/*.feature.md as their Requirements
Anchors — the TOR ID is the acceptance criterion and the Given/When/Then is the verification.
Use when the user wants to add a single epic or small batch without re-running full planning.
Triggers on: "add epic", "new epic", "create epic", "I need to add more work",
"there's a new feature we need", "can we squeeze in", "add a feature",
"another thing we need to build".
/capture-requirementsDerives formal Gherkin-style TOR requirements (.feature.md files) from product-vision.md and
concept-of-operations.md. Main agent adopts a seasoned-PM persona to author feature files
autonomously; Haiku sub-agent verifies traceability and writes .feature.tracing.json sidecars.
Changes to merged requirements (reword, supersede, retire, record as pending, uphold) each leave a
Change Record in docs/requirements/changes/. With a TOR ID argument it amends that one
requirement (e.g. one that changed since it was verified, or one known to be wrong).
User reviews via the docs/ branch and merge — there is no inline interview.
Run after /peak-workflow:discover and before /peak-workflow:plan-project.
Triggers on: "capture requirements", "derive requirements", "write feature files",
"create TOR requirements", "formalize requirements", "establish requirements baseline",
"generate TOR IDs", "requirements capture", "amend requirement", "retire requirement",
"supersede requirement".
/mockupLow-fidelity UX prototyping on the docs/ branch. Turns ConOps operational scenarios into a
screen inventory, per-scenario screen flows, and grayscale HTML wireframes, then feeds the
screen and control names back into the ConOps steps so /peak-workflow:capture-requirements
derives TORs against named screens and states. Web app, Desktop app, and UI-bearing Hybrid
projects only. Run after /peak-workflow:discover and before /peak-workflow:capture-requirements.
Triggers on: "mockup", "wireframe", "prototype the screens", "sketch the UI",
"what screens do we need", "screen flow", "storyboard the app".
/new-projectFront-door router for newcomers. Reads the project's format stamp to tell a fresh
project, an existing peak-workflow project, and one that needs /peak-workflow:upgrade
apart, and dispatches to the correct entry point. Writes no state files.
Use when starting work on a project for the first time and you're not sure which
command to run.
Triggers on: "new project", "where do I start", "first time here",
"help me get started", "I'm new to peak-workflow", "what should I run first",
"set up a new project", "start a new project".
/pausePauses current epic implementation and saves progress to a handoff file.
Use when stopping mid-epic before the session ends.
Triggers on: "pause epic", "stop epic", "save progress",
"I need to stop for today", "save my progress", "I'm done for now",
"let's pick this up later".
Note: If the user says "I'm done with epic N", check whether they mean pause (stopping mid-work) or wrapup (finished implementation). If all acceptance criteria are checked, suggest /peak-workflow:wrapup-epic instead.
/plan-projectDerives implementation plan (phases, epics, specs) from the TOR requirements baseline
(docs/requirements/*.feature.md). Must be run after /peak-workflow:capture-requirements.
Operates on the same docs/{task-short-name} branch as discover and capture-requirements.
Use after the requirements baseline is established or when the user wants to create an
implementation plan from existing vision + requirements docs.
Triggers on: "plan project", "create epics", "implementation plan", "derive epics",
"break this into epics", "how should we phase this", "turn this into a plan",
"organize work into phases", "what's the build order".
Other plugins' skills for the same job