/peak-workflow:new-project [optional: short description of the project]from peak-workflow
Detects project state (new, existing, needs upgrade) and dispatches to the correct peak-workflow entry point. Use when starting work on a project for the first time.
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 routing the user to the correct peak-workflow entry point. This is a detection + dispatch skill — you do not write state files, you do not make git changes, you do not modify any documentation. Your output is a verdict plus an ask-and-dispatch.
The user's optional description: $ARGUMENTS
Follow these steps exactly:
sh "${CLAUDE_PLUGIN_ROOT}/scripts/tor-lifecycle" format
Record the first line, verdict: <word>, and the exit code. Exit 3 means no suitable Python:
print its output and stop. Exit 2 means the stamp is unreadable: print its output and stop.
Exit 1 is not an error here — it is how format reports behind, ahead, and
not-peak-workflow; Step 2 routes on the verdict.
find . -maxdepth 2 -not -path './node_modules/*' -not -path './.git/*' \( -name package.json -o -name pyproject.toml -o -name Cargo.toml -o -name go.mod -o -name CMakeLists.txt -o -name platformio.ini -o -name Makefile -o -name '*.sln' -o -name '*.csproj' \) 2>/dev/null | head -5
test -d src && echo "src/"
(find, not a glob list — zsh aborts a whole ls command when one pattern matches nothing.)
Set has_code = true if any match. It does not change the verdict — a repository with code and
no peak-workflow artifacts still starts with /peak-workflow:setup — but it changes the wording,
and setup and plan-project both detect it and extend the code rather than scaffold.
The stamp decides — no file heuristics:
format verdict | Verdict |
|---|---|
new | GREENFIELD |
current | EXISTING PEAK-WORKFLOW |
behind | UPGRADE FIRST |
ahead | UPDATE THE PLUGIN |
not-peak-workflow | NOT A PEAK-WORKFLOW LAYOUT |
Print the verdict with what was observed:
## Project State Detection
Verdict: <GREENFIELD | EXISTING PEAK-WORKFLOW | UPGRADE FIRST | UPDATE THE PLUGIN | NOT A PEAK-WORKFLOW LAYOUT>
Signals observed:
- Format: <project format, or "no stamp"> (this plugin: <plugin format>)
- Existing code (build manifest or src/): <yes | no>
Use the verdict to choose the recommendation. In every branch, print the recommended command(s) for the user to confirm before invoking via the Skill tool. If the user declines auto-dispatch, print the commands as text and end.
Recommendation:
This looks like a fresh project. The greenfield path is:
1. /peak-workflow:setup — audit CLAUDE.md, stub architecture/design-notes
2. /peak-workflow:discover — adaptive interview → product-vision + ConOps
3. /peak-workflow:mockup — (UI projects only — screen inventory, flows, wireframes)
4. /peak-workflow:capture-requirements — derive TOR feature files from vision/ConOps
5. /peak-workflow:plan-project — derive epics + phases from the TOR baseline
After the docs/ branch from steps 2-5 is merged, you'll iterate with:
/peak-workflow:start-epic <id> → /peak-workflow:wrapup-epic <id>
I'd start with `/peak-workflow:setup`. Each later step benefits from a fresh session for
clean context.
When has_code = true, replace the first line with: "There's code here already, but no
peak-workflow planning yet. Setup reads your existing stack from the code — nothing gets
re-scaffolded. The path is:"
Ask:
"Run /peak-workflow:setup now?"["Run /peak-workflow:setup now", "I'll run it manually"]On confirm, invoke — passing the user's description through, so setup drafts the Project
Overview from it instead of asking again:
Skill({ skill: "peak-workflow:setup", args: "$ARGUMENTS" })
This project is already on peak-workflow. Ask the user what they actually want to do:
"This is an existing peak-workflow project. What would you like to do?""Triage an incoming request (issue or ad-hoc)""Read the project status dashboard""I'll pick a command myself"On "Triage an incoming request...", invoke:
Skill({ skill: "peak-workflow:triage", args: "$ARGUMENTS" })
(Pass $ARGUMENTS if the user gave a description; otherwise pass empty string and /triage
will prompt.)
On "Read the project status dashboard", invoke:
Skill({ skill: "peak-workflow:status", args: "" })
On "I'll pick a command myself", print the inventory and exit:
Common commands on an existing peak-workflow project:
- /peak-workflow:triage <issue|description> — size an incoming request (HEAVY/AMEND/EPIC/TRIVIAL)
- /peak-workflow:status — read-only progress dashboard
- /peak-workflow:add — add an epic referencing existing TOR IDs
- /peak-workflow:start-epic <id> — implement a planned epic
- /peak-workflow:wrapup-epic <id> — independent verification of a completed epic
- /peak-workflow:quick-fix <description> — trivial bug fix on a hotfix branch
Print the format command's message, then:
This project's peak-workflow files are older than this plugin reads. The upgrade shows each step
before applying it, works on its own docs/upgrade-format-… branch, and makes one commit per step (or per phase, when a step says so).
Commands that change files wait until it is merged; status and triage still run, with a warning.
Ask:
"Run /peak-workflow:upgrade now?"["Run /peak-workflow:upgrade now", "I'll run it manually"]On confirm, invoke:
Skill({ skill: "peak-workflow:upgrade", args: "" })
Print the format command's message and end. Dispatch nothing.
/new-project is detection + dispatch only. If the user chose a manual path, end the session
with the verdict and recommended commands printed.
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".
/discoverAdaptive discovery interview that produces product-vision.md and concept-of-operations.md.
Use when starting a new project (greenfield) or evolving an existing project's direction (brownfield).
Creates a docs/{task-short-name} branch if on develop/main/master so all planning artifacts
travel through a reviewable branch before merging to develop.
Triggers on: "discover", "new project", "product vision", "concept of operations", "what should we build",
"let's figure out what to build", "I have an idea for an app", "brainstorm features",
"requirements gathering", "what are we building", "help me scope this out".
/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".
/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