Download for MacApple silicon, macOS 14+
Skill

goal-loop

@davidondrej Updated 2026-10-28

Draft /goal prompts and explain persistent agent loops. Use for goal or Ralph loops, autonomous run setup, monitoring, and troubleshooting.

Install

With your agent

Install OMGSkills skill "davidondrej/skills:goal-loop" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/davidondrej/skills /tmp/skills && ln -s /tmp/skills/skills/agent-orchestration/goal-loop ~/.claude/skills/goal-loop

From README

Agent /goal Loop What /goal is /goal makes an agent persist through plan → act → test → review → iterate. If a turn ends before the goal is met, it auto-continues instead of waiting for input. The loop ends at its stop condition, a user pause, or the token budget limit. It is also called the “Ralph loop”. Before giving runtime instructions, check goal support in the installed agent and interface through its help, exposed tools, or current official documentation. Verify feature flags, authentication, and limits; do not transfer one agent's requirements to another. Lifecycle states, budgets, and pause/resume vary by runtime. A goal enforces a contract through verification. It is not a budget command, a safety boundary, “run forever”, or a replacement for /plan. When to use it Use for repeated autonomous work with a verifiable stop condition: passing tests, target coverage, eval ≥ X, or a green build. For code work, establish a working build and relevant checks first.