prd-writing
Skill2 starsChanged 4 months agoMITView on GitHub
Behavioral PRD writing — co-author a product requirements document through structured interview and codebase exploration, saved as a local Markdown file. Use when user wants to write a PRD, create a product requirements document, plan a new feature, define requirements, capture expected behaviors, or scope a project. Also trigger when the user mentions \"PRD\", \"product requirements\", \"requirements doc\", or wants to define what a system should do before implementation begins.
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ArchSightLabs/archsight-cognitiontheir own version, first seen Jun 2, 2026
- limengzhe27-boop/claude-product-doc-skillstheir own version, first seen May 29, 2026
- okou-ai/okou-skillstheir own version, first seen Mar 26, 2026
- shawnpang/startup-founder-skillstheir own version, first seen Mar 16, 2026
- Dragoon0x/product-skillstheir own version, first seen Feb 24, 2026
- assimovt/productskillstheir own version, first seen Feb 18, 2026
Used with
Projects with it also use roadmap-planning and research-synthesis.
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.
assimovtSkillroadmap-planning
Create outcome-based roadmaps using Now/Next/Later instead of Gantt charts. Use when asked to create a roadmap, plan quarterly, organize milestones, or figure out what to build over the next few months. Anti-date, anti-feature-list, pro-outcome.
Also in 4 projects that use this
AnthropicSkillresearch-synthesis
Synthesize user research into themes, insights, and recommendations. Use when you have interview transcripts, survey results, usability test notes, support tickets, or NPS responses that need to be distilled into patterns, user segments, and prioritized next steps.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- shawnpang/startup-founder-skills★ 337same name
- GenerativeAgents/claude-code-book-chapter8★ 119same name
- itseffi/agentic-os★ 115same name
- okou-ai/okou-skills★ 77same name
- assimovt/productskills★ 71same name
- ArchSightLabs/archsight-cognition★ 5same name
- Dragoon0x/product-skills★ 4same name
- limengzhe27-boop/claude-product-doc-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-architectureSkill
- agent-evaluationSkill
- agent-memorySkill
- agent-post-trainingSkill
- agent-self-evolutionSkill
- agent-tool-designSkill
- api-designSkill
- application-architectureSkill
- brainstormSkill
- code-reviewerSkill
- coding-agent-designSkill
- concurrency-designSkill
- context-engineeringSkill
- dockerSkill
- game-audioSkill
- game-designSkill
- game-narrativeSkill
- game-patternsSkill
- game-performanceSkill
- game-renderingSkill
- game-visualsSkill
- git-commitSkill
- git-prSkill
- godot-shaderSkill
- godotSkill
- gpu-rendering-architectureSkill
- grafanaSkill
- helmSkill
- homelab-monitoringSkill
- k3sSkill
- k8s-networkingSkill
- k8s-operationsSkill
- k8s-storageSkill
- k8s-workloadsSkill
- knowledge-baseSkill
- level-designSkill
- llm-inference-servingSkill
- loggingSkill
- logqlSkill
- love2d-fennelSkill
- love2dSkill
- ml-platform-architectureSkill
- ml-post-trainingSkill
- multi-agent-collaborationSkill
- nix-dendriticSkill
- nix-packagingSkill
- nixSkill
- odin-designSkill
- odin-gamedevSkill
- orchestratorSkill
- physical-ai-systemsSkill
- plannerSkill
- prd-to-storiesSkill
- promqlSkill
- pr-reviewerSkill
- python-designSkill
- rag-designSkill
- ray-data-pipelinesSkill
- ray-kubernetes-infrastructureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before interviewing, explore the repo.
- Very specific: line 29
Do NOT read or surface the contents of secrets files (.env, *.key, credentials.*, secrets/).
- Very specific: line 33
Check if docs/prd.md exists.
- Distinctive: line 37
If starting from the existing PRD: use it to pre-populate interview answers and skip phases already well-covered.
- Very specific: line 41
Ask one question at a time.
- Distinctive: line 45
Do not batch questions even if the user asks you to — batching produces shallow answers that miss the nuance needed for a good PRD.
- Distinctive: line 80
Before writing, present all captured behaviors grouped by capability area.
- Very specific: line 90
Write the PRD in a single pass using the template below.
- Very specific: line 92
Do NOT commit the file — not even if the user says "save it" or "finalize it".
- Distinctive: line 140
Be terse: Every unnecessary word is a potential error amplified downstream.
- Distinctive: line 142
Each capability group should be independently shippable: If a group bundles unrelated concerns, split it.
“Common” is measured: kept by at least 6 in 10 of the 5 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.
Files
Behavioral PRD Writing
Co-author a behavioral PRD for a repository through structured interview and codebase exploration. Output is docs/prd.md at the repo root.
The goal is a document that captures what the system should do — from the outside, in plain language — without prescribing how to build it. Downstream skills and processes generate stories, epics, and feature specs from this PRD.
Scope Model
PRD (per-repo) → Capability Groups (independently shippable) → Behaviors (testable statements)
Workflow
Step 1: Explore the codebase
Before interviewing, explore the repo. Understand what exists — code structure, existing docs, patterns, naming conventions. This grounds the interview in reality and prevents asking questions the codebase already answers.
Look for:
- Existing documentation (
README.md,CONTRIBUTING.md) - Code structure and module organization
- Any prior PRDs, specs, or design docs in
docs/
Do NOT read or surface the contents of secrets files (.env, *.key, credentials.*, secrets/).
Step 2: Check for an existing PRD
Check if docs/prd.md exists. If found, read it, briefly summarize what it covers, and ask:
"I found an existing PRD at docs/prd.md — it covers [brief summary]. Should I use it as a starting point, or start fresh?"
If starting from the existing PRD: use it to pre-populate interview answers and skip phases already well-covered. If starting fresh: proceed as if no PRD exists.
Step 3: Interview the user
Ask one question at a time. Provide a recommended answer with each question — this reduces friction and anchors the conversation. Fill in concrete details from the codebase before asking; never emit a literal [X] placeholder to the user.
Follow this sequence loosely; skip phases already answered by the codebase or the current conversation. If an answer is ambiguous or contradicts something found in the codebase, ask a follow-up before moving on. If the user gives two consecutive non-answers on the same question, move on and mark it as an Open Question.
Do not batch questions even if the user asks you to — batching produces shallow answers that miss the nuance needed for a good PRD. If the user pushes back, explain that one question at a time produces a better document.
Phase 1 — Problem & actors
Understand who has the problem and what's painful.
- "Who are the primary users of this system?" (Recommended: [infer from codebase context])
- "What problem does this solve that isn't solved today?"
- "What's the most painful part of the current workflow?"
Phase 2 — Scenarios
Walk through concrete usage end-to-end.
- "Walk me through what happens when a user [does the primary action] for the first time."
- "What does a typical session look like end to end?"
- "What's the most common thing a user will do with this?"
Phase 3 — Edge cases & failure modes
What breaks, what's weird, what happens at boundaries.
- "What should happen if the service is unavailable during [primary action]?"
- "Are there scenarios where two users would do [primary action] simultaneously?"
- "What happens when the input is empty, malformed, or extremely large?"
Phase 4 — Scope boundaries
What's explicitly out.
- "You mentioned [X] — is that something this PRD should cover, or is it a separate concern?"
- "Are there adjacent features we should explicitly exclude?"
Step 4: Behavior coverage check
Before writing, present all captured behaviors grouped by capability area. Ask:
"Here are the capabilities and behaviors I've captured. What's missing?"
After each response, incorporate any new behaviors and ask again. If the user keeps adding new capability areas, note them as Open Questions or a future-phase section rather than expanding the current PRD indefinitely. Stop iterating when the user confirms completeness or provides no new behaviors after two consecutive rounds.
This is the primary quality gate — it catches missing use cases before they become implementation gaps.
Step 5: Write docs/prd.md
Write the PRD in a single pass using the template below. Create the docs/ directory if it doesn't exist. Write the file to docs/prd.md relative to the repository root. If overwriting an existing file, mention this to the user before writing.
Do NOT commit the file — not even if the user says "save it" or "finalize it". Writing the file to disk is the complete action. Tell the user the file is at docs/prd.md and that committing is their responsibility.
PRD Template
# PRD: [Product/Feature Name]
## Problem Statement
What problem exists, from the user's perspective.
## User Stories
Short list establishing actors and motivations.
- As a [actor], I want [feature], so that [benefit]
## Expected Behaviors
### [Capability Group 1]
- Behavioral statement
- Behavioral statement
### [Capability Group 2]
- Behavioral statement
- Behavioral statement
## Open Questions
- Unresolved design decisions go here, not buried as assumptions.
## Out of Scope
- What this PRD explicitly does not cover.Notes on the template:
- User Stories — keep to 3–8 entries. Just enough to establish actors and motivations, not a full specification.
- Expected Behaviors — the heart of the document. Flat lists of plain behavioral statements, grouped by capability. Each group should be independently shippable; if a group bundles unrelated concerns, split it.
- Table of Contents — add only when there are 5 or more capability groups.
- Open Questions — captures uncertainty explicitly rather than burying it as assumptions.
Writing Guidelines
Apply these when writing the PRD:
- Specify behavior, not structure. Describe what the system does from the outside. Don't prescribe class names, file layout, or internal architecture.
- State intent, not mechanism. Say why something matters so downstream implementors can find better approaches.
- Make uncertainty visible. Unresolved decisions go in Open Questions. Don't bury assumptions in behavioral statements.
- Be terse. Every unnecessary word is a potential error amplified downstream. Cut adjectives, qualifiers, and hedges that don't add meaning.
- Each capability group should be independently shippable. If a group bundles unrelated concerns, split it.
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
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.

