File contents
name: generating-prd-json-from-prd-md
description: Generates prd.json task tracking file from PRD.md requirements document. Use when initializing Ralph loop or when the user asks to convert PRD to JSON format for autonomous execution.
model: haiku
allowed-tools: Read, Write, Bash
PRD to JSON Conversion
Hybrid approach: Python script parses, AI validates and corrects.
Workflow
Run parser (Bash tool)
python ralph/scripts/generate_prd_json.py
Script handles: PRD.md parsing, (depends: ...) extraction, content hashing, state preservation.
Validate (Read tool)
Read ralph/docs/prd.json (script output)
Read docs/PRD.md (cross-reference)
Check against Validation Checklist
Correct errors (Write tool, if needed)
Fix issues found
Recompute content_hash if title/description/acceptance changed
Write corrected ralph/docs/prd.json
Report
Story count and status
Corrections made
Suggest: make ralph_run
Validation Checklist
For each story, verify:
Cross-reference with PRD.md:
Common Issues to Correct
Issue
Correction
Empty acceptance
Extract from description or PRD.md feature
Invalid depends_on reference
Remove non-existent story IDs
Circular dependency
Remove one direction
Missing content_hash
Recompute from title+description+acceptance
Duplicate story IDs
Renumber sequentially
prd.json Schema
See ralph/docs/templates/prd.json.template for structure and fields.
Usage
make ralph_prd_json
Next Steps
make ralph_init # Validate environment
make ralph_run # Start Ralph loop
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: qte77-rdi-agentbeats-mas-graphjudge-generating-prd-json-from 3 description: --- 4 --- 5 --- 6 name: generating-prd-json-from-prd-md 7 description: Generates prd.json task tracking file from PRD.md requirements document. Use when initializing Ralph loop or when the user asks to convert PRD to JSON format for autonomous execution. 8 model: haiku 9 allowed-tools: Read, Write, Bash 10 --- 11 12 # PRD to JSON Conversion 13 14 Hybrid approach: Python script parses, AI validates and corrects. 15 16 ## Workflow 17 18 1. **Run parser** (Bash tool) 19 20 ```bash 21 python ralph/scripts/generate_prd_json.py 22 ``` 23 24 Script handles: PRD.md parsing, `(depends: ...)` extraction, content hashing, state preservation. 25 26 2. **Validate** (Read tool) 27 - Read `ralph/docs/prd.json` (script output) 28 - Read `docs/PRD.md` (cross-reference) 29 - Check against Validation Checklist 30 31 3. **Correct errors** (Write tool, if needed) 32 - Fix issues found 33 - Recompute `content_hash` if title/description/acceptance changed 34 - Write corrected `ralph/docs/prd.json` 35 36 4. **Report** 37 - Story count and status 38 - Corrections made 39 - Suggest: `make ralph_run` 40 41 ## Validation Checklist 42 43 For each story, verify: 44 45 - [ ] `id` follows STORY-XXX format 46 - [ ] `title` is 3-7 words, matches PRD.md feature 47 - [ ] `description` is non-empty 48 - [ ] `acceptance` array is non-empty 49 - [ ] `files` array contains valid paths (if specified in PRD.md) 50 - [ ] `content_hash` is 64-char hex string 51 - [ ] `depends_on` references valid STORY-XXX IDs (no circular deps, no self-refs) 52 53 Cross-reference with PRD.md: 54 55 - [ ] All `#### Feature N:` headings have corresponding stories 56 - [ ] Story order matches PRD.md feature order 57 - [ ] `(depends: STORY-XXX)` syntax correctly parsed 58 59 ## Common Issues to Correct 60 61 | Issue | Correction | 62 | ------- | ------------ | 63 | Empty acceptance | Extract from description or PRD.md feature | 64 | Invalid depends_on reference | Remove non-existent story IDs | 65 | Circular dependency | Remove one direction | 66 | Missing content_hash | Recompute from title+description+acceptance | 67 | Duplicate story IDs | Renumber sequentially | 68 69 ## prd.json Schema 70 71 See `ralph/docs/templates/prd.json.template` for structure and fields. 72 73 ## Usage 74 75 ```bash 76 make ralph_prd_json 77 ``` 78 79 ## Next Steps 80 81 ```bash 82 make ralph_init # Validate environment 83 make ralph_run # Start Ralph loop 84 ``` 85 86 --- 87 > Converted and distributed by [TomeVault](https://tomevault.io/claim/qte77) — claim your Tome and manage your conversions. 88 <!-- tomevault:4.0:skill_md:2026-04-14 -->
tomevault-io/skills-registry/tree/main/qte77--rdi-agentbeats-mas-graphjudge--generating-prd-json-from-prd-md commit 315fd232cf
Frequently asked questions How do I install the Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md skill? Run npx skillmds@latest add tomevault-io/qte77-rdi-agentbeats-mas-graphjudge-generating-prd-json-from in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md skill do? --- It is listed under Product & Planning on SkillMD.
Is Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Qte77 Rdi Agentbeats Mas Graphjudge Generating Prd JSON From Prd Md? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.