agentleFS
rafagomesrafagomes/ai-workflow/skills/prd/SKILL.md

prd

Skill9 starsChanged 19 days agoMITView on GitHub

Interview the user and write a Product Requirements Document at docs/PRD.md (or docs/prd/<name>.md for a feature) — problem, scope, user types, key flows, success criteria, risks. Use when the user wants to write a PRD, scope a product or feature, capture requirements or success metrics, or says 'what should we build', 'let's scope this', 'write up the requirements'. Run first, before /wf:architecture and /wf:roadmap. Not for implementation detail (/wf:spec).

136 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use modern-go, usecase and 9 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.
  • 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

  • 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

  • ulises-jeremiasSkill

    trd

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

    Also in 3 projects that use this

  • SireJeffSkill

    context-optimize

    Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping

    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 17 projects that use this

  • +2 more from jidechao

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 109 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a Product Requirements Document for: $ARGUMENTS

    line 6
  2. Distinctive:

    Before starting, check what already exists:

    line 12
  3. Very specific:

    Read docs/ directory structure if it exists

    line 13
  4. Distinctive:

    Read any existing PRD, README, or whitepaper — do not duplicate what's already written

    line 14
  5. Very specific:

    If docs/PRD.md exists, revise it in place and interview only about what is changing.

    line 15
  6. Distinctive:

    Ask about the hard parts the user might not have thought through

    line 35
  7. Very specific:

    Write to docs/PRD.md, or docs/prd/<name>.md for a feature PRD (see Context Awareness).

    line 40

“Common” is measured: kept by at least 6 in 10 of the 109 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

Create a Product Requirements Document for: $ARGUMENTS

In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.

Context Awareness

Before starting, check what already exists:

  • Read docs/ directory structure if it exists
  • Read any existing PRD, README, or whitepaper — do not duplicate what's already written
  • If docs/PRD.md exists, revise it in place and interview only about what is changing; start over only if the user asks. If $ARGUMENTS names a feature and a project PRD exists, write docs/prd/<name>.md.

Process

1. Deep Interview

Use AskUserQuestion to interview the user. Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. If they gave a brief, a README or a pasted idea, restate it in 3-5 lines and interview only the gaps. Ask at most 3-4 questions per round. If the user cannot be asked (a headless run), write the PRD from what exists and list each guess under Risks and Open Questions.

Start broad, then go deep:

  1. The problem — What problem are you solving? Who has this problem? How are they solving it today? What's broken about the current approach?
  2. The solution — What's your high-level approach? What makes it different from existing solutions? What's the core insight?
  3. Scope and boundaries — What does v1 include? What is explicitly out of scope? What are the non-negotiable requirements vs nice-to-haves?
  4. Users and stakeholders — Who are the primary users? Are there different user types with different needs? Who else cares about this (ops, security, compliance)?
  5. Success criteria — How do you know this works? What does success look like in 1 month? 6 months?
  6. Constraints — Technical constraints (language, platform, infra)? Business constraints (timeline, team size, budget)? Regulatory constraints?
  7. Risks — What could go wrong? What are the biggest unknowns? What keeps you up at night about this?

Interview rules:

  • Dig into contradictions and tensions — "you said X but also Y, how do those reconcile?"
  • Ask about the hard parts the user might not have thought through
  • It's OK to push back or challenge assumptions — the goal is a solid PRD, not agreement

2. Write the PRD

Write to docs/PRD.md, or docs/prd/<name>.md for a feature PRD (see Context Awareness).

# [Project/Feature Name]

**Last updated:** [date]

## Problem

[What problem does this solve? Who is affected? What's the current state and why is it broken?]

## Solution

[High-level approach. What is this thing? What's the core insight? How does it work at a conceptual level?]

## Design Principles

[Non-negotiable properties of the solution. The "even if everything else changes, these must hold" rules.]

## Scope

### In Scope (v1)
- [Concrete deliverable 1]
- [Concrete deliverable 2]

### Out of Scope
- [Explicit exclusion 1 — and why]
- [Explicit exclusion 2 — and why]

## User Types

### [User Type 1]
- Who they are
- What they need
- How they interact with the system

## Key Flows

[The 2-4 most important user/system flows. Use prose, diagrams (Mermaid), or step-by-step — whatever is clearest.]

## Success Criteria

- [ ] [Measurable criterion 1]
- [ ] [Measurable criterion 2]

## Constraints

- **Technical:** [language, platform, infra, dependencies]
- **Business:** [timeline, team, budget]
- **Regulatory:** [compliance, security, legal]

## Risks and Open Questions

| Risk/Question | Impact | Mitigation/Answer |
|---------------|--------|-------------------|
| [Risk 1] | [What happens if it materializes] | [How to handle it] |

## Future Work

[What comes after v1? What was deferred and why?]

Drop sections that don't apply; add one if the domain needs it.

3. Present for Review

Show the user the PRD and ask for feedback. Iterate until they're satisfied.

4. Suggest Next Steps

Based on the PRD complexity, suggest which specs to create next:

  • "This needs an architecture doc (system structure + testing strategy) — run /wf:architecture"
  • "There are security-sensitive parts — run /wf:threat-model"
  • "Ready to plan the build — run /wf:roadmap, then /wf:spec <task> for each task. For one feature outside a roadmap, run /wf:spec <feature-name> directly"

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.