agentleFS
BhaskarManamBhaskarManam/pstack/skills/prd/SKILL.md

prd

Skill4 starsChanged 7 months agoMITView on GitHub

Draft a rigorous PRD grounded in the strategy: hypothesis, user stories with ACs, scope, success metrics, Cagan four risks, milestones. Writes 02-prd.md. Requires strategy score ≥ 2.5.

125 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context-optimize, usecase and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ibahgatSkill

    context-optimize

    Improve context efficiency and cache stability for long or complex sessions.

    Also in 3 projects that use this

  • gabriellstSkill

    usecase

    Create an application use case. Use when implementing business operations like CreateOrder, ProcessPayment, CancelBooking. Use this skill for any command/mutation that orchestrates domain logic, whether simple CRUD or complex multi-step transactions with sagas. Dispatch hub — routes to typescript/go variants by file extension.

    Also in 3 projects that use this

  • jidechaoSkill

    modern-go

    Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code", "gofix", or wants to upgrade Go idioms.

    Also in 3 projects that use this

  • ulises-jeremiasSkill

    trd

    WHAT — Draft and review a Technical Requirements Document (TRD) using the template, typically

    Also in 3 projects that use this

  • jidechaoSkill

    loop-it

    Automated issue loop with checkpoint/resume: fetch open GitHub issues → dependency-aware topological sort → implement each issue end-to-end → review with /review-it → document with /note-it → ship with /ship-it → repeat. Persists state to .loop-state.json for crash recovery. Triggers on: loop-it, loop issues, auto implement, 批量实现, 循环实现, 实现所有issue, 恢复循环, resume loop.

    Also in 3 projects that use this

  • snarktankSkill

    ralph

    Convert PRDs to prd.json format for the Ralph autonomous agent system. Use when you have an existing PRD and need to convert it to Ralph's JSON format. Triggers on: convert this prd, turn this into ralph format, create prd.json from this, ralph json.

    Also in 16 projects that use this

  • +2 more from jidechao

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 12 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 102 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If 01-strategy.md does not exist: tell the user and stop.

    line 18
  2. Very specific:

    If 01-strategy.md exists but its rubric_score is below 2.5: tell the user: *"The strategy scores {score}/5 — below the 2.5 floor for PRD.

    line 19
  3. Very specific:

    If rubric_score is missing (not yet scored): run a quick score pass on the strategy before proceeding.

    line 20
  4. Distinctive:

    If the strategy passes, continue.

    line 22
  5. Very specific:

    Read pstack-workspace/{slug}/01-strategy.md in full — this is the bet you are speccing.

    line 28
  6. Very specific:

    If any opportunity-*.md files exist, read them — they carry the discovery evidence and riskiest-assumption tests for the bet.

    line 29
  7. Distinctive:

    Ask these five questions, one at a time:

    line 41
  8. Distinctive:

    If the user can't state it: *"Try filling in the blanks: We believe ___ will ___ because ___."* Help them iterate.

    line 48
  9. Distinctive:

    If the answer is a vanity metric (downloads, signups, DAU without context): ask *"That measures activity.

    line 54
  10. Distinctive:

    Before drafting, read silently:

    line 60
  11. Distinctive:

    Hypothesis: must include user, behavior, mechanism (because), measurable outcome, baseline, and target.

    line 70
  12. Distinctive:

    Success metrics: no output metrics (features shipped, story points).

    line 73
  13. Distinctive:

    Cagan four risks: every risk type must appear.

    line 74
  14. Very specific:

    Update state to PRD_DONE. Add artifact entry with file, type (prd), version, rubric_score, and date.

    line 98
  15. Very specific:

    Write ~/.config/pstack/last-session.md per knowledge/schemas/last-session.schema.md.

    line 104
  16. Distinctive:

    Ask once: *"One thing you'd change about this PRD?

    line 118
  17. Distinctive:

    Never start if strategy score is below 2.5 — enforce the quality gate

    line 132
  18. Very specific:

    If the PRD needs to break the strategy's won't-do list, stop and send the user back to /strategy — don't silently override the bet

    line 134
  19. Distinctive:

    No vanity metrics — push back in the interview.

    line 137
  20. Distinctive:

    Every Cagan risk must appear — if the user hasn't thought about one, surface it in the risks table with "unknown — discovery needed"

    line 138

“Common” is measured: kept by at least 6 in 10 of the 102 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/prd

You are the pstack PRD generator. You translate a vision into a structured product requirements document — specific, testable, and free of vanity metrics.


Step 1 — Dependency quality gate

Read pstack-workspace/{slug}/.pstack-meta.json.

  • If 01-strategy.md does not exist: tell the user and stop. "Run /strategy first — /prd requires a strategy. The PRD specs a bet the strategy has already chosen."
  • If 01-strategy.md exists but its rubric_score is below 2.5: tell the user: "The strategy scores {score}/5 — below the 2.5 floor for PRD. Sharpen it with /strategy or run /critique before proceeding." Stop.
  • If rubric_score is missing (not yet scored): run a quick score pass on the strategy before proceeding.

If the strategy passes, continue.


Step 2 — Read context and frameworks

  1. Read pstack-workspace/{slug}/01-strategy.md in full — this is the bet you are speccing. Read 00-vision.md for grounding.
  2. If any opportunity-*.md files exist, read them — they carry the discovery evidence and riskiest-assumption tests for the bet. Use them to seed the hypothesis and the four-risks section instead of re-deriving from scratch.
  3. Read knowledge/INDEX.md.
  4. Load from INDEX.md:
    • knowledge/frameworks/cagan-discovery.md — four risks framework
  5. Read knowledge/rubrics/prd.yaml.

Inherit, don't re-derive: the PRD's success metrics must descend from the strategy's success definition (North Star + inputs), and the PRD's scope must serve the strategy's bet. Do not invent a new North Star or contradict the strategy's won't-do list — if the PRD needs to, that's a signal to revisit /strategy, not to override it here.


Step 3 — Interview (AskUserQuestion)

Ask these five questions, one at a time:

  1. "Which slice of the vision are we turning into a PRD? Describe the scope in one sentence — what's in v1, what's not."
  2. "Who exactly is the target segment? More specific than the vision — which users will we optimize for first?"
  3. "State your hypothesis: 'We believe [user] will [behavior] because [mechanism], and we'll know we're right when [measurable outcome] moves from [baseline] to [target] within [timeframe].'"
    • If the user can't state it: "Try filling in the blanks: We believe ___ will ___ because ___." Help them iterate.
    • Push back if the outcome is vague or if there's no baseline.
  4. "What are the top 3 user stories? Format: 'As a [user], I want to [action] so that [outcome].'"
  5. "What is the single most important success metric — and what's your baseline today?"
    • If the answer is a vanity metric (downloads, signups, DAU without context): ask "That measures activity. What behavior change in the user does success require?"

Step 4 — Read calibration set

Before drafting, read silently:

  • knowledge/calibration/prd-score-2.md — understand failure modes
  • knowledge/calibration/prd-score-5.md — internalize excellence

Step 5 — DRAFT (internal, invisible to user)

Using skills/prd/template.md as structure, draft 02-prd.md. Apply:

  • Hypothesis: must include user, behavior, mechanism (because), measurable outcome, baseline, and target. No hypothesis without all six components.
  • Acceptance criteria: Given/When/Then format. The "Then" must be measurable, not a design note.
  • Scope: explicit in/out. Every out-of-scope item must have a rationale.
  • Success metrics: no output metrics (features shipped, story points). Distinguish leading from lagging. Baselines required.
  • Cagan four risks: every risk type must appear. "N/A" is only acceptable for feasibility if a spike has already been run.

Step 6 — SELF-CRITIQUE (internal, invisible to user)

Score the draft against each dimension in knowledge/rubrics/prd.yaml.

Compute weighted average.

If < 3.5: revise the lowest-scoring dimension(s) once. Re-score.


Step 7 — Present the artifact

Present the final 02-prd.md in full. Ask: "Does this capture the product requirements? Anything to adjust before I save?"

Apply corrections. Save to pstack-workspace/{slug}/02-prd.md.


Step 8 — Update .pstack-meta.json

Update state to PRD_DONE. Add artifact entry with file, type (prd), version, rubric_score, and date.


Step 9 — Write last-session.md

Write ~/.config/pstack/last-session.md per knowledge/schemas/last-session.schema.md.

State is PRD_DONE. Suggest /design-brief as primary next; /cagan-review as alternative.


Step 10 — Append quality-log.yaml

Append one entry to ~/.config/pstack/quality-log.yaml per knowledge/schemas/quality-log.schema.yaml.


Step 11 — Capture feedback

Ask once: "One thing you'd change about this PRD? Press Enter to skip."

Append to feedback/prd-log.yaml per knowledge/schemas/feedback-log.schema.yaml.


Step 12 — Suggest next

"Your PRD is saved. Next: /design-brief to translate this into design direction, or /cagan-review to stress-test the four risks before design starts."


Rules

  • Never start if strategy score is below 2.5 — enforce the quality gate
  • Success metrics inherit from the strategy's success definition; do not invent a competing North Star
  • If the PRD needs to break the strategy's won't-do list, stop and send the user back to /strategy — don't silently override the bet
  • Hypothesis must have all six components — if the user can't provide them, help construct it step by step
  • ACs must be testable — "the button is blue" is not an AC; rewrite it internally
  • No vanity metrics — push back in the interview; revise internally if they slip through
  • Every Cagan risk must appear — if the user hasn't thought about one, surface it in the risks table with "unknown — discovery needed"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.