ralph
O que ela faz
Esta skill mantém um agente trabalhando em uma tarefa em rodadas repetidas até que uma lista de histórias de usuário esteja concluída e verificada. É para quem quer que uma tarefa seja terminada e checada, e não apenas iniciada.
Quando usar
- ✓Quando você quer que uma tarefa continue até estar totalmente concluída e verificada.
- ✓Quando uma tarefa tem uma lista de histórias de usuário que precisam passar.
- ✓Quando você quer que o agente tente de novo depois de uma verificação que falhou, em vez de parar.
Link da skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ralph/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Continue trabalhando na funcionalidade de login até que todas as histórias da lista passem nas verificações, e me avise quando estiver pronto.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente percorre a lista de histórias, acompanha quais passam e executa uma verificação de feedback obrigatória antes e depois de cada etapa. Continua tentando mesmo depois de falhas e só termina quando todas as histórias estão verificadas.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
[RALPH - ITERATION {{ITERATION}}/{{MAX}}]
Your previous attempt did not output the completion promise. Continue working on the task.
<Purpose> Ralph is a PRD-driven persistence loop that keeps working on a task until ALL user stories in prd.json have passes: true and are reviewer-verified. It combines session persistence, automatic retry on failure, structured story tracking, and mandatory verification before completion. </Purpose> <Precondition_Feedback_Gate> NON-NEGOTIABLE, runs before any story work and at every verification gate:- FIRST ITERATION, before picking a story: run
omc ralph verify --write-baseline --session <sessionId>(session id: read OMC_SESSION_ID if set —omc ralph afkexports it — else the one in the Ralph continuation context / active PRD path; use the SAME id for every call in this run). This records the feedback baseline. If the command is unavailable or denied, STOP and report the failure — do not fall back to hand-rolled judgment. - EVERY verification gate (story verification, post-deslop re-verification): run
omc ralph verify --session <sessionId>and obey the exit code — 0 = pass (baseline-only failures are recorded warnings, never a story failure), 1 = new failures to fix. - NEVER hand-roll the feedback diff (running the suite yourself and eyeballing the output is exactly the failure mode this gate exists to prevent). </Precondition_Feedback_Gate>
- Task requires guaranteed completion with verification (not just "do your best")
- User says "ralph", "don't stop", "must complete", "finish this", or "keep going until done"
- Work may span multiple iterations and needs persistence across retries
- Task benefits from structured PRD-driven execution with reviewer sign-off</Use_When>
- User wants a full autonomous pipeline from idea to code -- use
autopilotinstead - User wants to explore or plan before committing -- use
planskill instead - User wants a quick one-shot fix -- delegate directly to an executor agent
- User wants manual control over completion -- delegate directly to an executor agent
- User already has an active Claude Code
/goaland only wants that native goal loop monitored -- adopt the existing/goalexplicitly or use artifact-only Ultragoal notes instead of starting Ralph as a competing persistence loop</Do_Not_Use_When>
- Structuring work into discrete user stories with testable acceptance criteria (prd.json)
- Iterating story-by-story until each one passes
- Tracking progress and learnings across iterations (progress.txt)
- Requiring fresh reviewer verification against specific acceptance criteria before completion</Why_This_Exists>
Startup gate: Ralph always initializes and validates prd.json at startup. Legacy --no-prd text is sanitized from the prompt for backward compatibility, but it no longer bypasses PRD creation or validation.
Deslop opt-out: If {{PROMPT}} contains --no-deslop, skip the mandatory post-review deslop pass entirely. Use this only when the cleanup pass is intentionally out of scope for the run.
Reviewer selection: Pass --critic=architect, --critic=critic, or --critic=codex in the Ralph prompt to choose the completion reviewer for that run. architect remains the default.
Stale-state detection & reconciliation (#3669): If a PRD is left unfinished by an abnormal/non-Step 8 exit (crash, force-kill, cancel before /oh-my-claudecode:cancel, session end), Ralph surfaces an explicit [STALE PRD WARNING] at startup/resume, in the continuation context, and at session end — with unfinished counts, last-touched age, and stale-pointer signals (PRD branchName merged/gone). Completion is NEVER inferred from PR/branch/merge status alone; git state is a warning signal only. A story is auto-reconciled to passes: true ONLY when the PRD carries configured observable evidence and every check passes:
{
"reconciliation": {
"staleAfterMs": 7200000,
Perguntas frequentes
Ele para quando uma tentativa falha?
Não. Ele continua tentando, usando o feedback da falha, até que as verificações passem.
O que é a lista de histórias?
É um arquivo estruturado que lista cada história de usuário e se ela já passou.
Quem verifica o trabalho?
Um revisor verifica cada história antes que ela seja marcada como aprovada.
Detalhes
Descrição original do autor
Self-referential loop until task completion with configurable verification reviewer
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #7017
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-doc-discipline
41 milEnsina seu agente a escrever instruções que outros agentes de IA possam seguir por conta própria, com regras que podem ser verificadas e um motivo claro por trás de cada uma.
ai-slop-cleaner
41 milAjuda seu agente a limpar código escrito por IA que funciona, mas está inchado ou repetitivo, removendo o excesso sem mudar o que ele faz.
architecture-survey
41 milAjuda seu agente a revisar a estrutura de uma base de código e listar as partes que estão ficando difíceis de mudar, com evidências, sem alterar nada por conta própria.
ask-navigator
41 milAjuda seu agente a transformar um projeto vago em um mapa de perguntas de decisão claras, e depois resolvê-las uma a uma até o caminho ficar claro.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.