prd-generator by ognjengt/founder-skills
npx skills add https://github.com/ognjengt/founder-skills --skill prd-generator通过有针对性的提问和结构化输出,将一个粗略的产品想法转化为一份全面、可供 AI 使用的产品需求文档(PDF)。
首先检查 $ARGUMENTS 以确定执行模式:
回复:"prd-generator 已加载,请描述您的产品想法"
然后在下一消息中等待用户提供他们的产品概念。
立即进入任务执行阶段(跳过"已加载"消息)。
阻塞性要求——切勿跳过此步骤
在执行任何其他操作之前,使用 Read 工具读取:
./references/prd_template.md此模板定义了您的 PRD 必须遵循的精确结构。在读取此文件之前,请勿继续执行第 2 步。
此技能有意不读取 FOUNDER_CONTEXT.md。 PRD 是独立的文档,应包含所有必要的背景信息。
从用户的初始描述中,提取可用的信息:
使用 AskUserQuestion 工具收集缺失的信息。最多提问 7 个问题,但越少越好——一旦获得足够信息来构建全面的 PRD,就停止提问。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
问题库(优先级顺序):
---|---|---|--- 1 | 主要用户是谁?他们的角色和技术水平如何? | 决定所有用户体验决策和功能复杂性 | 用户画像已清晰描述 2 | 这解决的核心问题是什么?如果用户没有这个会怎样? | 定义价值主张和成功指标 | 问题陈述已明确 3 | 启动时必须具备的 3-5 个功能(P0)是什么? | 防止范围蔓延,聚焦最小可行产品 | 功能已列出并有明确的优先级 4 | 存在哪些技术偏好或约束?(语言、框架、托管) | 决定技术架构部分 | 技术栈已指定 5 | 是否需要任何集成?(认证提供商、API、第三方服务) | 识别依赖项和集成复杂性 | 未提及外部服务或用户说明是独立的 6 | 成功是什么样的?有任何需要跟踪的具体指标吗? | 定义目标和成功指标部分 | 指标或目标已说明 7 | 有任何设计偏好或现有的品牌指南需要遵循吗? | 塑造用户界面/用户体验要求部分 | 设计灵活或已描述
提问策略:
使用 ./references/prd_template.md 中的模板结构,创建完整的 PRD:
步骤 6a:创建输出文件夹
mkdir -p ./prd_outputs/[项目名称]/
使用带空格的产品名称,例如 ./prd_outputs/客户流失预防工具/
步骤 6b:保存 Markdown 文件 将 PRD 内容写入:
./prd_outputs/[项目名称]/[项目名称]_PRD.md
文件名使用 snake_case,例如 churn_prevention_tool_PRD.md
步骤 6c:转换为 PDF 运行:
npx md-to-pdf "./prd_outputs/[项目名称]/[项目名称]_PRD.md"
这将在同一文件夹中创建 [项目名称]_PRD.pdf。
告知用户:
PRD 遵循 ./references/prd_template.md 中的结构。以下是一个简化的示例:
# TaskFlow — 产品需求文档
**版本:** 1.0
**日期:** 2024-01-15
**作者:** PRD 生成器
**状态:** 草案
## 执行摘要
TaskFlow 是一款面向远程工程团队的任务管理工具...
## 问题陈述
**现状:** 团队使用互不关联的工具...
**痛点:**
1. 在不同工具间切换上下文
2. 无法了解团队工作负载
3. 异步沟通存在差距
**影响:** 每位工程师每周损失 5+ 小时...
## 目标与成功指标
| 目标 | 指标 | 目标值 | 测量方式 |
|------|--------|--------|-------------|
| 减少上下文切换 | 工具切换次数/天 | < 10 | 分析工具 |
## 用户画像
### 工程经理
- **角色:** 管理 5-10 名工程师
- **目标:** 了解冲刺进度...
## 功能需求
### FR-001:任务创建
**描述:** 用户可以创建包含标题、描述、分配人和截止日期的任务。
**用户故事:** 作为一名工程师,我希望能够快速创建任务,以便无摩擦地记录工作项。
**验收标准:**
- [ ] 任务创建在 < 500 毫秒内完成
- [ ] 标题字段为必填项,最少 3 个字符
- [ ] 截止日期默认为当前冲刺结束日
**优先级:** P0
...
## AI 实施说明
### 构建顺序
1. 数据库模式(PostgreSQL)
2. API 端点(Express.js)
3. 前端组件(React)
4. 认证集成(Clerk)
### 使用的库
- 使用 Prisma 作为 ORM——类型安全,开发体验好
- 使用 TanStack Query 进行数据获取——处理缓存
- 使用 Tailwind CSS 进行样式设计——实用优先,快速迭代
### 关键实施细节
- 所有日期以 UTC 存储,在显示时转换为用户时区
- 对任务状态更改使用乐观更新
- 对所有用户生成的内容实施软删除
在执行任务前必须使用 Read 工具读取此文件(见步骤 1):
| 文件 | 用途 |
|---|---|
./references/prd_template.md | 包含所有 15 个部分的完整 PRD 结构、格式示例和使用说明 |
重要性: 该模板确保每个 PRD 都遵循一致、全面的结构,以便 AI 编码工具能够解析和实施。跳过模板会导致 PRD 不完整,遗漏关键部分。
./references/prd_template.md./prd_outputs/[项目名称]/npx md-to-pdf 生成 PDF如果任何检查失败 → 在完成前进行修复。
除非用户另行指定,否则使用以下内容:
在 PRD 输出中记录所做的任何假设。
每周安装量
105
代码仓库
GitHub 星标数
99
首次出现
2026年2月9日
安全审计
安装于
opencode99
codex94
gemini-cli92
github-copilot90
kimi-cli87
amp86
Transform a rough product idea into a comprehensive, AI-ready Product Requirements Document (PDF) through targeted questions and structured output.
Check $ARGUMENTS first to determine execution mode:
Respond with: "prd-generator loaded, describe your product idea"
Then wait for the user to provide their product concept in the next message.
Proceed immediately to Task Execution (skip the "loaded" message).
BLOCKING REQUIREMENT — DO NOT SKIP THIS STEP
Before doing ANYTHING else, use the Read tool to read:
./references/prd_template.mdThis template defines the exact structure your PRD must follow. DO NOT PROCEED to Step 2 until you have read this file.
This skill intentionally DOES NOT read FOUNDER_CONTEXT.md. PRDs are standalone documents that should contain all necessary context within them.
From the user's initial description, extract what's available:
Use AskUserQuestion tool to gather missing information. Ask up to 7 questions maximum, but fewer is better — stop as soon as you have enough to build a comprehensive PRD.
Question Bank (priority order):
---|---|---|---
1 | Who is the primary user? What's their role and technical level? | Shapes all UX decisions and feature complexity | User persona is clearly described
2 | What's the core problem this solves? What happens if users don't have this? | Defines the value proposition and success metrics | Problem statement is explicit
3 | What are the 3-5 must-have features for launch (P0)? | Prevents scope creep, focuses MVP | Features are already listed with clear priority
4 | What technology preferences or constraints exist? (Language, framework, hosting) | Determines technical architecture section | Tech stack is specified
5 | Are there any integrations required? (Auth providers, APIs, third-party services) | Identifies dependencies and integration complexity | No external services mentioned or user says standalone
6 | What does success look like? Any specific metrics to track? | Defines goals and success metrics section | Metrics or goals are already stated
7 | Any design preferences or existing brand guidelines to follow? | Shapes UI/UX requirements section | Design is flexible or already described
Question strategy:
Using the template structure from ./references/prd_template.md, create a complete PRD:
Step 6a: Create output folder
mkdir -p ./prd_outputs/[Project Name]/
Use the product name with spaces, e.g., ./prd_outputs/Churn Prevention Tool/
Step 6b: Save markdown file Write the PRD content to:
./prd_outputs/[Project Name]/[project_name]_PRD.md
Use snake_case for the filename, e.g., churn_prevention_tool_PRD.md
Step 6c: Convert to PDF Run:
npx md-to-pdf "./prd_outputs/[Project Name]/[project_name]_PRD.md"
This creates [project_name]_PRD.pdf in the same folder.
Tell the user:
The PRD follows the structure in ./references/prd_template.md. Here's a condensed example:
# TaskFlow — Product Requirements Document
**Version:** 1.0
**Date:** 2024-01-15
**Author:** PRD Generator
**Status:** Draft
## Executive Summary
TaskFlow is a task management tool for remote engineering teams...
## Problem Statement
**Current state:** Teams use disconnected tools...
**Pain points:**
1. Context switching between tools
2. No visibility into team workload
3. Async communication gaps
**Impact:** 5+ hours/week lost per engineer...
## Goals & Success Metrics
| Goal | Metric | Target | Measurement |
|------|--------|--------|-------------|
| Reduce context switching | Tool switches/day | < 10 | Analytics |
## User Personas
### Engineering Manager
- **Role:** Manages 5-10 engineers
- **Goals:** Visibility into sprint progress...
## Functional Requirements
### FR-001: Task Creation
**Description:** Users can create tasks with title, description, assignee, and due date.
**User story:** As an engineer, I want to create tasks quickly so that I capture work items without friction.
**Acceptance criteria:**
- [ ] Task creation completes in < 500ms
- [ ] Title field is required, minimum 3 characters
- [ ] Due date defaults to end of current sprint
**Priority:** P0
...
## Implementation Notes for AI
### Build Order
1. Database schema (PostgreSQL)
2. API endpoints (Express.js)
3. Frontend components (React)
4. Auth integration (Clerk)
### Libraries to Use
- Prisma for ORM — type-safe, great DX
- TanStack Query for data fetching — handles caching
- Tailwind CSS for styling — utility-first, fast iteration
### Critical Implementation Details
- All dates stored as UTC, converted to user timezone on display
- Use optimistic updates for task status changes
- Implement soft deletes for all user-generated content
This file MUST be read using the Read tool before task execution (see Step 1):
| File | Purpose |
|---|---|
./references/prd_template.md | Complete PRD structure with all 15 sections, format examples, and usage notes |
Why this matters: The template ensures every PRD follows a consistent, comprehensive structure that AI coding tools can parse and implement. Skipping the template results in incomplete PRDs that miss critical sections.
./references/prd_template.md before starting./prd_outputs/[Project Name]/npx md-to-pdfIf ANY check fails → fix before completing.
Use these unless the user specifies otherwise:
Document any assumptions made in the PRD output.
Weekly Installs
105
Repository
GitHub Stars
99
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode99
codex94
gemini-cli92
github-copilot90
kimi-cli87
amp86
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
ripgrep (rg) 快速文本搜索工具:比 grep 快 100 倍的正则表达式搜索
104 周安装
Python PDF处理指南:合并、拆分、提取文本与表格,创建PDF文件
104 周安装
Shopify Polaris Web Components 使用指南:为 App Home 构建 UI 的完整教程
104 周安装
每日新闻摘要生成器 - AI自动汇总多源新闻,智能生成Markdown报告
104 周安装
Obsidian CLI 官方命令行工具使用指南:文件管理、搜索、属性与任务操作
104 周安装
流程图创建器 - 在线生成交互式HTML流程图、决策树和工作流可视化工具
104 周安装