Agent skill · AI & Agents

goal-loop

Draft and explain persistent goal-loop prompts for long-running agent work with clear stop conditions.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill goal-loop --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 10 KB
Bundled scripts: none
Declared author: davidondrej
Path: skills/goal-loop/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Agent `/goal` Loop ## What `/goal` is `/goal` is a slash command that turns an agent prompt into a **persistent agent** looping `plan → act → test → review → iterate` until a stop condition is met, the user pauses, or the token budget runs out. Internally called the "Ralph loop." Agents with the `/goal` feature right now: **Codex, Claude Code, and Hermes Agent**. Key difference from a normal prompt: when a turn ends but the goal isn't met, the agent **auto-continues** instead of waiting for input. **Lifecycle states:** `pursuing`, `paused`, `achieved`, `unmet`, `budget-limited`. When monitoring a running `/goal`, every check should include a one-line update to the user: what the agent is doing and whether it is on track. Keep it extremely concise. **Not:** a budget command, a safety boundary, "run forever", or a replacement for `/plan`. It's a contract enforcer with a verification loop. ## Requirements - An agent with the `/goal` feature — right now: Codex, Claude Code, or Hermes Agent - The goals feature enabled in the agent's config - **Subscription auth** — API-key auth does **not** work. A pro-tier plan is the realistic minimum for long runs. ## When to Use it Use only when *

What's inside
Steps it walks through
  1. What /goal is
  2. Requirements
  3. When to Use it
  4. The 5-part contract (every goal needs this)
  5. Writing a goal (the core deliverable)
  6. Example (migration)
  7. Example (coverage lift)
  8. Writing rules
  9. Meta-prompting trick (highest-leverage)
  10. Self-goal setting
  11. Launching
  12. Controlling a running goal
  13. When a goal drifts
  14. Operational tips
More from agentic-awesome-skills
All skills →
About this skill
What does the goal-loop skill do?

Draft and explain persistent goal-loop prompts for long-running agent work with clear stop conditions.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill goal-loop --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going