ralph
Qué hace
Esta skill mantiene a un agente trabajando en una tarea en rondas repetidas hasta que una lista de historias de usuario esté terminada y verificada. Está pensada para personas que quieren una tarea acabada y comprobada, no solo empezada.
Cuándo usarla
- ✓Cuando quieres que una tarea siga avanzando hasta quedar completamente terminada y comprobada.
- ✓Cuando una tarea tiene una lista de historias de usuario que deben pasar todas.
- ✓Cuando quieres que el agente reintente tras una comprobación fallida en lugar de detenerse.
Link de la skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ralph/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Sigue trabajando en la función de inicio de sesión hasta que todas las historias de la lista pasen las comprobaciones, y avísame cuando esté lista.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente recorre la lista de historias, lleva la cuenta de cuáles pasan y ejecuta una comprobación de retroalimentación obligatoria antes y después de cada paso. Sigue adelante tras los intentos fallidos y solo termina cuando todas las historias están verificadas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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,
Preguntas frecuentes
¿Se detiene cuando falla un intento?
No. Sigue reintentando, usando la retroalimentación del fallo, hasta que las comprobaciones pasan.
¿Qué es la lista de historias?
Un archivo estructurado que enumera cada historia de usuario y si ha pasado.
¿Quién comprueba el trabajo?
Un revisor verifica cada historia antes de marcarla como superada.
Detalles
Descripción original del autor
Self-referential loop until task completion with configurable verification reviewer
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #7017
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-doc-discipline
41 milEnseña a tu agente a escribir instrucciones que otros agentes de IA puedan seguir por sí mismos, con reglas que se puedan comprobar y una razón clara detrás de cada una.
ai-slop-cleaner
41 milAyuda a tu agente a limpiar código escrito por IA que funciona pero está inflado o repetido, eliminando código sobrante sin cambiar lo que hace.
architecture-survey
41 milAyuda a tu agente a revisar la estructura de un código base y enumerar las partes que cada vez cuestan más de cambiar, con pruebas y sin modificar nada por sí mismo.
ask-navigator
41 milAyuda a tu agente a convertir un proyecto confuso en un mapa de preguntas de decisión claras, y luego a resolverlas una por una hasta que el camino esté claro.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.