product-specs-writer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Product Specs Writer

产品规格文档撰写工具

Comprehensive product documentation expertise — from strategic PRDs to implementation-ready specifications that engineering teams can actually build from.
全面的产品文档专业能力——从战略性PRD到工程团队可直接据此开发的可落地实现规格。

Philosophy

理念

Great product specs bridge the gap between vision and execution. They're not bureaucratic documents; they're communication tools that align teams and prevent expensive misunderstandings.
The best product specifications:
  1. Start with the why — Context before requirements
  2. Are testable — Every requirement has clear acceptance criteria
  3. Anticipate questions — Edge cases, errors, and constraints documented upfront
  4. Evolve with the product — Living documents, not static artifacts
  5. Respect the reader — Engineers, designers, and stakeholders can all understand them
优秀的产品规格是愿景与执行之间的桥梁。它们不是官僚化的文档,而是沟通工具,能让团队对齐方向,避免代价高昂的误解。
最佳产品规格具备以下特点:
  1. 从“为什么”开始 —— 先讲背景,再提需求
  2. 可测试 —— 每项需求都有明确的验收标准
  3. 预判问题 —— 提前记录边缘案例、错误情况和约束条件
  4. 随产品演进 —— 是活文档,而非静态产物
  5. 尊重读者 —— 工程师、设计师和利益相关者都能理解

How This Skill Works

该技能的工作方式

When invoked, apply the guidelines in
rules/
organized by:
  • prd-*
    — Product Requirements Documents, vision, scope
  • stories-*
    — User stories, personas, jobs-to-be-done
  • criteria-*
    — Acceptance criteria, definition of done
  • technical-*
    — Technical specifications, architecture decisions
  • api-*
    — API specifications, contracts, versioning
  • edge-*
    — Edge cases, error handling, failure modes
  • design-*
    — Design handoff, component specs, interactions
  • rollout-*
    — Feature flags, rollout plans, experiments
  • metrics-*
    — Success metrics, KPIs, measurement plans
  • maintenance-*
    — Documentation lifecycle, versioning, deprecation
调用时,应用
rules/
目录下按以下类别组织的指南:
  • prd-*
    —— 产品需求文档(PRD)、愿景、范围
  • stories-*
    —— 用户故事、角色、待办任务
  • criteria-*
    —— 验收标准、完成定义
  • technical-*
    —— 技术规格、架构决策
  • api-*
    —— API规格、契约、版本控制
  • edge-*
    —— 边缘案例、错误处理、故障模式
  • design-*
    —— 设计交接、组件规格、交互说明
  • rollout-*
    —— 功能标志、上线计划、实验方案
  • metrics-*
    —— 成功指标、KPI、测量计划
  • maintenance-*
    —— 文档生命周期、版本控制、废弃策略

Core Frameworks

核心框架

Specification Hierarchy

规格层级

┌─────────────────────────────────────────┐
│              VISION                     │  ← Why are we building this?
│         (Problem & Opportunity)         │
├─────────────────────────────────────────┤
│               PRD                       │  ← What are we building?
│      (Requirements & Constraints)       │
├─────────────────────────────────────────┤
│          USER STORIES                   │  ← Who benefits and how?
│       (Personas & Journeys)             │
├─────────────────────────────────────────┤
│      ACCEPTANCE CRITERIA                │  ← How do we know it's done?
│      (Testable Conditions)              │
├─────────────────────────────────────────┤
│      TECHNICAL SPECS                    │  ← How do we build it?
│   (Architecture & Implementation)       │
└─────────────────────────────────────────┘
┌─────────────────────────────────────────┐
│              VISION                     │  ← 我们为什么要做这个?
│         (Problem & Opportunity)         │
├─────────────────────────────────────────┤
│               PRD                       │  ← 我们要做什么?
│      (Requirements & Constraints)       │
├─────────────────────────────────────────┤
│          USER STORIES                   │  ← 谁能受益,如何受益?
│       (Personas & Journeys)             │
├─────────────────────────────────────────┤
│      ACCEPTANCE CRITERIA                │  ← 我们怎么知道它完成了?
│      (Testable Conditions)              │
├─────────────────────────────────────────┤
│      TECHNICAL SPECS                    │  ← 我们如何实现它?
│   (Architecture & Implementation)       │
└─────────────────────────────────────────┘

Document Types by Audience

按受众划分的文档类型

DocumentPrimary AudiencePurposeUpdate Frequency
PRDLeadership, PM, DesignAlign on what and whyPer milestone
User StoriesEngineering, QADefine scope and valuePer sprint
Acceptance CriteriaQA, EngineeringDefine donePer story
Technical SpecEngineeringDefine howPer feature
API SpecFrontend, External devsDefine contractsPer version
Design HandoffEngineeringDefine UI/UXPer component
Rollout PlanEngineering, OpsDefine deploymentPer release
Success MetricsLeadership, DataDefine successPer quarter
文档类型主要受众目的更新频率
PRD管理层、产品经理、设计师对齐目标与初衷每个里程碑更新一次
User Stories工程师、QA定义范围与价值每个迭代更新一次
Acceptance CriteriaQA、工程师定义完成标准每个故事更新一次
Technical Spec工程师定义实现方式每个功能更新一次
API Spec前端开发、外部开发者定义契约每个版本更新一次
Design Handoff工程师定义UI/UX每个组件更新一次
Rollout Plan工程师、运维定义部署方案每个版本更新一次
Success Metrics管理层、数据团队定义成功标准每季度更新一次

The INVEST Criteria (User Stories)

INVEST 标准(用户故事)

CriteriaQuestionExample
IndependentCan it be built alone?No dependencies on unfinished stories
NegotiableIs scope flexible?Details can be refined with engineering
ValuableDoes user benefit?Clear value proposition stated
EstimableCan we size it?Enough detail to estimate effort
SmallFits in a sprint?Can be completed in 1-5 days
TestableCan we verify it?Has clear acceptance criteria
标准问题示例
Independent(独立)它可以单独开发吗?不依赖未完成的故事
Negotiable(可协商)范围是否灵活?细节可与工程师一起完善
Valuable(有价值)用户能从中受益吗?明确陈述价值主张
Estimable(可估算)我们能评估工作量吗?有足够细节来估算 effort
Small(体量小)能在一个迭代内完成吗?可在1-5天内完成
Testable(可测试)我们能验证它吗?有明确的验收标准

Specification Completeness Checklist

规格完整性检查清单

PRD Completeness:
├── Problem Statement         □ Clearly defined user pain
├── Success Metrics          □ Measurable outcomes defined
├── User Stories             □ All personas covered
├── Scope                    □ In-scope and out-of-scope clear
├── Constraints              □ Technical and business limits stated
├── Dependencies             □ External dependencies identified
├── Risks                    □ Known risks and mitigations
├── Timeline                 □ Milestones and deadlines set
└── Open Questions           □ Unknowns explicitly listed

Technical Spec Completeness:
├── Architecture             □ System design documented
├── Data Model               □ Schema and relationships defined
├── API Contracts            □ Endpoints and payloads specified
├── Edge Cases               □ Failure modes documented
├── Security                 □ Auth, encryption, compliance covered
├── Performance              □ SLAs and benchmarks defined
├── Monitoring               □ Observability strategy clear
└── Rollback Plan            □ Recovery procedures documented
PRD Completeness:
├── Problem Statement         □ 清晰定义用户痛点
├── Success Metrics          □ 定义可衡量的结果
├── User Stories             □ 覆盖所有用户角色
├── Scope                    □ 明确界定范围内与范围外内容
├── Constraints              □ 说明技术与业务限制
├── Dependencies             □ 识别外部依赖
├── Risks                    □ 记录已知风险与缓解措施
├── Timeline                 □ 设置里程碑与截止日期
└── Open Questions           □ 明确列出未知事项

Technical Spec Completeness:
├── Architecture             □ 记录系统设计
├── Data Model               □ 定义Schema与关系
├── API Contracts            □ 指定端点与负载
├── Edge Cases               □ 记录故障模式
├── Security                 □ 涵盖认证、加密、合规
├── Performance              □ 定义SLA与基准
├── Monitoring               □ 明确可观测性策略
└── Rollback Plan            □ 记录恢复流程

Error Handling Taxonomy

错误处理分类

Error TypeExampleDocumentation Required
ValidationInvalid email formatError message, field highlighting
AuthorizationUser lacks permissionError state, escalation path
ResourceItem not foundEmpty state, recovery action
SystemDatabase timeoutRetry strategy, user feedback
Business LogicInsufficient balanceError explanation, next steps
ExternalThird-party API downFallback behavior, degraded mode
错误类型示例所需文档内容
Validation(验证错误)无效邮箱格式错误提示、字段高亮
Authorization(授权错误)用户无权限错误状态、升级路径
Resource(资源错误)项目未找到空状态、恢复操作
System(系统错误)数据库超时重试策略、用户反馈
Business Logic(业务逻辑错误)余额不足错误说明、后续步骤
External(外部错误)第三方API故障降级策略、退化模式

Specification Templates

规格模板

Minimal PRD Structure

极简PRD结构

markdown
undefined
markdown
undefined

Feature: [Name]

Feature: [Name]

Problem

Problem

What user problem are we solving?
What user problem are we solving?

Solution

Solution

High-level approach (1-2 paragraphs)
High-level approach (1-2 paragraphs)

Success Metrics

Success Metrics

  • Primary: [Metric] from X to Y
  • Secondary: [Metric] from X to Y
  • Primary: [Metric] from X to Y
  • Secondary: [Metric] from X to Y

User Stories

User Stories

  • As a [user], I want [goal] so that [benefit]
  • As a [user], I want [goal] so that [benefit]

Scope

Scope

In scope: [List] Out of scope: [List]
In scope: [List] Out of scope: [List]

Open Questions

Open Questions

  • Question 1
  • Question 2
undefined
  • Question 1
  • Question 2
undefined

User Story Template

用户故事模板

markdown
**As a** [persona/user type]
**I want** [capability/action]
**So that** [benefit/value]

**Acceptance Criteria:**
- Given [context], when [action], then [result]
- Given [context], when [action], then [result]

**Edge Cases:**
- What if [edge case]? Then [behavior]

**Out of Scope:**
- [Explicit exclusion]
markdown
**As a** [persona/user type]
**I want** [capability/action]
**So that** [benefit/value]

**Acceptance Criteria:**
- Given [context], when [action], then [result]
- Given [context], when [action], then [result]

**Edge Cases:**
- What if [edge case]? Then [behavior]

**Out of Scope:**
- [Explicit exclusion]

Anti-Patterns

反模式

  • Spec by committee — Over-collaboration produces vague documents
  • Premature optimization — Specifying implementation details too early
  • Missing the why — Requirements without context for decisions
  • Kitchen sink scope — Trying to solve everything in one release
  • One-way documentation — Specs that don't get updated as learnings emerge
  • Assumption blindness — Not documenting implicit assumptions
  • Designer/Engineer telephone — No direct communication, only docs
  • Success theater — Metrics chosen because they're easy, not meaningful
  • Spec as contract — Treating specs as unchangeable legal documents
  • Documentation debt — Outdated specs worse than no specs
  • 委员会式撰写 —— 过度协作导致文档模糊不清
  • 过早优化 —— 过早指定实现细节
  • 缺失“为什么” —— 需求没有决策背景
  • 大而全的范围 —— 试图在一个版本中解决所有问题
  • 单向文档 —— 文档不会随着新认知更新
  • 假设盲区 —— 不记录隐含假设
  • 设计师/工程师传话 —— 没有直接沟通,仅依赖文档
  • 成功假象 —— 选择容易衡量而非有意义的指标
  • 文档即契约 —— 将规格视为不可更改的法律文件
  • 文档债务 —— 过时的文档比没有文档更糟