一键导入
prd-to-json
Convert PRD markdown files to prd.json format for Ralf execution. Use when preparing PRDs for autonomous implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert PRD markdown files to prd.json format for Ralf execution. Use when preparing PRDs for autonomous implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute a single user story from prd.json. Use during Ralf loop iterations to implement stories correctly.
Update external issue tracker (GitHub/GitLab) based on Ralf events. Use when syncing story status with project management tools.
Process large codebases using Recursive Language Model patterns. Use when context exceeds 50K tokens or requires deep multi-file analysis.
Generate detailed Product Requirements Documents. Use when creating PRDs, planning features, or writing specifications.
| name | prd-to-json |
| description | Convert PRD markdown files to prd.json format for Ralf execution. Use when preparing PRDs for autonomous implementation. |
Expert guidance for converting PRDs to Ralf's executable JSON format.
{
"project": "string",
"branchName": "ralf/feature-name",
"description": "string",
"settings": {
"tddRequired": true,
"autoPush": true,
"executionMode": "sequential",
"evaluatorEnabled": true,
"allowReorder": true,
"evaluateEveryNIterations": 3,
"maxRetries": 3
},
"userStories": [
{
"id": "US-001",
"title": "string",
"description": "As a..., I want..., so that...",
"acceptanceCriteria": ["string"],
"priority": 1,
"passes": false,
"notes": "",
"targetFiles": ["src/path/to/file.ts"],
"specReference": "FR-1, FR-2",
"metrics": {
"startedAt": null,
"completedAt": null,
"durationMs": null,
"tokensConsumed": null,
"attempts": []
}
}
]
}
ralf/ prefix + kebab-case feature namepasses: false, empty notesPriority must respect dependencies:
A story cannot depend on a later (higher priority number) story.
Before conversion, validate each story is small enough:
Before overwriting existing .ralf/prd.json:
.ralf/prd.json has different branchName.ralf/archive/YYYY-MM-DD-feature-name/.ralf/prd.json and .ralf/progress.txtEach story should have clear linkage to:
Identify files that will be created or modified:
"targetFiles": [
"src/components/LoginForm.tsx",
"src/hooks/useAuth.ts",
"src/components/__tests__/LoginForm.test.tsx"
]
Link to functional requirements from the PRD:
"specReference": "FR-1, FR-3, NFR-2"
Save to: .ralf/prd.json
Create directory if needed: mkdir -p .ralf