ralph-tui-prd by subsy/ralph-tui
npx skills add https://github.com/subsy/ralph-tui --skill ralph-tui-prd通过 ralph-tui 创建针对 AI 代理执行优化的详细产品需求文档。
[PRD]...[/PRD] 标记中的 PRD,以便 TUI 解析重要提示: 请勿开始实施。仅创建 PRD。
每次只问一组问题。每个答案都应为你下一个问题提供信息。重点关注:
1. 此功能的主要目标是什么?
A. 改善用户入门体验
B. 提高用户留存率
C. 减轻支持负担
D. 其他:[请说明]
2. 目标用户是谁?
A. 仅限新用户
B. 仅限现有用户
C. 所有用户
D. 仅限管理员用户
这样用户可以用 "1A, 2C" 快速迭代回答。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
始终询问质量门——这些是项目特定的:
每个用户故事必须通过哪些质量命令?
A. pnpm typecheck && pnpm lint
B. npm run typecheck && npm run lint
C. bun run typecheck && bun run lint
D. 其他:[指定你的命令]
对于 UI 故事,我们是否应包含浏览器验证?
A. 是,使用 dev-browser 技能进行视觉验证
B. 否,自动化测试已足够
每次回答后,决定是否:
通常需要 2-4 轮问题。
使用以下部分生成 PRD:
功能的简要描述及其解决的问题。
具体、可衡量的目标(项目符号列表)。
关键: 列出每个用户故事必须通过的命令。
## 质量门
每个用户故事必须通过这些命令:
- `pnpm typecheck` - 类型检查
- `pnpm lint` - 代码检查
对于 UI 故事,还需包含:
- 使用 dev-browser 技能在浏览器中验证
此部分由转换工具(ralph-tui-create-json, ralph-tui-create-beads)提取并附加到每个故事的验收标准中。
每个故事需要:
每个故事应足够小,以便在一个专注的 AI 代理会话中完成。
格式:
### US-001: [标题]
**描述:** 作为 [用户],我想要 [功能],以便 [获益]。
**验收标准:**
- [ ] 具体的可验证标准
- [ ] 另一个标准
注意: 请勿在单个故事的验收标准中包含质量门命令——它们在"质量门"部分定义一次,并在转换过程中自动应用。
重要提示:
具体功能的编号列表:
要明确且无歧义。
此功能将不包含的内容。对于管理范围至关重要。
如何衡量成功?
剩余的问题或需要澄清的领域。
PRD 将通过 ralph-tui 由 AI 编码代理执行。因此:
关键: 将最终的 PRD 包裹在标记中,以便 TUI 解析:
[PRD]
# PRD: 功能名称
## 概述
...
## 质量门
...
## 用户故事
...
[/PRD]
文件命名: TUI 将保存到 ./tasks/prd-[功能名称].md
用户: 为 TUI 添加深色模式创建一个 PRD
助手: 我将帮助你为深色模式创建一个 PRD。让我问几个问题:
主要目标是什么? A. 减少长时间会话的眼部疲劳 B. 匹配系统主题偏好 C. 提供视觉定制 D. 其他
设置是否应持久化? A. 是,保存到配置文件 B. 否,仅限会话 C. 遵循系统偏好
用户: 1A, 2A
助手: 很好!再问几个问题:
哪些组件需要深色模式支持? A. 所有 TUI 组件 B. 仅主执行视图 C. 主视图 + 设置 D. 其他
每个用户故事必须通过哪些质量命令? A. pnpm typecheck && pnpm lint B. npm run typecheck && npm run lint C. bun run typecheck D. 其他:[指定]
对于 UI 故事,是否包含浏览器验证? A. 是,使用 dev-browser 技能 B. 否,自动化测试已足够
用户: 3A, 4A, 5A
助手: 完美,我有足够的信息来生成 PRD 了。
[PRD]
为 ralph-tui 添加深色模式支持,以减少长时间编排会话中的眼部疲劳。该功能将应用于所有 TUI 组件,并将用户偏好持久保存在配置文件中。
每个用户故事必须通过这些命令:
pnpm typecheck - 类型检查pnpm lint - 代码检查对于 UI 故事,还需包含:
描述: 作为用户,我想要设置我偏好的主题(浅色/深色),以便它在会话间持久化。
验收标准:
.ralph-tui.yaml 模式添加 theme 字段描述: 作为用户,我想要一个柔和对比的深色主题,以减轻眼部疲劳。
验收标准:
描述: 作为用户,我希望所有 TUI 组件都尊重我的主题偏好。
验收标准:
描述: 作为用户,我希望能够从 TUI 设置中切换主题。
验收标准:
.ralph-tui.yaml 读取主题设置在输出 PRD 之前:
[PRD]...[/PRD] 标记中每周安装量
753
代码仓库
GitHub 星标
2.2K
首次出现
2026年1月20日
安全审计
安装于
claude-code565
opencode275
codex201
gemini-cli135
github-copilot127
cursor126
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] markersWeekly Installs
753
Repository
GitHub Stars
2.2K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code565
opencode275
codex201
gemini-cli135
github-copilot127
cursor126
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装
YouTube视频分析师 - 逆向分析病毒内容公式,提取钩子、留存机制与情感触发点
647 周安装
SQLiteData 使用指南:SwiftData 轻量级替代方案,支持 CloudKit 同步
CTF密码学挑战速查指南 | 经典/现代密码攻击、RSA/ECC/流密码实战技巧
648 周安装
Bitrefill CLI:让AI智能体自主购买数字商品,支持加密货币支付
Bilibili 字幕提取工具 - 支持 AI 字幕检测与 ASR 转录,一键下载视频字幕
648 周安装
assistant-ui thread-list 线程列表:管理多聊天线程的 React AI SDK 组件
649 周安装