
prd-writing
Step-by-step workflow for writing Product Requirements Documents. Use when creating PRDs, documenting features, writing specifications, or planning new products. Triggers on "write PRD", "create PRD", "document requirements", "feature spec", or "product requirements".
- Installs
- 662
- Last 24h
- +9
- Trending rank
- #9249
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/asyrafhussin/agent-skills --skill prd-writing- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads prd-writing automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
PRD Writing
Step-by-step workflow for writing clear, actionable Product Requirements Documents. Follow the 6-step process below, using the 25 rules across 7 categories as supporting knowledge.
Metadata
- Version: 1.0.0
- Rule Count: 25 rules across 7 categories
- License: MIT
Workflow
Follow these steps in order. Skip a step only if the user has already provided that information. Do NOT start drafting before completing discovery.
Step 1: Assess Project State
Determine what you're working with:
- Existing project — code exists → explore the codebase first (models, routes, controllers, auth, patterns). See
disc-codebase-exploration. - Empty/greenfield project — no code yet → ask the user what they want to build first. Brainstorm together until the product idea and core features are clear, then ask about planned stack, architecture decisions, and constraints.
Step 2: Ask Clarifying Questions
Ask 3-5 targeted questions to fill knowledge gaps. Use lettered options (A/B/C) when there are clear choices, and open-ended questions when you need free-text answers. Focus on:
- Problem — What problem are we solving? Why now?
- Users — Who are the target users?
- Scope — What should it NOT do?
- Success — How do we know it's done?
- Constraints — Timeline, budget, team size?
Mark unknowns as TBD, not assumptions. See disc-clarifying-questions.
Step 3: Draft the PRD
Use the template from struct-prd-template and fill in all 12 sections:
- Executive Summary — 1 paragraph: problem, solution, impact
- Problem Statement — what, who, evidence, why now
- Goals & Success Metrics — 3-5 measurable KPIs
- User Personas — primary and secondary with roles/goals/pain points
- User Stories & Acceptance Criteria — "As a / I want / So that" with checkboxes
- Functional Requirements — numbered FR-1, FR-2, etc.
- Non-Functional Requirements — performance, security, accessibility with specific numbers
- Technical Specifications — data model, auth, routes, integrations
- Out of Scope — what we're NOT building and why
- Non-Goals — what we're NOT optimizing for
- Dependencies & Risks — blockers with owners and mitigations
- Open Questions — unresolved items with owners and due dates
Key rules to follow while drafting:
- Start with the problem, not the solution (
disc-problem-first) - Replace vague language with numbers (
metric-no-vague-language) - Every requirement must be testable (
quality-acceptance-criteria) - Use Given/When/Then for complex acceptance criteria
Step 4: Present for Review
Show the draft to the user. Ask specifically:
- Does the problem statement match your understanding?
- Are user stories missing any workflows?
- Are the scope boundaries correct?
- Any open questions I should resolve?
Step 5: Revise Based on Feedback
Incorporate feedback, resolve open questions, and update the PRD. Add a review history entry if the PRD will be shared with a team.
Step 6: Save the PRD
Save to docs/prd/{feature-name}.md using kebab-case naming. Include frontmatter:
---
title: Feature Name
status: draft
author: Author Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
Rules Reference
The 25 rules below provide detailed guidance for each step. Read them when you need deeper context.
1. Discovery (CRITICAL)
disc-problem-first- Start with the problem, not the solutiondisc-clarifying-questions- Ask clarifying questions before writingdisc-codebase-exploration- Explore the codebase before draftingdisc-stakeholder-alignment- Align with stakeholders on goals and constraints
2. Structure (CRITICAL)
struct-standard-sections- Use standardized PRD sectionsstruct-executive-summary- Write a concise executive summarystruct-prd-template- Provide a ready-to-use PRD templatestruct-output-location- Save PRDs to a consistent file locationstruct-single-source-of-truth- PRD is the definitive reference for a feature
3. Requirements (HIGH)
req-user-personas- Define target user personasreq-user-stories- Write user stories with acceptance criteriareq-functional- Define specific functional requirementsreq-non-functional- Define non-functional requirements
4. Scope (HIGH)
scope-out-of-scope- Explicitly define what is out of scopescope-non-goals- List non-goals to protect timelinescope-dependencies- Identify dependencies and blockers
5. Metrics (HIGH)
metric-measurable-success- Define measurable success criteriametric-no-vague-language- Replace vague terms with quantifiable benchmarksmetric-kpis- Define 3-5 key performance indicators
6. Technical (MEDIUM)
tech-data-model- Document the data model and relationshipstech-auth-model- Define authentication and authorizationtech-api-routes- Document API and route structuretech-integration-points- Identify third-party integrations
7. Quality (MEDIUM)
quality-acceptance-criteria- Write testable acceptance criteriaquality-iterative-review- Iterate with feedback before finalizing
References
- Lenny's Newsletter - How to Write a Great PRD
- Silicon Valley Product Group - Product Discovery
- Shape Up - Basecamp
- Writing Great Specifications - Kamil Nicieja
- Atlassian - Product Requirements Document
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
FAQ
What does the prd-writing skill do?
Step-by-step workflow for writing Product Requirements Documents. Use when creating PRDs, documenting features, writing specifications, or planning new products. Triggers on "write PRD", "create PRD", "document requirements", "feature spec", or "product requirements".
How do I install prd-writing?
Run npx skills add https://github.com/asyrafhussin/agent-skills --skill prd-writing in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/prd-writing/ (personal) or .claude/skills/prd-writing/ (project).
Which AI agents can use prd-writing?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is prd-writing safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains prd-writing?
It is published by asyrafhussin in asyrafhussin/agent-skills. It has 662 recorded installs.
More from asyrafhussin/agent-skills
php-best-practices
asyrafhussin/agent-skills
PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices".
react-vite-best-practices
asyrafhussin/agent-skills
React and Vite performance optimization guidelines. Use when writing, reviewing, or optimizing React components built with Vite. Triggers on tasks involving Vite configuration, build optimization, code splitting, lazy loading, HMR, bundle size, or React performance.
laravel-best-practices
asyrafhussin/agent-skills
Laravel 13 conventions and best practices. Use when creating controllers, models, migrations, validation, services, or structuring Laravel applications. Triggers on tasks involving Laravel architecture, Eloquent, database, API development, or PHP patterns.
laravel-inertia-react
asyrafhussin/agent-skills
Laravel + Inertia.js + React integration patterns. Use when building Inertia page components, handling forms with useForm, managing shared data, or implementing persistent layouts. Triggers on tasks involving Inertia.js, page props, form handling, or Laravel React integration.
clean-code-principles
asyrafhussin/agent-skills
SOLID principles, design patterns, DRY, KISS, and clean code fundamentals. Use when reviewing architecture, checking code quality, refactoring, or discussing design decisions. Triggers on "review architecture", "check code quality", "SOLID principles", "design patterns", or "clean code".
typescript-react-patterns
asyrafhussin/agent-skills
TypeScript best practices for React development. Use when writing typed React components, hooks, events, refs, or generic components. Triggers on tasks involving TypeScript errors, type definitions, props typing, or type-safe React patterns.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.