
ralph
by lunchpaillola
SKILL.md
name: ralph description: Convert PRDs to prd.json format for the Ralph autonomous agent system and set up project structure
Ralph PRD Converter
Convert existing PRDs to the prd.json format for autonomous execution by the Ralph loop system.
Setup
Before converting a PRD, ensure the project has the Ralph directory structure. If it doesn't exist, create it:
mkdir -p ralph
Also create an empty progress file if it doesn't exist:
touch ralph/progress.txt
The Job
- Read the PRD from
tasks/prd-*.md(or specified path) - Parse user stories and requirements
- Convert to
prd.jsonformat - Create the Ralph directory structure if needed
- Save to
ralph/prd.json - Initialize
ralph/progress.txtif empty
Output Format
{
"project": "[Project Name]",
"branchName": "ralph/[feature-name]",
"description": "[Feature description from PRD overview]",
"userStories": [
{
"id": "US-001",
"title": "[Story title]",
"description": "As a [user], I want [feature] so that [benefit]",
"acceptanceCriteria": [
"Criterion 1",
"Criterion 2",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
Critical Rules
Story Size
Each story must be completable in ONE iteration (one context window). If a story from the PRD is too large, split it into smaller stories.
Story Ordering
Set priorities to ensure dependencies come first:
- Schema/database changes (priority: 1)
- Server actions / backend logic (priority: 2)
- Utility functions / helpers (priority: 3)
- UI components (priority: 4)
- Dashboard/summary views (priority: 5)
- Tests and documentation (priority: 6)
Acceptance Criteria
Must be verifiable, not vague.
Good:
- "Add status column to users table with default 'pending'"
- "API returns 200 with user object on success"
- "Form displays validation error when email is invalid"
- "Typecheck passes"
Bad:
- "Works correctly"
- "Is user friendly"
- "Handles errors properly"
Always include at the end of each story:
- "Typecheck passes"
For UI stories, also include:
- "Verify changes work in browser"
Initial State
All stories start with:
passes: falsenotes: ""
Output Steps
- Create
ralph/directory if it doesn't exist - Save
ralph/prd.jsonwith the converted PRD - Create
ralph/progress.txtif it doesn't exist - Confirm all files were created and provide the paths
Branch Naming
Generate branch name from the feature:
- "User Profile Settings" ->
ralph/user-profile-settings - "Payment Integration" ->
ralph/payment-integration
Use lowercase, hyphen-separated format.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon