better-ralph
БесплатноБез исполняемых скриптовНе проверенRun one Better Ralph iteration: PRD-driven autonomous coding. Read prd.json, pick next story, implement it, run checks, commit, mark story passed, append…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Better Ralph – One Iteration (OpenClaw)
Execute 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.
When to Use
- User says: "run better ralph", "do one better ralph iteration", "next prd story", "ralph loop", "implement next story from prd".
- Project has a
prd.jsonin the workspace root (see Output Format below for schema).
One-Iteration Workflow
Do these steps in order. Use only your standard file, exec, and git tools.
1. Read state
- Read
prd.json(workspace root). Parse the JSON. - Read
progress.txtif it exists. If it has a section## Codebase Patternsnear the top (up to the next##or end of file), use that as context for implementation patterns. Otherwise proceed without it.
2. Pick the next story
- From
prd.json.userStories, find all withpasses === false. - Sort by
priorityascending (lower number = higher priority). - Take the first (highest priority incomplete story).
- If every story has
passes === true, reply: "All PRD stories are complete. Nothing left to do." and stop.
3. Ensure git branch
- Check current git branch (e.g. run
git branch --show-currentor use your git tool). - If
prd.jsonhas abranchNameand it differs from the current branch, checkout or create that branch (e.g.git checkout -b <branchName>orgit checkout <branchName>).
4. Implement the story
- Story = the one you picked. It has:
id,title,description,acceptanceCriteria,priority,passes. - Implement the story: write or edit code so that every item in
acceptanceCriteriais satisfied. - Work on this story only. Do not start the next story.
5. Run quality checks
- Run the project’s quality commands (e.g.
npm test,npm run lint,npm run typecheck, or whatever the project uses). - If any check fails, do not commit. Tell the user what failed and stop. Do not update
prd.jsonorprogress.txtfor a failed story.
6. Commit (only if checks passed)
- Stage all changes (e.g.
git add -Aor your git tool’s equivalent). - Commit with message exactly:
feat: [Story ID] - [Story Title]
Example:feat: US-002 - Display priority on task cards
7. Mark story passed in prd.json
- Read
prd.jsonagain (in case it changed). - Find the user story with the same
idyou just completed. Set itspassestotrue. - Write the full updated
prd.jsonback (preserve structure and other fields; only change that story’spasses).
8. Append progress to progress.txt
- Append (do not overwrite) a new block to
progress.txtwith 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")
---
- If
progress.txtdoes not exist, create it with a first line like# Better Ralph Progressthen the block above.
9. Report to user
- Say which story you completed (ID and title) and that you updated the PRD and progress.
- If there are still stories with
passes === false, say: "Run another iteration to do the next story." If all are complete, say: "All PRD stories are complete."
prd.json format
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": ""
}
]
}
- priority: Lower number = higher priority. Order by dependency (e.g. schema before UI).
- passes: Start as
false; set totrueonly after the story is implemented and committed. - acceptanceCriteria: Each item must be checkable (e.g. "Typecheck passes", "Tests pass").
Codebase Patterns (progress.txt)
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.
Rules
- **One story per invocat
Установить better-ralph в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл better-ralph?
Run one Better Ralph iteration: PRD-driven autonomous coding. Read prd.json, pick next story, implement it, run checks, commit, mark story passed, append progress. Uses only standard OpenClaw tools (read, write, exec, git). Triggers on: run better ralph, better ralph iteration, do one ralph story, next prd story, ralph loop.
Как установить скилл better-ralph?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл better-ralph запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic