better-ralphRun one Better Ralph iteration: pick next incomplete PRD story by priority, implement it, run checks, commit, mark passed, and append progress, using only st...
Install via ClawdBot CLI:
clawdbot install RuneweaverStudios/better-ralphExecute one iteration of the Better Ralph workflow: pick the next PRD story, implement it, run quality checks, commit, update the PRD, and append progress. Uses only standard tools (read_file, write_file, edit, exec, git). No external runner or Aether-Claw required.
prd.json in the workspace root (see Output Format below for schema).Do these steps in order. Use only your standard file, exec, and git tools.
prd.json (workspace root). Parse the JSON.progress.txt if it exists. If it has a section ## Codebase Patterns near the top (up to the next ## or end of file), use that as context for implementation patterns. Otherwise proceed without it.prd.json.userStories, find all with passes === false.priority ascending (lower number = higher priority).passes === true, reply: "All PRD stories are complete. Nothing left to do." and stop.git branch --show-current or use your git tool).prd.json has a branchName and it differs from the current branch, checkout or create that branch (e.g. git checkout -b or git checkout ).id, title, description, acceptanceCriteria, priority, passes.acceptanceCriteria is satisfied.npm test, npm run lint, npm run typecheck, or whatever the project uses).prd.json or progress.txt for a failed story.git add -A or your git tool’s equivalent).feat: [Story ID] - [Story Title] Example: feat: US-002 - Display priority on task cards
prd.json again (in case it changed).id you just completed. Set its passes to true.prd.json back (preserve structure and other fields; only change that story’s passes).progress.txt with this format:## [Current date/time] - [Story ID]
- What was implemented (1–2 sentences)
- Files changed (list paths)
- **Learnings for future iterations:**
- Patterns or gotchas (e.g. "this codebase uses X for Y", "remember to update Z when changing W")
---
progress.txt does not exist, create it with a first line like # Better Ralph Progress then the block above.passes === false, say: "Run another iteration to do the next story." If all are complete, say: "All PRD stories are complete."If the user wants to create a new prd.json (no file yet), create it with this shape:
{
"project": "ProjectName",
"branchName": "ralph/feature-kebab-case",
"description": "Short feature description",
"userStories": [
{
"id": "US-001",
"title": "Short title",
"description": "As a [role], I want [thing] so that [benefit].",
"acceptanceCriteria": [
"Verifiable criterion 1",
"Verifiable criterion 2",
"Typecheck passes"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
false; set to true only after the story is implemented and committed.Optionally keep a Codebase Patterns section at the top of progress.txt so future iterations (or you in the next run) see it first:
# Better Ralph Progress
## Codebase Patterns
- Use X for Y in this codebase
- Always run Z after changing W
- Tests require PORT=3000
---
When you read progress.txt at the start of an iteration, use this section as context. When you discover a reusable pattern, add it here (edit the top of the file and keep the rest intact). Do not put story-specific details in Codebase Patterns.
feat: [ID] - [Title]Generated Mar 1, 2026
A tech startup uses Better Ralph to autonomously implement user stories from a PRD for a new web app, ensuring each feature meets acceptance criteria and passes quality checks before committing. This accelerates early development cycles and maintains code quality without constant developer oversight.
An enterprise modernizes a legacy codebase by breaking down updates into PRD stories, with Better Ralph handling incremental implementations like API migrations or UI refactors. It ensures each change is tested and documented, reducing risk and manual effort in large-scale projects.
An open-source project maintainer uses Better Ralph to manage community-contributed features, automating the implementation of prioritized stories from a PRD. This streamlines integration, enforces coding standards, and keeps progress transparent via commits and updates.
An e-commerce company employs Better Ralph to add new features like payment integrations or inventory management tools based on a PRD. It iteratively implements stories, runs tests to avoid regressions, and updates documentation, ensuring stable deployments during peak seasons.
An edtech firm develops interactive learning modules using Better Ralph to code stories from a PRD, such as quiz functionalities or progress tracking. Each iteration validates acceptance criteria, commits clean code, and logs learnings for future educational content updates.
Offer Better Ralph as a cloud-based service where teams pay a monthly fee per user to automate PRD-driven coding iterations. Revenue comes from tiered plans based on features like advanced analytics or integration with project management tools.
Sell perpetual licenses to large organizations for on-premises deployment of Better Ralph, with upfront costs and annual support fees. This model caters to industries with strict data privacy needs, such as healthcare or government.
Provide a free version of Better Ralph for small teams or open-source projects, with premium add-ons like custom PRD templates or priority support. Revenue is generated from upgrades and consulting services for complex integrations.
💬 Integration Tip
Ensure the workspace has a valid prd.json and standard quality commands (e.g., npm test) configured; use the Codebase Patterns section in progress.txt to share reusable insights across iterations for efficiency.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection