Saltar al contenido
Skillpedia
Agentes15 mil · #11010

ralph-loop

Qué hace

La skill inicia un bucle iterativo en el que el agente sigue trabajando en una tarea a lo largo de muchas rondas. Está pensada para personas que quieren un progreso constante en una tarea grande sin reiniciarla a mano.

Cuándo usarla

  • ✓Cuando quieres que el agente siga iterando sobre una tarea hasta alcanzar un objetivo.
  • ✓Cuando quieres fijar un número máximo de rondas para una tarea autónoma.
  • ✓Cuando quieres que el bucle se detenga al aparecer una frase de finalización concreta.

Link de la skill

https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop/SKILL.md

Có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

Usa esta skill para ayudarme: https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Inicia un Ralph Loop para construir una API de tareas con pruebas, y detente tras 20 rondas.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente guarda tu tarea y la configuración del bucle en un archivo de estado y luego trabaja en la tarea. Cada vez que intenta detenerse, se vuelve a introducir el mismo prompt y sigue hasta la frase de finalización o el límite de rondas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Ralph Loop

Trigger

The user wants to start a Ralph loop. An iterative development loop where the same prompt is fed back after every turn, and the agent sees its own previous work each iteration.

Workflow

  1. Gather the user's task prompt and optional parameters:

    • max_iterations (number, default 0 for unlimited)
    • completion_promise (text, or "null" if not set)
  2. Create the directory .cursor/ralph/ if it doesn't exist, then write the state file at .cursor/ralph/scratchpad.md with this exact format:

    ---
    iteration: 1
    max_iterations: <N or 0>
    completion_promise: "<TEXT>" or null
    ---
    
    <the user's task prompt goes here>
    

    Example:

    ---
    iteration: 1
    max_iterations: 20
    completion_promise: "COMPLETE"
    ---
    
    Build a REST API for todos with CRUD operations, input validation, and tests.
    
  3. Confirm to the user that the Ralph loop is active, then begin working on the task.

  4. The stop hook automatically intercepts each turn end and feeds the same prompt back as a followup message. You will see it prefixed with [Ralph loop iteration N.].

Guardrails

  • If a completion promise is set, you may ONLY output <promise>TEXT</promise> when the statement is completely and genuinely true.
  • Do not output false promises to escape the loop.
  • Always recommend setting max_iterations as a safety net.
  • Quote the completion_promise value in the YAML frontmatter if it contains special characters.

Output

Confirm the loop is active (prompt, iteration limit, promise if set), then start working on the task immediately.

Preguntas frecuentes

¿Qué pasa si no fijo un máximo?

El valor por defecto no tiene límite de rondas, por eso la skill recomienda fijar uno.

¿Qué es una frase de finalización?

Una frase que el agente solo escribe cuando la tarea está de verdad completa, y que pone fin al bucle.

¿Puede el agente falsear la frase de finalización?

No. La skill prohíbe escribir una frase de finalización falsa solo para salir del bucle.

Detalles

Descripción original del autor

Start a Ralph Loop for iterative self-referential development. Use when the user asks to run a ralph loop, start an iterative loop, or wants repeated autonomous iteration on a task until completion.

repo: cursor/plugins

Popularidad

Estrellas en GitHub
15 mil
Posición en el ranking
#11010
Licencia
—
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas