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".
- License 许可
- MIT
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- prd-writing
- license
- MIT
- metadata
- { "author": "agent-skills", "version": "1.0.0" }
- description
- 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".
02 资源文件 29
- 参考文档AGENTS.md68.1 KB
- 参考文档README.md1.8 KB
- 参考文档rules/_sections.md2.5 KB
- 参考文档rules/_template.md889 B
- 参考文档rules/disc-clarifying-questions.md3.7 KB
- 参考文档rules/disc-codebase-exploration.md3.5 KB
- 参考文档rules/disc-problem-first.md2.7 KB
- 参考文档rules/disc-stakeholder-alignment.md2.6 KB
- 参考文档rules/metric-kpis.md2.7 KB
- 参考文档rules/metric-measurable-success.md2.9 KB
- 参考文档rules/metric-no-vague-language.md2.5 KB
- 参考文档rules/quality-acceptance-criteria.md2.9 KB
- 参考文档rules/quality-iterative-review.md2.6 KB
- 参考文档rules/req-functional.md2.8 KB
- 参考文档rules/req-non-functional.md2.7 KB
- 参考文档rules/req-user-personas.md2.5 KB
- 参考文档rules/req-user-stories.md3.0 KB
- 参考文档rules/scope-dependencies.md2.7 KB
- 参考文档rules/scope-non-goals.md2.2 KB
- 参考文档rules/scope-out-of-scope.md2.3 KB
- 参考文档rules/struct-executive-summary.md2.4 KB
- 参考文档rules/struct-output-location.md2.3 KB
- 参考文档rules/struct-prd-template.md4.2 KB
- 参考文档rules/struct-single-source-of-truth.md2.4 KB
- 参考文档rules/struct-standard-sections.md2.7 KB
- 参考文档rules/tech-api-routes.md2.9 KB
- 参考文档rules/tech-auth-model.md2.6 KB
- 参考文档rules/tech-data-model.md2.7 KB
- 参考文档rules/tech-integration-points.md2.6 KB
03 SKILL.md 正文
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
04 同仓库更多 Skills
wordpress-pro
Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security hardening (nonces, sanitization, escaping, capability checks), and optimizes performance through caching and query tuning. Use when building WordPress themes, writing plugins, customizing Gutenberg blocks, extending WooCommerce, working with ACF, using the WordPress REST API, applying hooks and filters, or improving WordPress performance and security.
websocket-engineer
Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-design-guidelines
UI/UX best practices and accessibility audit. Use when reviewing UI code, checking accessibility, running accessibility audits, auditing forms, or ensuring web interface best practices. Triggers on "audit accessibility", "check WCAG", "review UI", "check accessibility", "audit design", "review UX", or "check best practices".
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
vue-expert
Builds Vue 3 components with Composition API patterns, configures Nuxt 3 SSR/SSG projects, sets up Pinia stores, scaffolds Quasar/Capacitor mobile apps, implements PWA features, and optimises Vite builds. Use when creating Vue 3 applications with Composition API, writing reusable composables, managing state with Pinia, building hybrid mobile apps with Quasar or Capacitor, configuring service workers, or tuning Vite configuration and TypeScript integration.