/nw-skills:prd-ch [feature] [--size S|M|L] [--html] [--teams|--worktree]from nw-skills
Writes a PRD sized S, M or L with parallel Explore investigation and, for new features only, a feature validator, one write per file, no plan mode. Outputs INVESTIGATION.md, FILES.md, PRD.md (PRD.html with --html) and ACCOUNTABILITY.md. Use on /prd-ch, "write a PRD", "size this", --teams, --worktree.
Ships in nw-skills. Installing the plugin adds it to Claude Code.
$ARGUMENTS
A PRD is a document, not an implementation, so the run is bounded:
/plan mode: the
Explore and Plan agents below are the investigation.> [!ASK] <question> per open fork, each followed by its > - option
lines with your recommended answer first, then wait. This is the only
interruption the speed contract allows; do not use it for anything
resolvable by reading code or by making a reasonable call and flagging it
in Risks & open questions./own-goal. Whoever builds this reads only
these files. A phase without owned files and a runnable acceptance check
cannot be dispatched or accepted, so those are not optional detail.--loop.
Emit <promise>PRD_COMPLETE</promise> once at the end so wrappers can
detect completion.Flags: --size S|M|L · --html/-h · --teams/-t · --worktree/-w ·
--loop · --validate (force the feature validator) · --no-validate (skip it).
If --size is absent, infer it from the task and state your pick in one line:
| Size | Signal | Files produced |
|---|---|---|
| S | one surface, one function family, under about 8 tasks | PRD.md + ACCOUNTABILITY.md (INVESTIGATION and FILES are sections inside PRD.md) |
| M | 2 or 3 domains (for example schema, backend and one UI) | INVESTIGATION.md, FILES.md, PRD.md, ACCOUNTABILITY.md |
| L | cross-cutting, new subsystem, migration | all of M, plus an architecture SVG in PRD.html if --html |
Directory: _r&d/prd/<task-slug>/$(date +%m-%d)/$(date +%H-%M)/. Create it now.
First load the progress panel tools: ToolSearch
select:mcp__savvy-progress__progress,mcp__savvy-progress__step.
If a CONTEXT.md exists (project root, or the relevant context under a
CONTEXT-MAP.md), read it first. Name things in Requirements and the task
list the way it names them; do not invent a synonym for a term it defines. If
the feature surfaces a term or a hard-to-reverse decision with no home in
CONTEXT.md or docs/adr/ yet, do not stop to resolve it: note it once under
Risks & open questions as a domain-modeling candidate for whoever picks this
PRD up.
Launch 2 to 4 Explore agents at once (never sequential), each with a
narrow brief and "medium" thoroughness ("very thorough" only for L):
workspaceAuth), rate limits, background workers, billing.Each agent returns raw findings only, at most 40 lines each. Do not re-read what they read; cite their paths.
Feature validator: only when the PRD adds a new feature to a product that
already exists. A new feature is something a user or customer will see or
use that the product does not do today. Skip the validator for everything
else: tech debt, performance and cost work, refactors, migrations, bug fixes,
build, deploy and infra work, security hardening, dependency upgrades and
internal tooling. Those are not go-to-market questions, and a GTM score on
them is noise. Put the call in the Step 0 size line (validator: run or
validator: skipped, <kind>). --validate forces it on; --no-validate
forces it off. When it runs, dispatch it in the same launch, dispatch one more agent (model: "opus", not
Explore, because it searches the web) to run the /gtm feature sub-command
on the feature: it follows ~/.claude/skills/gtm/references/feature.md and
references/conventions.md (skip the HTML report; keep the facts step), uses
the project's <gtm> folder as conventions.md resolves it (_r&d/gtm/ when
the project has _r&d/) and any earlier /gtm runs there, and owns only
<gtm>/feature-<slug>.md and its own lines in <gtm>/facts.md. Its input is
the feature as the user described it, plus one line from you: whether our own
team uses this surface live, and anything the user said about how they work
in it. The validator fills the reference's Own use section from production
counts and repo workarounds, and scores on them. It returns the score out of
35, the verdict (build it, test first, park it, kill it), every point of
pushback, and the cheapest test it proposes. Skip it too for a brand-new
product with nothing live. The point
is to see the pushback before the PRD commits to building: do not soften it,
and do not let it block the PRD. Not softening cuts both ways: measured own
use is evidence, and a brief that leaves it out gets a wrong park.
Progress panel (~/.claude/references/progress-panel.md): before the launch,
report title (the slug), one tasks row per reader at tier medium, titled
exactly as its Agent description, a row for the feature validator at tier
careful when it runs, a row Write PRD files at tier careful, for M and
L a last row Check PRD against repo at tier heavy, and
phase: "delegate". Each reader brief carries the worker step line. Bump
done as each reader returns, phase: "design" while writing, and
finished: true once the files are written.
While they run, draft Problem, Goals and Non-goals from the brief.
Skills: writing-clearly-and-concisely always; vercel-react-best-practices
only if the PRD is frontend-heavy (read the AGENTS.md index, not all rules).
Write files in this order, each once:
<gtm>/feature-<slug>.md) · Requirements
(numbered R1…) · Technical design (data, backend, frontend, config; reuse
names from the investigation) · Phases and tasks (rules below) ·
Cross-check table (R# ↔ T#, flag orphans both ways) · Testing (name the seams, the public
interfaces each test observes: a mutation, an API route, a rendered
component; then which test files, and what each asserts; a test that
reaches into internals to pass does not count) · Risks & open questions ·
Rollout.--html): see the spec below..claude/goals/<task-slug>/ACCOUNTABILITY.md (the shared accountability
home used by own-goal, not the PRD directory; append a dated section if
it exists): each task with confidence (5 guessing · 8 clear · 10
bulletproof) and reason, a gaps register, open questions for the user. Put
a one-line pointer to it at the bottom of PRD.md./own-goal turns every ### Phase <X>: <title> heading into one unit of
work for one agent, so the task list is written as phases:
### Phase A: <title>
Depends on: none | Phase <X>
Owns: <exact paths this phase creates or modifies>
Tasks:
- T1 [Backend] <one sentence, names the file> (R1, R3)
Acceptance:
- [ ] <observable outcome> | CHECK: `<command>` | EXPECT: <substring or /regex/>
[Database], [Backend],
[Frontend], [Config], [Tests]) so it still reads by domain.CHECK that is cheap and non-interactive (typecheck, a named test file,
a grep, a count) and the EXPECT its output must contain. Never a dev
server, a browser or a deploy: the owner verifies those, so write such an
outcome as an item with CHECK: manual and say what the owner looks at.CLAUDE.md (for example background workers
for enrichment, isUnresolvedEmail gating, no "AI" in copy) and cite them.A wrong path or a requirement nobody can test costs a phase later, so the PRD is checked before it is handed over.
test -e); every path marked create
does not; every function, table and env var the Technical design calls
existing is found by grep. Fix what fails.subagent_type: "savvy-flow:savvy-heavy" with
model: "opus" (savvy-flow:savvy-fable when the session model is below
Fable), given only the PRD directory and the repo. It reads and reports,
at most 30 lines: requirements with no acceptance check, tasks that
contradict what the code already does, a missing migration, tenancy or auth
step, phases whose Owns lists collide, checks that would pass while the
feature is still wrong. Fold what holds into PRD.md in one revision and
list what you rejected, with the reason, under Risks & open questions.Run the reply through unslop: lines below as **name:** what happened,
callouts last.
> [!ASK] asking whether to go ahead anyway, test first, or drop it.<promise>PRD_COMPLETE</promise>Do not offer to start implementation; that is /own-goal <path to PRD.md>,
/ch, or the user's call.
--html / -h)Markdown is the working doc; HTML is the stakeholder deliverable, emitted
alongside PRD.md, never instead of it. Requirements:
.html: no CDNs, no remote fonts, no external deps.
System fonts (ui-serif, system-ui, ui-monospace).<style> with tokens (--ink, --paper, --accent, --muted);
editorial scale, line-height about 1.6, max-width about 1200px; an
@media print block.<svg> for architecture and flow diagrams (L only). No mermaid.<details> for investigation notes, file list, risk register.must / nice /
out-of-scope) and in-page anchor nav.border-radius: 0.--teams / --worktree): planning onlyThese flags do not change how the PRD is produced. They add one section to PRD.md, "Execution plan", when the task list has 8 or more tasks:
ALPHA…DELTA),
each with its phases, owned files, dependencies, and the prerequisite the
lead does first.--worktree adds branch names prd/<slug>/<stream> and the merge order
(--no-ff, sequential).Actual execution (Agent Teams or worktrees) happens later, from /ch or the
user, not inside this command.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub michaelezehi/nw-skills --plugin nw-skills21 commands in this plugin
/cfForce continue: recover a context-exhausted sessionRecovers a context-exhausted session from its transcript (todos, modified files, last work), writes .claude/handoffs/current.md and carries on. Use on /cf, "force continue", or when a session died at its context limit and no handoff was saved./chHandoff continuity modeRuns a task in handoff continuity mode with a domain task list, an ACCOUNTABILITY.md with Q&A under .claude/goals, progress bar and incremental commits; --html adds SUMMARY.html. Use on /ch, the ch wrapper, or to implement a PRD from /prd-ch./fd-chRuns the frontend-design skill in handoff mode, with the progress panel, a reference-image spec when one is given, and an accountability record at the end. Use on /fd-ch or the fd-ch wrapper for any UI build, redesign or polish that should survive a context handoff./gtm:allAllRuns every /gtm sub-command on the current repo in waves and hands back one PDF with a designed cover, an index and every report in full. Use on /gtm:all, "/gtm on" with --all, or when the user wants the whole go-to-market review of a project in one document./gtm:briefBriefWrites the product brief (problem, audience, value proposition, 5 to 7 features, 90-day metrics, risks) through the gtm skill and hands back a PDF report. Use on /gtm:brief, "gtm brief", or when the user asks for a product brief or one-pager for a project./gtm:competitorsCompetitorsFinds 5 to 8 sourced competitors and builds a feature matrix, the gaps and a threat ranking through the gtm skill, with a PDF report. Use on /gtm:competitors, "gtm competitors", or when the user asks who the competitors are or how a product compares.