P

PRD Generator - 专业产品需求文档生成器

Officev1.0.0
By user_85194820Updated 2026-10-01prd-generator@user_85194820/prd-generator
Documents

According to AlphaMoat, as of 2026-09, PRD Generator - 专业产品需求文档生成器 has 3,262 downloads and 13 stars — ranked #3,491 of 5,078 AI skills overall, and #254 of 435 in Office.

Installs
154
Downloads
3.3K
Stars
13
Overall Rank
#3,491
Top 69% overall · Top 59% in Office
PlatformInstallsDownloadsStarsComments
SkillHub ↗1543.3K13—

Platforms count differently and update at different times.

What this skill does

Its workflow collects product context and target users, builds a UML use-case model, writes detailed specifications, outlines interaction design and UI rules, and organizes non-functional requirements. It is for new feature requirements and product planning, not polishing a complete existing PRD, code generation, technical architecture, or data-analysis reports. Output is Markdown with ASCII diagrams and field tables; confirm missing requirements with the user rather than inventing product facts or treating example specifications as verified constraints.

Profile published 2026-10-27

What you can do with it

  • Collect requirements and model use cases for a new feature
  • Organize a PRD with a data dictionary and UI specifications

When to use it

  • When the goal is a new product or feature requirements document rather than editing a complete existing document

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Confirm the context, goals, and system scope for a new feature, then outline a PRD.
Create a specification outline from confirmed actors and use cases, marking information that is still missing.

Monthly Trend

Downloads3.3K
01.8K3.5K2026-03 · Downloads 1962026-05 · Downloads 7032026-06 · Downloads 1.0K2026-07 · Downloads 1.7K2026-08 · Downloads 2.2K2026-09 · Downloads 3.3K26-0326-09
Stars13
07142026-03 · Stars 12026-05 · Stars 22026-06 · Stars 62026-07 · Stars 132026-08 · Stars 132026-09 · Stars 1326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-093.3K—13
2026-082.2K+28.0%13
2026-071.7K+68.8%13
2026-061.0K+46.2%6
2026-05703—2
2026-03196—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

6.1 KB · SkillHub v1.0.0
---
name: prd-generator
description: >
  专业级产品需求文档(PRD)生成器。自动生成包含 UML 用例模型、详细用例规格说明、数据字典、交互设计、UI 规范的完整 PRD。
  Use when: 用户提到写PRD、写产品需求文档、产品设计、产品规划、新功能需求分析、用例分析、用例建模时触发。
  NOT for: 已有完整需求文档的润色、代码生成、技术架构设计、数据分析报告。
---

# PRD Generator - 产品需求文档生成器
Show all (180 lines)
> 本技能帮助快速生成专业级产品需求文档(PRD),采用 UML 用例驱动方法论,输出结构完整、可直接用于团队协作的文档。

## 触发条件

当用户提到以下场景时使用本技能:
- 写 PRD、写产品需求文档
- 写产品规格说明书
- 产品设计、产品规划
- 新功能需求分析
- 用例分析、用例建模
- 生成需求文档

## 工作流程

1. **需求收集**:与用户确认产品背景、核心功能、目标用户
2. **用例建模**:识别参与者 → 梳理用例 → 建立关系(Include/Extend)
3. **规格编写**:按模板编写每个用例的详细规格(前置/后置条件、事件流、备选流)
4. **交互设计**:绘制流程图、时序图、状态机
5. **UI 规范**:定义布局、组件、色彩、字体
6. **非功能需求**:明确性能、安全、兼容性要求
7. **文档整合**:生成完整 PRD 文档

## 文档结构

生成的 PRD 包含以下章节:

