
generating-prd
by qte77
Out-of-the-box Python project template using Ralph Loop autonomous development with Claude Code (plugins, skills, rules), TDD, uv, ruff, pyright, pytest. Also including interactive User Story and PRD generation.
SKILL.md
name: generating-prd 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.
PRD to JSON Conversion
Parses docs/PRD.md and generates ralph/state/prd.json for Ralph loop task tracking.
Purpose
The Ralph loop requires a structured JSON file to track task completion. This skill extracts implementation stories from PRD.md and creates the required prd.json format.
Workflow
- Read
docs/PRD.mdto extract functional requirements - Identify atomic stories - tasks that fit in single context window
- Generate
ralph/state/prd.jsonwith proper schema - Validate JSON format before saving
PRD.json Schema
See ralph/templates/prd.json.template for the complete schema and structure.
Required fields:
project: The current project namedesciption: A concise project descriptionsource: 'docs/PRD.md'generated: "YYYY-MM-DD HH:MM:SS"stories: Array of story objects (see below)
Story Extraction Rules
Atomic Stories: Each story must complete within single context window
- Single feature addition (100-300 lines)
- Single bug fix
- Single refactoring task
- Single test suite addition
From PRD.md Extract:
- Functional requirements → stories
- API endpoints → implementation stories
- CLI commands → feature stories
- Evaluation metrics → metric implementation stories
Story Attributes:
id: Unique identifier (STORY-XXX format)title: Brief 3-7 word descriptiondescription: What to implement (1-2 sentences)acceptance: Testable completion criteriafiles: Expected files to modify/createpasses: Boolean (false initially)completed_at: Timestamp when marked passing
Validation Rules
Before saving prd.json:
- All required fields present for each story
- IDs are unique
- All stories have
passes: falseinitially - Acceptance criteria are specific and testable
- File paths match project structure
Example Story Conversion
From PRD.md:
## Functional Requirements
### CLI
- Command Line Interface:
- Environment setup commands: make setup_dev
To prd.json story:
{
"id": "STORY-001",
"title": "Add make setup_dev command",
"description": "Create Makefile recipe for development environment setup",
"acceptance": [
"Makefile contains setup_dev recipe",
"Recipe installs all dev dependencies",
"Recipe passes validation checks"
],
"files": ["Makefile"],
"passes": false,
"completed_at": null
}
Use ralph/templates/prd.json.template as the base structure and populate the stories array.
Usage
To generate prd.json:
# Run this skill to parse PRD.md
# Output will be saved to ralph/state/prd.json
Ralph loop will then use this file to track task completion.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です