gantisstorm/essentials-claude-code/prd-schema
Claude Code and agent skill by gantisstorm/essentials-claude-code
- community
Checking that the SKILL.md file is still in the repository.
prd.json schema reference for Ralph TUI — validates structure, prevents unsupported fields
Install
npx vskill@latest install gantisstorm/essentials-claude-code/prd-schemaSKILL.md
prd.json schema reference from Ralph TUI. Use this when creating, editing, or reviewing .claude/prd/*.json files.
When to Use
Invoke /prd-schema before editing any prd.json file. Invoke /prd-schema validate <path> to check an existing file.
Conversion from Plans
prd.json files are typically created by /tasks-converter from architectural plans (.claude/plans/*-plan.md). The pipeline:
How plan sections map to prd.json fields:
| Plan Section | prd.json Field | |
|---|---|---|
## Summary | name, description | |
## Files | One user story per file (typically) | |
### Requirements | acceptanceCriteria[] | |
### Reference Implementation | description (full code copied verbatim) | |
### Migration Pattern | description (before/after code copied verbatim) | |
## Dependency Graph | dependsOn[] (file deps translated to story IDs) | |
## Exit Criteria | acceptanceCriteria[] | |
| Plan path | metadata.planReference |
Each story's description must be 100% self-contained — the executor agent receives only the story description, never the source plan. All code, requirements, and verification commands are copied verbatim from the plan into the story.
Schema
Root Object
project is accepted as an alias for name, but name is preferred.
User Story Object
Required Fields (validation fails without these)
| Scope | Field | Type | |
|---|---|---|---|
| Root | name | string | |
| Root | userStories | array (1+ elements) | |
| Story | id | string | |
| Story | title | string | |
| Story | passes | boolean |
Unsupported Fields (rejected by Ralph TUI)
| Field | Why It's Wrong | |
|---|---|---|
prd | Don't wrap content in a prd key | |
tasks | Use userStories, not tasks | |
status | Use passes (boolean), not status (string) | |
subtasks | Flat list only, no nesting | |
estimated_hours | No time tracking | |
files | Not part of schema | |
assignee | Not part of schema | |
type | Not part of schema | |
epic | Not part of schema | |
parent | Not part of schema |
Dependencies
dependsOn is an array of story IDs. A story is blocked until all its dependencies have passes: true.
- If a dependency ID doesn't exist in the file, the story is treated as ready.
- Circular dependencies are not checked — ensure a valid DAG.
Task Selection Order
Ralph TUI selects the next task by:
- Filter to
passes: false - Filter to stories with all
dependsOnresolved (passes: true) - Sort by
priority(lowest number first) - Return first match
Minimal Valid Example
Complete Example
Instructions
Parse $ARGUMENTS to determine mode.
If $ARGUMENTS starts with validate:
Extract the path from $ARGUMENTS (e.g., /prd-schema validate .claude/prd/auth.json).
Read the file and check for schema violations:
Report each violation with the fix from the schema above.
If $ARGUMENTS is empty:
Output the schema summary:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingessentials/skills/prd-schema/SKILL.md
Popularity
- Repository stars
- 85
- Repository forks
- 8
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gantisstorm/essentials-claude-code/prd-schema)