ralph-init

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Ralph Init Skill

Ralph Init Skill

[RALPH-INIT - PRD CREATION MODE]
[RALPH-INIT - PRD 创建模式]

What is PRD?

什么是PRD?

A PRD (Product Requirements Document) structures your task into discrete user stories for ralph-loop.
PRD(产品需求文档)会将你的任务拆分为离散的用户故事,用于ralph-loop执行。

Your Task

你的任务

Create
.omc/prd.json
and
.omc/progress.txt
based on the task description.
根据任务描述创建
.omc/prd.json
.omc/progress.txt
文件。

prd.json Structure

prd.json 结构

json
{
  "project": "[Project Name]",
  "branchName": "ralph/[feature-name]",
  "description": "[Feature description]",
  "userStories": [
    {
      "id": "US-001",
      "title": "[Short title]",
      "description": "As a [user], I want to [action] so that [benefit].",
      "acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
      "priority": 1,
      "passes": false
    }
  ]
}
json
{
  "project": "[项目名称]",
  "branchName": "ralph/[feature-name]",
  "description": "[功能描述]",
  "userStories": [
    {
      "id": "US-001",
      "title": "[简短标题]",
      "description": "作为[用户角色],我想要[执行操作],以便[获得收益]。",
      "acceptanceCriteria": ["准则1", "类型检查通过"],
      "priority": 1,
      "passes": false
    }
  ]
}

progress.txt Structure

progress.txt 结构

undefined
undefined

Ralph Progress Log

Ralph 进度日志

Started: [ISO timestamp]
Started: [ISO时间戳]

Codebase Patterns

代码库模式

(No patterns discovered yet)

undefined
(尚未发现任何模式)

undefined

Guidelines

指导原则

  1. Right-sized stories: Each completable in one focused session
  2. Verifiable criteria: Include "Typecheck passes", "Tests pass"
  3. Independent stories: Minimize dependencies between stories
  4. Priority order: Foundational work (DB, types) before UI
After creating files, report summary and suggest running
/oh-my-claudecode:ralph-loop
to start.
Task to break down: {{ARGUMENTS}}
  1. 合理拆分故事:每个故事可在一个专注的工作时段内完成
  2. 可验证的验收准则:包含“类型检查通过”、“测试通过”等内容
  3. 独立的故事:尽量减少故事之间的依赖
  4. 优先级排序:先完成基础工作(数据库、类型定义),再处理UI部分
创建文件后,报告总结并建议运行
/oh-my-claudecode:ralph-loop
以开始执行。
待拆分的任务: {{ARGUMENTS}}