ralph-loop

ralph-loop - Completion Enforcement Loop

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ralph-loop" with this command: npx skills add supercent-io/skills-template/supercent-io-skills-template-ralph-loop

ralph-loop - Completion Enforcement Loop

When to use this skill

  • Long-running implementation tasks that tend to stop early

  • Tasks that need strict completion signaling

  • Workflows using ultrawork / ulw in OpenCode

  • Sessions where the agent must continue until exact completion

  1. Core Command Pattern

Use the built-in command form:

/ralph-loop "<task description>" [--completion-promise=TEXT] [--max-iterations=N]

Defaults:

  • Completion promise: DONE

  • Max iterations: 100

  1. How the Loop Behaves
  • Starts with your task prompt.

  • On each idle cycle, verifies whether the assistant output contains:

<promise>DONE</promise>

  • If not found, injects a continuation prompt and increments iteration.

  • Stops only when:

  • Completion promise is detected, or

  • Max iterations is reached, or

  • You run /cancel-ralph .

  1. Practical Usage

Standard run

/ralph-loop "Refactor auth module and finish all tests"

Custom promise

/ralph-loop "Migrate API clients to v2" --completion-promise=SHIP_IT

Bounded iteration run

/ralph-loop "Fix flaky CI tests" --max-iterations=20

Cancel active loop

/cancel-ralph

  1. Integration Notes for skills-template
  • Keep this skill as an operational guide for OpenCode workflows.

  • Pair with orchestration skills (for example, ohmg ) when tasks require delegation.

  • Require explicit completion tags in final responses to avoid premature stop.

Quick Reference

Action Command

Start loop /ralph-loop "task"

Custom promise /ralph-loop "task" --completion-promise=TEXT

Iteration cap /ralph-loop "task" --max-iterations=N

Cancel /cancel-ralph

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

web-accessibility

Web Accessibility (A11y)

Repository Source
General

database-schema-design

Database Schema Design

Repository Source
General

api-documentation

When to use this skill

Repository Source