```
1. 产品概述
   ├── 产品背景
   ├── 产品目标
   └── 系统范围(含组件定义表)

2. UML用例模型
   ├── 系统用例图(ASCII 图形)
   ├── 参与者定义
   ├── 用例列表(编号-名称-参与者)
   └── 用例关系图

3. 详细用例规格说明
   └── 每个用例包含:
       ├── 基本信息(编号/名称/参与者/优先级)
       ├── 前置/后置条件
       ├── 基本事件流
       ├── 备选事件流
       ├── 业务规则
       ├── 数据说明表(字段定义)
       └── 接口说明

4. 详细交互设计
   ├── 页面整体交互流程
   ├── 子流程图(如文件上传)
   ├── 状态机图
   ├── 时序图(数据流转)
   └── 追问/多轮对话流程

5. UI设计规范
   ├── 页面整体布局(ASCII 线框图)
   ├── 核心组件设计(ASCII 示意)
   ├── 色彩规范(色板+色值)
   ├── 字体规范(字号层级)
   ├── 间距规范(基础单位)
   └── 组件状态规范

6. 非功能需求
   ├── 性能需求
   ├── 兼容性需求
   ├── 安全需求
   └── 可靠性需求

7. 附录
   ├── 术语表
   └── 参考资料
```

## 核心模板

### 用例规格模板

```markdown
### UC-XX [用例名称]

| 项目 | 内容 |
|------|------|
| **用例编号** | UC-XX |
| **用例名称** | [用例名称] |
| **参与者** | [参与者列表] |
| **前置条件** | [前置条件描述] |
| **后置条件** | [后置条件描述] |
| **基本事件流** | 1. [步骤1]<br>2. [步骤2]<br>3. [步骤3] |
| **备选事件流** | 1a. [异常1]:系统[处理方式]<br>2a. [异常2]:系统[处理方式] |
| **业务规则** | 1. [规则1]<br>2. [规则2] |

#### 数据说明表

**[表名](table_name)**

| 字段名 | 字段中文名 | 数据类型 | 取值范围 | 是否必填 | 备注说明 |
|--------|------------|----------|----------|----------|----------|
| field_name | 字段中文名 | VARCHAR(100) | 任意字符串 | 是/否 | 字段说明 |

| **优先级** | [高/中/低] |
|------------|----|
```

### 时序图模板

```
┌─────────────────────────────────────────────────────────────────┐
│                          [标题]                                  │
└─────────────────────────────────────────────────────────────────┘

  参与者A                   参与者B                    参与者C
     │                         │                          │
     │  1. [操作描述]          │                          │
     │ ───────────────────────►                          │
     │                         │  2. [处理操作]            │
     │                         │ ───────────►             │
     │                         │                          │
     │  3. [返回结果]          │                          │
     │ ◄───────────────────────                          │
     │                         │                          │
```

### 数据字典模板

```markdown
**字段类型枚举**:
- STRING/VARCHAR: 字符串类型
- INT/BIGINT: 整数类型
- DECIMAL: 小数类型
- BOOLEAN: 布尔类型
- DATETIME: 日期时间类型
- JSON: JSON 对象/数组
- UUID: 唯一标识符

**状态字段枚举**:
- PENDING: 待处理
- PROCESSING: 处理中
- COMPLETED: 已完成
- ERROR/FAILED: 错误/失败
- ACTIVE: 活跃
- INACTIVE: 未激活
```

## 常用意图类型(数据分析类产品)

| 意图类型 | 说明 | 关联图表 |
|----------|------|----------|
| BAR | 柱状图意图 | 柱状图 |
| LINE | 折线图意图 | 折线图 |
| PIE | 饼图意图 | 饼图 |
| SCATTER | 散点图意图 | 散点图 |
| TABLE | 表格展示意图 | 数据表格 |
| FILTER | 数据筛选意图 | 筛选条件 |
| AGREGATE | 聚合查询意图 | 统计结果 |
| CONDITION | 条件判断意图 | 判断结果 |

## 输出格式

生成的 PRD 文档应:
- 使用 Markdown 格式
- 包含完整的 ASCII 图形(用例图、流程图、时序图)
- 数据字段使用表格清晰展示
- 代码块使用 ``` 标记
- 文档头部包含版本、日期、状态信息

## 示例输出

详见 `references/examples.md`

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.