Ralph
Generates implementation user stories (ralph.json) from a PRD. Breaks requirements into dependency-ordered, context-window-sized stories with verifiable acceptance criteria. Use when a PRD is ready for implementation, when the user says "break this down", "create stories", "ralph", "implementation plan", or "let's build this". Also use when project.md exists and the user wants to start coding.From its SKILL.md
npx -y skills add wwwoda/skills-pm --skill ralphAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.0 KB, as published. Nobody here has run it
Ralph Skill
Produces ralph.json in the feature's PRD directory.
Each story in the output will be executed by a fresh Claude session with no memory of previous work. This constraint drives everything: stories must be small enough to complete in one context window, ordered so earlier stories never depend on later ones, and have criteria specific enough that an agent can verify its own work.
Feature Directory Resolution
- If argument given → use as feature name
- If no argument → scan
prd/_to_refine/andprd/backlog/for directories containingproject.md, present list - Search order:
prd/_to_refine/<name>/, thenprd/backlog/<name>/, thenprd/complete/<name>/ - If not found → error: "No project.md found for '<name>'. Run
/wd:prd <name>first."
Workflow
1. Resolve Feature Directory
Locate the feature directory. Read project.md (required) and research.md (optional, if present).
2. Check for Open Questions
If project.md has unresolved items in the Open Questions section, warn: "The PRD has open questions. Resolve them first or confirm you want to proceed anyway."
Unresolved questions often lead to stories that need rework — it's better to spend 5 minutes answering them now than to redo stories later.
3. Convert Requirements to Stories
For each requirement (R1, R2, ...) in project.md, create one or more user stories. As you create them:
Size each story to fit one context window (see Story Sizing below). Split anything too large.
Order by dependency — each story should build on what previous stories created:
- Schema/migrations
- Backend (models, services, actions)
- UI (components, pages)
- Integration (wiring, end-to-end flows)
Add mandatory acceptance criteria based on story type:
- All stories: "Typecheck passes" (always the final criterion)
- Stories with testable logic: "Tests pass"
- UI stories: "Visual verification in browser"
- DB stories: "Migration runs cleanly"
4. Write ralph.json
Ask the user what branch name to use, then write to <feature-dir>/ralph.json using the schema in references/ralph-schema.md.
"Stories are ready. Use the ralph-loop to start implementation."
Story Sizing
Each story must be completable in one context window — a single Claude session implements, tests, and verifies it without losing context. If a story is too big, the agent runs out of context before finishing and produces broken code.
Rule of thumb: if you can't describe the change in 2–3 sentences, it's too big.
Right-sized stories
- Add a database column and migration
- Create a single UI component
- Add a server action with new logic
- Add a filter dropdown to a list
Too big — split these
- "Build the entire dashboard" → schema, queries, UI components, filters
- "Add authentication" → schema, middleware, login UI, session handling
- "Add notification system" → table, service, bell icon, dropdown panel, mark-as-read, preferences page
Splitting example
Requirement: "Add user notification system"
Split into:
- US-001: Add notifications table and migration
- US-002: Create notification service for sending notifications
- US-003: Add notification bell icon to header
- US-004: Create notification dropdown panel
- US-005: Add mark-as-read functionality
- US-006: Add notification preferences page
Each is one focused change completable and verifiable independently.
Acceptance Criteria Quality
Criteria must be verifiable — something an agent can check programmatically or visually, not something subjective. Vague criteria cause agents to either skip verification or hallucinate that they passed.
| Good (verifiable) | Bad (vague) |
|---|---|
"Add status column with default 'pending'" | "Works correctly" |
| "Filter dropdown shows: All, Active, Completed" | "Good UX" |
| "Clicking delete shows confirmation dialog" | "Handles edge cases" |
| "Response time under 200ms" | "User can do X easily" |
Full Example
Input (from project.md):
R1: Task Status Tracking As a user, I want to mark tasks with different statuses, so that I can track progress.
- Toggle between pending/in-progress/done
- Filter list by status
- Show status badge on each task
Output (ralph.json):
{
"project": "task-status",
"branchName": "feature/task-status",
"description": "Track task progress with status indicators",
"userStories": [
{
"id": "US-001",
"title": "Add status field to tasks table",
"description": "As a developer, I need to store task status in the database",
"acceptanceCriteria": [
"Add status column: 'pending' | 'in_progress' | 'done' (default 'pending')",
"Migration runs cleanly",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
},
{
"id": "US-002",
"title": "Display status badge on task cards",
"description": "As a user, I want to see task status at a glance",
"acceptanceCriteria": [
"Each task card shows colored status badge",
"Badge colors: gray=pending, blue=in_progress, green=done",
"Visual verification in browser",
"Typecheck passes"
],
"priority": 2,
"passes": false,
"notes": ""
},
{
"id": "US-003",
"title": "Add status toggle to task list rows",
"description": "As a user, I want to change task status directly from the list",
"acceptanceCriteria": [
"Each row has status dropdown",
"Changing status saves immediately",
"UI updates without page refresh",
"Tests pass",
"Visual verification in browser",
"Typecheck passes"
],
"priority": 3,
"passes": false,
"notes": ""
},
{
"id": "US-004",
"title": "Filter tasks by status",
"description": "As a user, I want to filter the list to see only certain statuses",
"acceptanceCriteria": [
"Filter dropdown: All | Pending | In Progress | Done",
"Filter persists in URL params",
"Tests pass",
"Visual verification in browser",
"Typecheck passes"
],
"priority": 4,
"passes": false,
"notes": ""
}
]
}
Guardrails
- Only produce
ralph.json— the implementation urge is strong when you can see the solution, but acting on it here means the stories won't capture what needs to happen - Every story must trace back to a requirement in
project.md - Stories must be ordered so each can be implemented without forward references
- If a requirement can't be broken into context-window-sized stories, flag it and ask for guidance