Documentation Index
Fetch the complete documentation index at: https://mintlify.com/snarktank/ralph/llms.txt
Use this file to discover all available pages before exploring further.
Right-Sizing Stories
The most important rule for successful Ralph execution: each story must be completable in one iteration (one context window).Why Story Size Matters
Ralph spawns a fresh AI instance for each iteration with no memory of previous work except:- Git history
progress.txtlearningsprd.jsonstatus
Right-Sized Stories
Each story should be describable in 2-3 sentences:Stories That Are Too Big
These need to be split into multiple stories:Build the entire dashboard
Build the entire dashboard
Problem: Too many components and dependenciesSplit into:
- Add dashboard schema/tables
- Create data aggregation queries
- Add dashboard page layout
- Add chart component for metrics
- Add filter controls
- Add export functionality
Add authentication
Add authentication
Problem: Spans database, middleware, UI, and session managementSplit into:
- Add users and sessions tables with migrations
- Add authentication middleware
- Create login page UI
- Add session handling and persistence
- Add logout functionality
- Add protected route guards
Refactor the API
Refactor the API
Problem: Touches too many endpoints and filesSplit into:
- Refactor user endpoints to new pattern
- Refactor task endpoints to new pattern
- Refactor notification endpoints to new pattern
- Update error handling across all endpoints
- Add validation middleware
Splitting Large Features
When you have a big feature, use this pattern:The Two-Sentence Test
Rule of thumb: If you cannot describe the change in 2-3 sentences, it’s too big. ✅ Good: “Add a status column to the tasks table with three possible values and a default of pending” ❌ Bad: “Build the entire task management system with status tracking, assignment, comments, and notifications”Dependency Order Matters
Stories execute in priority order. Earlier stories must not depend on later ones.Correct Order:
Wrong Order:
The ralph skill automatically checks for proper dependency ordering when converting PRDs to
prd.json. Use it to validate your story structure.Next Steps
- Customizing Prompts - Tailor Ralph to your project
- Browser Verification - Verify UI changes work
- Debugging - Troubleshoot issues during execution

