generating-prd-json-from-prd-md

generating-prd-json-from-prd-md is a skill for Claude Code from qte77/claude-code-plugins. It costs 46 tokens per session (651 once invoked), scanned A, original, Apache-2.0.

A converter that turns a PRD.md file, a product requirements document, into a prd.json task-tracking file for the Ralph loop.

In plain words
What is it for?
Use it when preparing requirements for autonomous execution or initializing a Ralph task loop.
Why use it?
It reduces manual copying and checks that stories, dependencies, acceptance criteria, and status data are preserved correctly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python ralph/scripts/generate_prd_json.py --dry-run.

Part of the ralph plugin — 3 skills shipped together

Good fit Use it when preparing requirements for autonomous execution or initializing a Ralph task loop.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/qte77/claude-code-plugins
agentmods
npx agentmods add skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md

Made for: Claude Code.

Or install ralph, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generating-prd-json-from-prd-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md/github.svg)](https://agentmods.dev/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md)
Your own site
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generating-prd-json-from-prd-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/generating-prd-json-from-prd-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 651 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00651
Opus 5.5 $0.00018 $0.00260
Sonnet 5.5 $0.00009 $0.00130
Haiku 4.5 $0.00005 $0.00065

Measured 1mo ago against content hash 4082e5fd8c29, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generating-prd-json-from-prd-md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ralph/skills/generating-prd-json-from-prd-md/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PRD to JSON Conversion

Hybrid approach: Python script parses, AI validates and corrects.

Workflow

  1. Dry-run parser (Bash tool) — catch parser issues before writing
python ralph/scripts/generate_prd_json.py --dry-run

Check output for: declared vs parsed story count mismatch, missing stories, empty acceptance/files. If issues found, fix PRD markdown or note for manual correction in step 3.

  1. Run parser (Bash tool)
python ralph/scripts/generate_prd_json.py

Script handles: PRD.md parsing, (depends: ...) extraction, content hashing, state preservation.

  1. Validate (Read tool)

    • Read ralph/docs/prd.json (script output)
    • Read docs/PRD.md (cross-reference)
    • Check against Validation Checklist
  2. Correct errors (Write tool, if needed)

    • Fix issues found
    • Recompute content_hash if title/description/acceptance changed
    • Write corrected ralph/docs/prd.json
  3. Report

    • Story count and status
    • Corrections made
    • Suggest: make ralph_run

Validation Checklist

For each story, verify:

  • id follows STORY-XXX format
  • title is 3-7 words, matches PRD.md feature
  • description is non-empty
  • acceptance array is non-empty
  • files array contains valid paths (if specified in PRD.md)
  • content_hash is 64-char hex string
  • depends_on references valid STORY-XXX IDs (no circular deps, no self-refs)

Cross-reference with PRD.md:

  • All #### Feature N: headings have corresponding stories
  • Story order matches PRD.md feature order
  • (depends: STORY-XXX) syntax correctly parsed

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

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 92 lines · 46 tokens per session scan A 4082e5fd8c29

Subscribe to this mod's changes

generating-prd-json-from-prd-md is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 651 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

retro

Facilitate a structured sprint retrospective — what went well, what didn't, and prioritized action items with owners and deadlines. Use when running a retrospective, reflecting on a sprint, creating action items from team feedback, or learning how to run effective retros.

phuryn/pm-skills · 52 tokens

sprint-plan

Plan a sprint with capacity estimation, story selection, dependency mapping, and risk identification. Use when preparing for sprint planning, estimating team capacity, selecting stories, or balancing sprint scope against velocity.

phuryn/pm-skills · 42 tokens

review-resume

Comprehensive PM resume review and tailoring against 10 best practices including XYZ+S formula, keyword optimization, job-specific tailoring, and structure. Use when reviewing a PM resume, preparing for job applications, or improving resume impact.

phuryn/pm-skills · 49 tokens

job-stories

Create job stories using the 'When [situation], I want to [motivation], so I can [outcome]' format with detailed acceptance criteria. Use when writing job stories, creating JTBD-style backlog items, or expressing user situations and motivations.

phuryn/pm-skills · 55 tokens

wwas

Create product backlog items in Why-What-Acceptance format — independent, valuable, testable items with strategic context. Use when writing structured backlog items, breaking features into work items, or using the WWA format.

phuryn/pm-skills · 48 tokens

brainstorm-ideas-existing

Brainstorm product ideas for an existing product using multi-perspective ideation from PM, Designer, and Engineer viewpoints. Use when generating new feature ideas, brainstorming solutions for an identified opportunity, or ideating with a product trio.

phuryn/pm-skills · 51 tokens