by subsy
此技能帮助产品团队为 AI 代理执行创建详细的产品需求文档。它引导用户通过澄清关于功能目标、范围和质量门禁的问题,然后生成包含用户故事和验收标准的结构化 PRD。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 ralph-tui-prd 技能" 开始使用
=== ralph-tui-prd 技能 === 作者: subsy 描述: 此技能帮助产品团队为 AI 代理执行创建详细的产品需求文档。它引导用户通过澄清关于功能目标、范围和质量门禁的问题,然后生成包含用户故事和验收标准的结构化 PRD。 使用方法: 1. 调用技能: "使用 ralph-tui-prd 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 ralph-tui-prd 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
Create detailed Product Requirements Documents optimized for AI agent execution via ralph-tui.
[PRD]...[/PRD] markers for TUI parsingImportant: Do NOT start implementing. Just create the PRD.
Ask questions one set at a time. Each answer should inform your next questions. Focus on:
1. What is the primary goal of this feature?
A. Improve user onboarding experience
B. Increase user retention
C. Reduce support burden
D. Other: [please specify]
2. Who is the target user?
A. New users only
B. Existing users only
C. All users
D. Admin users only
This lets users respond with "1A, 2C" for quick iteration.
Always ask about quality gates - these are project-specific:
What quality commands must pass for each user story?
A. pnpm typecheck && pnpm lint
B. npm run typecheck && npm run lint
C. bun run typecheck && bun run lint
D. Other: [specify your commands]
For UI stories, should we include browser verification?
A. Yes, use dev-browser skill to verify visually
B. No, automated tests are sufficient
After each response, decide whether to:
Typically 2-4 rounds of questions are needed.
Generate the PRD with these sections:
Brief description of the feature and the problem it solves.
Specific, measurable objectives (bullet list).
CRITICAL: List the commands that must pass for every user story.
## Quality Gates
These commands must pass for every user story:
- `pnpm typecheck` - Type checking
- `pnpm lint` - Linting
For UI stories, also include:
- Verify in browser using dev-browser skill
This section is extracted by conversion tools (ralph-tui-create-json, ralph-tui-create-beads) and appended to each story's acceptance criteria.
Each story needs:
Each story should be small enough to implement in one focused AI agent session.
Format:
### US-001: [Title]
**Description:** As a [user], I want [feature] so that [benefit].
**Acceptance Criteria:**
- [ ] Specific verifiable criterion
- [ ] Another criterion
Note: Do NOT include quality gate commands in individual story criteria - they are defined once in the Quality Gates section and applied automatically during conversion.
Important:
Numbered list of specific functionalities:
Be explicit and unambiguous.
What this feature will NOT include. Critical for managing scope.
How will success be measured?
Remaining questions or areas needing clarification.
The PRD will be executed by AI coding agents via ralph-tui. Therefore:
CRITICAL: Wrap the final PRD in markers for TUI parsing:
[PRD]
# PRD: Feature Name
## Overview
...
## Quality Gates
...
## User Stories
...
[/PRD]
File naming: The TUI will save to ./tasks/prd-[feature-name].md
User: Create a PRD for adding dark mode to the TUI
Assistant: I'll help you create a PRD for dark mode. Let me ask a few questions:
What is the primary goal? A. Reduce eye strain for long sessions B. Match system theme preference C. Provide visual customization D. Other
Should the setting persist? A. Yes, save to config file B. No, session only C. Follow system preference
User: 1A, 2A
Assistant: Great! A couple more questions:
Which components need dark mode support? A. All TUI components B. Only the main execution view C. Main view + settings D. Other
What quality commands must pass for each story? A. pnpm typecheck && pnpm lint B. npm run typecheck && npm run lint C. bun run typecheck D. Other: [specify]
For UI stories, include browser verification? A. Yes, use dev-browser skill B. No, automated tests sufficient
User: 3A, 4A, 5A
Assistant: Perfect, I have enough to generate the PRD.
[PRD]
Add dark mode support to ralph-tui to reduce eye strain during long orchestration sessions. The feature will apply to all TUI components and persist the user's preference in the config file.
These commands must pass for every user story:
pnpm typecheck - Type checkingpnpm lint - LintingFor UI stories, also include:
Description: As a user, I want to set my preferred theme (light/dark) so that it persists across sessions.
Acceptance Criteria:
theme field to .ralph-tui.yaml schemaDescription: As a user, I want a soft-contrast dark theme that's easy on the eyes.
Acceptance Criteria:
Description: As a user, I want all TUI components to respect my theme preference.
Acceptance Criteria:
Description: As a user, I want to toggle themes from within the TUI settings.
Acceptance Criteria:
.ralph-tui.yamlBefore outputting the PRD:
[PRD]...[/PRD] markersView Count
0
Download Count
0
Favorite Count
0
Quality Score
71