write-prd
Writes a product requirements document (problem, users, solution, user stories, success measure, out of scope) from a framed goal, recording only decisions the user made or confirmed. Use when a framed goal needs its product what and why settled before a technical spec.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- write-prd
- description
- Writes a product requirements document (problem, users, solution, user stories, success measure, out of scope) from a framed goal, recording only decisions the user made or confirmed. Use when a framed goal needs its product what and why settled before a technical spec.
- allowed-tools
- Agent, AskUserQuestion, Read, Glob, Grep, Write, Edit
- argument-hint
- [frame-path]
- user-invocable
- true
- disable-model-invocation
- true
02 资源文件 1
- 参考文档references/prd-template.md1.2 KB
03 SKILL.md 正文
Write a PRD
Settle the product what and why for a framed goal: whose problem it is, what they get, how success is measured, and what is out. The PRD is a record of decisions the user made or confirmed. Anything it asserts that the user never said or confirmed is a defect.
The technical how (modules, interfaces, files, tests) belongs to the spec that follows, not here.
Seat mode
When a brief tells you to apply this file: do every step except talking to the user. Return each user decision as an OPEN DECISIONS line (options, recommended first), and write files only where the brief says. A step that spawns a subagent: do the reads yourself, and return each verification or spawn it needs as a NEEDS line for the TL.
Wallet: ${user_config.wallet} (unset, unknown or still literal text: sushi). Every seat this skill spawns gets model from its row and the wallet's column in the table printed by sed -n '/^## Route the seat/,/^## Brief/p' "${CLAUDE_PLUGIN_ROOT}/skills/orchestrate/SKILL.md".
Step 1: Load the frame
Read the frame at $ARGUMENTS. If no path was given, or the file has no Frame section, stop and print: No frame found. Run /senioro:frame-goal <goal> first.
Take the frame's Goal, Done when, Scope, Route and Decisions as settled. Do not re-ask them.
Step 2: Settle the product questions
List what the PRD needs that the frame left open: who the users are and what job they are doing, the user-facing flows, the success measure, the edges of scope.
- Ask one question at a time with AskUserQuestion: 2–4 options, the recommended one first, a one-line trade-off for each.
- Ask only questions whose prerequisites are settled; recompute after each answer. Done when no product question is left open.
- Facts come through subagents (a runner,
senioro:runner, to locate or quote; an investigator,senioro:investigator, for how or why), never from the user. - A question the user defers goes to Open questions, not into a guess.
Step 3: Write the PRD
Fill ${CLAUDE_SKILL_DIR}/references/prd-template.md in the frame's file. The frame stays its first section, unchanged. In seat mode, move the frame in from the brief's context file.
Write in the user's view and in the project's own nouns. Every section is backed by the frame, a user statement or a decision; a section with nothing to say says "none" rather than inventing content.
The Success measure is falsifiable: a number, an observable behaviour, or a check a person can run, with the threshold that counts as success. Tie it to the frame's Done when; do not restate it.
Step 4: User stories
- Numbered, each as "As a <actor>, I want <capability>, so that <benefit>".
- Their count scales with the scope: enough to cover every flow in scope, no padding.
- Each traces to a user statement or a decision (cite the Decisions
#Nor the frame). - No implementation decisions, file paths or code.
Step 5: Hygiene pass
Apply ${CLAUDE_PLUGIN_ROOT}/skills/write-spec/references/hygiene.md to the PRD and fix what it finds. Report one line: Hygiene: clean or Hygiene: fixed <n> (<what>).
Step 6: Confirm and hand off
Ask one question: "Does this state anything you did not say or confirm?" Fix every item the user names, then print the PRD path and:
Next: /senioro:write-spec <prd-path>
04 同仓库更多 Skills
write-spec
Writes the technical spec for a framed goal or a product requirements document: decisions table, cited facts, root cause for fixes, design with alternatives, agreed test seams, and gateable units, then runs a hygiene pass. Use when a goal is framed and the technical how must be designed before building.
unslop
Cuts AI tells from any writing, such as filler, hedging, AI vocabulary, em dashes, and jargon, while keeping the meaning and tone. Use when writing or editing prose such as docs, READMEs, PR descriptions, or commit messages, or when the technical-writing skill applies.
typescript-best-practices
Applies TypeScript best practices: discriminated unions, branded types, constructive modeling, no `as` casts, exhaustive switches, and validation at boundaries. Use when reading or editing any .ts or .tsx file.
technical-writing
Applies a layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.
status
Prints a plain-language status digest of the current work: done (and how it was verified), in flight, left, next, and open decisions, from the session's progress or rebuilt from git and the spec. Use when the user asks where things stand or what is done, left, or next.
review-spec-plan
Reviews a spec or plan in four gated stages (need or root cause, solution design, impact, spec quality) with one reviewer seat per pass, stopping at the first failing stage; a passed stage is frozen. Use when a spec or plan should be reviewed before it is built or its issues are resolved.