write-prd
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePRD — Product Requirements Document
PRD — 产品需求文档
Translate product vision and research into clear, actionable engineering specifications. Produces output files following an 8-section structure.
PRD-[product-name].mdOutput file naming: (e.g., )
PRD-[product-name].mdPRD-sso-invite-flow.md将产品愿景和研究成果转化为清晰、可落地的工程规范。生成遵循8部分结构的输出文件。
PRD-[product-name].md输出文件命名规则: (例如:)
PRD-[product-name].mdPRD-sso-invite-flow.mdArgument Resolution
参数解析
python
PRODUCT = "$ARGUMENTS" # Product name or feature, e.g., "SSO invite flow"python
PRODUCT = "$ARGUMENTS" # Product name or feature, e.g., "SSO invite flow"STEP 0: Scope Clarification
步骤0:范围澄清
python
AskUserQuestion(
questions=[{
"question": "What type of PRD?",
"header": "PRD Scope",
"options": [
{"label": "Full PRD (Recommended)", "description": "All 8 sections with research, stories, and release plan", "markdown": "```\nFull PRD (8 sections)\n─────────────────────\n1. Executive Summary\n2. Problem Statement\n3. Objectives & KPIs\n4. User Stories (INVEST)\n5. Functional Requirements\n6. Non-Functional Requirements\n7. Release Plan\n8. Appendices\n```"},
{"label": "Lightweight spec", "description": "Summary, objectives, user stories only", "markdown": "```\nLightweight Spec\n────────────────\n1. Summary (1 paragraph)\n2. Objectives (3-5 bullets)\n3. User Stories\n\nBest for: internal tools,\nsmall features, quick specs\n```"},
{"label": "User stories only", "description": "INVEST stories with acceptance criteria", "markdown": "```\nUser Stories Only\n─────────────────\nAs a [role], I want [goal]\nso that [benefit].\n\nAcceptance Criteria:\nGiven... When... Then...\n\nINVEST: Independent,\nNegotiable, Valuable,\nEstimable, Small, Testable\n```"},
{"label": "Update existing PRD", "description": "I have a PRD file to iterate on", "markdown": "```\nUpdate Existing PRD\n───────────────────\n→ Read current PRD file\n→ Identify gaps/changes\n→ Preserve approved sections\n→ Track change history\n```"}
],
"multiSelect": false
}]
)python
AskUserQuestion(
questions=[{
"question": "What type of PRD?",
"header": "PRD Scope",
"options": [
{"label": "Full PRD (Recommended)", "description": "All 8 sections with research, stories, and release plan", "markdown": "```\nFull PRD (8 sections)\n─────────────────────\n1. Executive Summary\n2. Problem Statement\n3. Objectives & KPIs\n4. User Stories (INVEST)\n5. Functional Requirements\n6. Non-Functional Requirements\n7. Release Plan\n8. Appendices\n```"},
{"label": "Lightweight spec", "description": "Summary, objectives, user stories only", "markdown": "```\nLightweight Spec\n────────────────\n1. Summary (1 paragraph)\n2. Objectives (3-5 bullets)\n3. User Stories\n\nBest for: internal tools,\nsmall features, quick specs\n```"},
{"label": "User stories only", "description": "INVEST stories with acceptance criteria", "markdown": "```\nUser Stories Only\n─────────────────\nAs a [role], I want [goal]\nso that [benefit].\n\nAcceptance Criteria:\nGiven... When... Then...\n\nINVEST: Independent,\nNegotiable, Valuable,\nEstimable, Small, Testable\n```"},
{"label": "Update existing PRD", "description": "I have a PRD file to iterate on", "markdown": "```\nUpdate Existing PRD\n───────────────────\n→ Read current PRD file\n→ Identify gaps/changes\n→ Preserve approved sections\n→ Track change history\n```"}
],
"multiSelect": false
}]
)Task Management
任务管理
python
TaskCreate(
subject="Write PRD: {PRODUCT}",
description="8-section PRD with user stories and acceptance criteria",
activeForm="Writing PRD for {PRODUCT}"
)python
TaskCreate(
subject="Write PRD: {PRODUCT}",
description="8-section PRD with user stories and acceptance criteria",
activeForm="Writing PRD for {PRODUCT}"
)Memory Integration
记忆集成
python
undefinedpython
undefinedSearch for prior PRDs and product decisions
Search for prior PRDs and product decisions
mcp__memory__search_nodes(query="{PRODUCT} PRD requirements")
mcp__memory__search_nodes(query="{PRODUCT} PRD requirements")
After PRD is written, store key decisions
After PRD is written, store key decisions
mcp__memory__create_entities(entities=[{
"name": "PRD-{product-slug}",
"entityType": "document",
"observations": ["PRD written for {PRODUCT}", "Key objectives: ..."]
}])
undefinedmcp__memory__create_entities(entities=[{
"name": "PRD-{product-slug}",
"entityType": "document",
"observations": ["PRD written for {PRODUCT}", "Key objectives: ..."]
}])
undefinedThe 8-Section PRD Template
8-section PRD模板
Load for the full template with all 8 sections (Summary, Contacts, Background, Objective, Market Segments, Value Propositions, Solution, Release), priority levels, and NFR categories.
Read("${CLAUDE_SKILL_DIR}/references/prd-template.md")加载获取包含全部8个章节(摘要、联系人、背景、目标、细分市场、价值主张、解决方案、发布)、优先级等级以及非功能需求(NFR)类别的完整模板。
Read("${CLAUDE_SKILL_DIR}/references/prd-template.md")User Stories & Acceptance Criteria
用户故事与验收标准
Load for INVEST criteria, story format, Gherkin acceptance criteria, and Definition of Ready/Done.
Read("${CLAUDE_SKILL_DIR}/references/user-stories-guide.md")加载获取INVEST准则、故事格式、Gherkin验收标准以及就绪/完成定义(Definition of Ready/Done)。
Read("${CLAUDE_SKILL_DIR}/references/user-stories-guide.md")Value Proposition Canvas
价值主张画布
Load for the canvas template and fit check process. Every Value Map item must correspond to a Job, Pain, or Gain.
Read("${CLAUDE_SKILL_DIR}/references/value-prop-canvas-guide.md")加载获取画布模板和适配检查流程。每个价值映射项必须对应一个用户任务、痛点或收益。
Read("${CLAUDE_SKILL_DIR}/references/value-prop-canvas-guide.md")Go/No-Go Gate Criteria
上线/不上线评审门准则
Load from rules: for stage gate criteria and scoring thresholds (Go >= 7.0 | Conditional 5.0-6.9 | No-Go < 5.0).
Read("${CLAUDE_SKILL_DIR}/rules/strategy-go-no-go.md")从规则文件加载:获取阶段评审门准则和评分阈值(上线 ≥7.0 | 有条件上线 5.0-6.9 | 不上线 <5.0)。
Read("${CLAUDE_SKILL_DIR}/rules/strategy-go-no-go.md")Rules (Load On-Demand)
规则(按需加载)
- research-requirements-prd.md — INVEST user stories, PRD template, priority levels, DoR/DoD
- strategy-value-prop.md — Value proposition canvas, JTBD framework, fit assessment
- strategy-go-no-go.md — Stage gate criteria, scoring, build/buy/partner decision matrix
- research-requirements-prd.md — INVEST用户故事、PRD模板、优先级等级、DoR/DoD
- strategy-value-prop.md — 价值主张画布、JTBD框架、适配评估
- strategy-go-no-go.md — 阶段评审门准则、评分、自研/采购/合作决策矩阵
References
参考资料
- output-templates.md — Structured JSON output schemas for PRD, business case, and strategy artifacts
- value-prop-canvas-guide.md — Detailed value proposition canvas facilitation guide
- output-templates.md — PRD、商业案例和战略工件的结构化JSON输出 schema
- value-prop-canvas-guide.md — 详细的价值主张画布引导指南
Output
输出
After generating the PRD, write it to disk:
python
Write(f"PRD-{product_slug}.md", prd_content)
TaskUpdate(status="completed")生成PRD后,将其写入磁盘:
python
Write(f"PRD-{product_slug}.md", prd_content)
TaskUpdate(status="completed")Chain: Next Steps
流程链:后续步骤
After PRD is approved, chain into implementation:
/ork:implement PRD-{product-slug}.mdPRD获批后,进入实施流程链:
/ork:implement PRD-{product-slug}.mdRelated Skills
相关技能
- — Build user understanding (personas, journey maps, interviews) before writing the PRD
ork:user-research - — Execute the implementation plan from the PRD
ork:implement - — Explore solution alternatives before committing to PRD scope
ork:brainstorm - — Rate PRD quality and completeness
ork:assess
Version: 2.0.0
- — 编写PRD前构建用户认知(用户画像、旅程地图、访谈)
ork:user-research - — 根据PRD执行实施计划
ork:implement - — 在确定PRD范围前探索解决方案的替代方案
ork:brainstorm - — 评估PRD的质量和完整性
ork:assess
版本: 2.0.0