agentleFS
jazzpujols34jazzpujols34/claude-skills/skills/goal/SKILL.md

goal

Skill0 starsChanged 5 months agoMITView on GitHub

Use for "/goal <task>", "loop until it passes", "keep trying until X works", "give it success criteria", or any task phrased as a target state rather than a list of steps. Turns an imperative task into verifiable success criteria, then loops attempt-verify with a hard 5-try cap.

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use origin, update-cli-config and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • 0mlkrizzz655335vSkill

    origin

    origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:

    Also in 3 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 4 projects that use this

  • 0mlkrizzz655335vSkill

    review-bugbot

    缺陷导向代码审查。用 Bugbot 子代理找 bug。

    Also in 3 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 4 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 4 projects that use this

  • MicrosoftSkill

    automate

    Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.

    Also in 4 projects that use this

  • +1 more from 32103210
  • +3 more from 0mlkrizzz655335v

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every criterion must be a runnable, observable check — a command, a test, a curl, a browser behavior.

    line 18
  2. Distinctive:

    If the task can't be made verifiable, stop and ask — don't start looping on a vague goal.

    line 26
  3. Distinctive:

    Before the first attempt, write the numbered plan the user will see if this escalates:

    line 30
  4. Distinctive:

    Keep it short. The plan can change try-to-try (see Step 3) but it must exist before try #1.

    line 36
  5. Distinctive:

    Only then change something.

    line 45
  6. Distinctive:

    Never re-run an unchanged fix hoping for a different result — that is not a new try, it's the same try with a wasted cycle.

    line 47
  7. Distinctive:

    Never declare success unless the verification actually ran and passed in this session.

    line 61
  8. Distinctive:

    "5 tries" is per-goal, not per-session: If the goal is re-scoped into a genuinely different goal, the counter resets — but say so out loud …

    line 72

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Goal-Driven Execution

Don't tell it what to do — give it success criteria and watch it go. But bounded: max 5 tries, hard cap, always.

Purpose

Transform an imperative task ("fix the bug", "add validation") into a runnable success criterion, then loop attempt -> verify until green or the cap is hit. This trades open-ended agent looping (which drifts and rationalizes "close enough") for a bounded, falsifiable contract.

This is an original implementation inspired by Andrej Karpathy's LLM-coding-pitfalls observations (via multica-ai/andrej-karpathy-skills) — not a copy of that work.

Step 1 — Lock success criteria BEFORE building

Every criterion must be a runnable, observable check — a command, a test, a curl, a browser behavior. Not "works", not "faster", not "should be fine now".

Imperative taskVerifiable criterion
"Fix the bug"A test that reproduces it exists and passes
"Add validation"These 3 invalid inputs return 422; 2 valid inputs return 200
"Make it faster"p95 latency < 200ms on a named benchmark script, measured before and after

If the task can't be made verifiable, stop and ask — don't start looping on a vague goal. A criterion you can't run is not a criterion.

Step 2 — State the try plan

Before the first attempt, write the numbered plan the user will see if this escalates:

  1. [action] — verify: [exact command/check]
  2. [action] — verify: [exact command/check]
  3. ...

Keep it short. The plan can change try-to-try (see Step 3) but it must exist before try #1.

Step 3 — The loop

Each cycle: attempt -> run verification -> on fail, diagnose first.

On failure:

  1. State the delta between expected and actual output — exactly, not "it didn't work".
  2. Form a new hypothesis for why.
  3. Only then change something.

Never re-run an unchanged fix hoping for a different result — that is not a new try, it's the same try with a wasted cycle.

The 5-try hard cap (non-negotiable)

A "try" = one attempt at making the criteria pass, ended by actually running the verification.

On the 5th failed try: STOP. Do not attempt a 6th. Switch to the debug-loop-breaker protocol (also in this collection) and report:

  • A table: try # / hypothesis / what changed / result
  • Current best hypothesis
  • What information or decision is needed from the user to continue

Honesty rule

Never declare success unless the verification actually ran and passed in this session. A partial pass is not done — say plainly which criteria are still red.

Model delegation note

When a stronger orchestrator model delegates a build to a cheaper builder model, the orchestrator locks the success criteria up front and judges the verification output; the builder model executes the tries against those locked criteria. The builder does not get to renegotiate criteria on its own — see the Gotcha below on stating renegotiations explicitly.

Gotchas

  • Vacuous criteria prove nothing. A check that passes even before the change (a test that asserts nothing, a grep that matches pre-existing text) is not a criterion. When feasible, confirm the check FAILS before implementing.
  • A failed verification counts as a full try even if the change was one line. Cheap edits don't earn extra attempts.
  • Don't silently weaken criteria mid-loop to make them pass. Renegotiating criteria is allowed but must be stated explicitly — e.g. "relaxing criterion 2 because [reason]".
  • "5 tries" is per-goal, not per-session. If the goal is re-scoped into a genuinely different goal, the counter resets — but say so out loud when it happens.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.