templates/ralph/skills/ralph/SKILL.md
Run RALPH autonomous development loop. Converts PRD markdown to prd.json and runs autonomous implementation.
npx skillsauth add doravidan/supreme-ralph ralphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert PRD Markdown files to prd.json format for RALPH automation.
This skill activates when the user asks to:
Read the specified PRD Markdown file:
cat tasks/prd-[feature-name].md
Parse the PRD to extract:
Create the JSON structure:
{
"project": "[Feature Name]",
"branchName": "ralph/[feature-slug]",
"description": "[Overview text]",
"createdAt": "[Today's date]",
"userStories": [
{
"id": "US-001",
"title": "[Story title]",
"description": "[Full story description]",
"acceptanceCriteria": [
"[Criterion 1]",
"[Criterion 2]",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
Before saving, validate:
ralph/[feature-slug] formatArchive previous prd.json if it exists:
if [ -f prd.json ]; then
mkdir -p archive/$(date +%Y-%m-%d)
cp prd.json archive/$(date +%Y-%m-%d)/
cp progress.txt archive/$(date +%Y-%m-%d)/ 2>/dev/null || true
fi
Save the new prd.json:
cat > prd.json << 'EOF'
[JSON content]
EOF
Reset progress.txt for new feature:
cat > progress.txt << 'EOF'
# Progress Log - ralph/[feature-slug]
## Codebase Patterns
(Patterns will be added as they are discovered)
---
EOF
If a PRD story is too large, split it:
Assign priorities based on dependencies:
Always ensure these criteria exist:
Convert feature name to slug:
ralph/user-authenticationralph/dark-mode-toggleAfter conversion:
Converted PRD to prd.json
Summary:
- Project: [Feature Name]
- Branch: ralph/[feature-slug]
- Stories: [N] total
Stories:
1. US-001: [Title] (Priority 1)
2. US-002: [Title] (Priority 2)
...
Next steps:
1. Review prd.json for accuracy
2. Start RALPH: ./scripts/ralph/ralph.sh 20
3. Monitor progress in progress.txt
Input (tasks/prd-dark-mode.md):
# PRD: Dark Mode Toggle
## Overview
Add a dark mode toggle to the application settings.
## User Stories
### US-001: Create theme context
**As a** developer
**I want** a theme context provider
**So that** components can access the current theme
**Acceptance Criteria:**
- [ ] ThemeContext created with light/dark values
- [ ] ThemeProvider wraps the app
- [ ] useTheme hook exported
- [ ] Typecheck passes
Output (prd.json):
{
"project": "Dark Mode Toggle",
"branchName": "ralph/dark-mode-toggle",
"description": "Add a dark mode toggle to the application settings.",
"createdAt": "2026-01-19",
"userStories": [
{
"id": "US-001",
"title": "Create theme context",
"description": "As a developer, I want a theme context provider so that components can access the current theme",
"acceptanceCriteria": [
"ThemeContext created with light/dark values",
"ThemeProvider wraps the app",
"useTheme hook exported",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
development
Run RALPH autonomous development loop to implement features from the PRD.
documentation
Generate detailed Product Requirements Documents (PRDs) through interactive conversation.
development
Initialize any project with Claude Code best practices and RALPH autonomous development
development
RALPH autonomous development management - status, validation, analysis