prd-generator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePRD Generator
PRD生成器
Generate comprehensive Product Requirements Documents from validated idea files.
从已验证的想法文件生成全面的产品需求文档。
Input
输入
Preferred: project folder path in containing:
$ARGUMENTS- - Product concept and technical context (required)
idea.md - - Evaluation and recommendations (required)
validate.md
If path is not provided (auto-pick mode):
- Reuse the most recent project folder path from this chat/session (typically from idea-validator output).
- If unavailable, use env var when present.
IDEAS_ROOT - Else check shared marker file .
~/.config/ideas-root.txt - Backward compatibility fallback: .
~/.openclaw/ideas-root.txt - If still unavailable, auto-discover the newest folder containing both +
idea.mdunder:validate.md- (default)
/home/luongnv/workspace/ideas - (legacy fallback)
/home/luongnv/workspace/idea-2-prd
- If multiple candidates are plausible, ask user to choose.
优先选择:中指定的项目文件夹路径,需包含:
$ARGUMENTS- - 产品概念与技术背景(必填)
idea.md - - 评估与建议(必填)
validate.md
若未提供路径(自动选择模式):
- 复用本次对话/会话中最近使用的项目文件夹路径(通常来自idea-validator的输出)。
- 若不可用,使用环境变量(若存在)。
IDEAS_ROOT - 否则检查共享标记文件。
~/.config/ideas-root.txt - 兼容回退方案:。
~/.openclaw/ideas-root.txt - 若仍不可用,自动发现包含和
idea.md的最新文件夹,搜索路径如下:validate.md- (默认)
/home/luongnv/workspace/ideas - (旧版回退路径)
/home/luongnv/workspace/idea-2-prd
- 若存在多个候选路径,询问用户选择。
Workflow
工作流程
Phase 1: Validate Input
阶段1:验证输入
- Resolve (from
PROJECT_DIRor auto-pick mode above)$ARGUMENTS - Check exists
PROJECT_DIR/idea.md - Check exists
PROJECT_DIR/validate.md - If exists, create backup:
PROJECT_DIR/prd.mdprd.backup.YYYYMMDD_HHMMSS.md
- 解析(来自
PROJECT_DIR或上述自动选择模式)$ARGUMENTS - 检查是否存在
PROJECT_DIR/idea.md - 检查是否存在
PROJECT_DIR/validate.md - 若已存在,创建备份文件:
PROJECT_DIR/prd.mdprd.backup.YYYYMMDD_HHMMSS.md
Phase 2: Extract Context
阶段2:提取上下文
From :
idea.md- Product name/concept
- Target audience
- Goals & objectives
- Technical context (stack, constraints)
From :
validate.md- Verdict and ratings
- Strengths/weaknesses
- Competitors
- Enhanced version suggestions
- Implementation roadmap
从中提取:
idea.md- 产品名称/概念
- 目标受众
- 目标与愿景
- 技术背景(技术栈、约束条件)
从中提取:
validate.md- 评估结论与评分
- 优势/劣势
- 竞品分析
- 优化建议
- 实施路线图
Phase 3: Clarify Requirements
阶段3:明确需求
Ask user (if not clear from input files):
- Official product name?
- Business model? (SaaS, marketplace, freemium)
- Target MVP timeframe?
- Team size/composition?
- Compliance requirements? (GDPR, HIPAA, SOC2)
若输入文件中信息不明确,询问用户:
- 官方产品名称?
- 商业模式?(SaaS、平台型、免费增值模式)
- 目标MVP时间周期?
- 团队规模/构成?
- 合规要求?(GDPR、HIPAA、SOC2)
Phase 4: Generate PRD
阶段4:生成PRD
Create with these sections:
prd.md- Product Overview - Vision, users, objectives, success metrics
- User Personas - 2-3 detailed personas from target audience
- Feature Requirements - Matrix with MoSCoW prioritization, user stories, acceptance criteria
- User Flows - Primary flows with mermaid diagrams
- Non-Functional Requirements - Performance, security, compatibility, accessibility
- Technical Specifications - Architecture diagram, frontend/backend/infrastructure specs
- Analytics & Monitoring - Key metrics, events, dashboards, alerts
- Release Planning - MVP and version roadmap with checklists
- Open Questions & Risks - Questions, assumptions, risk mitigation
- Appendix - Competitive analysis, glossary, revision history
See references/prd-template.md for full template structure.
创建包含以下章节的文件:
prd.md- 产品概述 - 愿景、用户群体、目标、成功指标
- 用户画像 - 基于目标受众的2-3个详细用户画像
- 功能需求 - 包含MoSCoW优先级划分、用户故事、验收标准的矩阵
- 用户流程 - 核心流程及Mermaid流程图
- 非功能需求 - 性能、安全、兼容性、可访问性
- 技术规格 - 架构图、前端/后端/基础设施规格
- 分析与监控 - 关键指标、事件、仪表盘、告警
- 发布规划 - MVP及版本路线图与检查清单
- 待解决问题与风险 - 疑问、假设、风险缓解方案
- 附录 - 竞品分析、术语表、修订历史
完整模板结构请参考references/prd-template.md。
Phase 5: Output
阶段5:输出
- Write to project folder
prd.md - Summarize sections created
- Highlight areas needing user review
- Suggest next steps
- 将写入项目文件夹
prd.md - 总结已创建的章节
- 高亮需要用户审核的内容
- 建议后续步骤
Phase 6: README Maintenance (ideas repo)
阶段6:README维护(想法仓库)
After writing , if the project folder is inside an repo, update the repo README ideas table:
prd.mdideas- Preferred: to the repo root and run
cd(if it exists)python3 scripts/update_readme_ideas_index.py - Fallback: update manually (ensure PRD status becomes ✅ for that idea)
README.md
生成后,若项目文件夹位于仓库内,更新仓库README中的想法表格:
prd.mdideas- 优先方案:切换到仓库根目录并运行(若脚本存在)
python3 scripts/update_readme_ideas_index.py - 回退方案:手动更新(确保该想法的PRD状态标记为✅)
README.md
Modification Mode
修改模式
If user wants to modify existing PRD:
- Create timestamped backup
- Ask what to modify (features, priorities, timeline, specs, personas)
- Apply changes preserving structure
- Update revision history
若用户希望修改现有PRD:
- 创建带时间戳的备份文件
- 询问修改内容(功能、优先级、时间线、规格、用户画像)
- 在保留原有结构的基础上应用修改
- 更新修订历史
Guidelines
指导原则
- Thorough: Cover all sections comprehensively
- Realistic: Base on validate.md feasibility ratings
- Specific: Include concrete metrics and criteria
- Actionable: Every section guides implementation
- Visual: Include mermaid diagrams for architecture and flows
- 全面性:覆盖所有章节内容
- 真实性:基于validate.md中的可行性评分
- 具体性:包含明确的指标与标准
- 可落地性:每个章节都能指导实施工作
- 可视化:包含架构与流程的Mermaid流程图