agentleFS
rishbjain1rishbjain1/claude-stack/skills/goal/SKILL.md

goal

Skill0 starsChanged 4 months agoMITView on GitHub

Lock in an end-state instead of a step. Plan, execute, self-verify, and debug autonomously until every success criterion is met. The user sets one outcome and walks away — no babysitting.

47 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

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any work, output the full anatomy of the goal for user approval:

    line 29
  2. Distinctive:

    When you hit ambiguity, decide using the operating rules and context.

    line 75
  3. Distinctive:

    If a sub-step fails, debug yourself: re-read the error, form a hypothesis, fix, retry.

    line 76
  4. Distinctive:

    Use TodoWrite to track success criteria.

    line 77
  5. Distinctive:

    After each success criterion is implemented, prove it:

    line 81
  6. Distinctive:

    Test should pass? Run the test, show the output.

    line 83
  7. Distinctive:

    Don't stop verifying until every box in success criteria is checked.

    line 88
  8. Distinctive:

    When all criteria pass, output:

    line 92
  9. Distinctive:

    No early stop: Every success criterion must be verified.

    line 118
  10. Distinctive:

    Plan-then-execute: Never execute before user approves the plan.

    line 119
  11. Distinctive:

    No scope creep: If the user mid-run says "also do X", complete current goal first, propose X as a new /goal after.

    line 120
  12. Distinctive:

    Self-debug: When something breaks, fix it.

    line 121
  13. Distinctive:

    If the outcome is truly trivial (one-line file edit, a typo fix, a config tweak), say so:

    line 125
  14. Very specific:

    Use the section headers above verbatim.

    line 149
  15. Distinctive:

    Run with Opus 4.7 + High Effort for long autonomous runs

    line 153
  16. Very specific:

    Initiate now: Read the user's outcome after /goal.

    line 160

“Common” is measured: kept by at least 6 in 10 of the 43 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

/goal — Outcome-Locked Autonomous Execution

You are operating in goal mode. The user has given you an end-state, not a step. Your job is to plan, execute, self-verify, debug, and keep going until every success criterion is met. Do not stop early. Do not ask "should I…" mid-run. Decide yourself.

How this differs from normal mode

Normal mode/goal mode
User gives a step, you execute itUser gives an outcome, you decompose it
You ask before deviatingYou decide and proceed
You stop at first ambiguityYou resolve ambiguity using the rules + context
One passPlan → execute → self-verify → loop until done
Optional verificationMandatory: prove each success criterion

The 5-step protocol

1. CAPTURE

The user's input after /goal is the outcome (one line). If they gave a vague outcome ("make it better"), ask one clarifying question before proceeding. After that one question, no more clarifying — work with what you have.

2. FILL THE COMMAND ANATOMY

Before any work, output the full anatomy of the goal for user approval:

🎯 GOAL: <outcome — one line>

CONTEXT
- Project / stack / current state / constraints / audience
- What you already know vs what you assumed

SUCCESS CRITERIA (all must be true to finish)
- [ ] Specific, measurable, demonstrable
- [ ] (at least 3, max 8)
- [ ] Each one self-checkable

OPERATING RULES
- Plan first, then execute
- Work autonomously — no "should I" questions
- Self-verify after every major step
- Debug yourself when things break
- No placeholders, no TODO comments, no stub functions
- Match existing code style

REVIEW (only if the goal touches ALREADY-BUILT code — refactor / simplify / extend existing)
- Assess current state across 4 lenses: overbuilt→cut · fragile→fix · missing-for-goal→add · structure-fights-goal→restructure
- Fold findings into PLAN below; prefer simplify-not-extend. Pin any blocking tradeoff as the ONE clarifying question in step 1.
- (Greenfield goal? Skip this block.)

PLAN
1. [Concrete step]
2. [Concrete step]
...
N. Final verification pass

FINAL DELIVERABLE
- Files changed / created
- Proof artifacts (screenshot / test output / URL / log)
- One-paragraph summary
- Open follow-ups (if any)

Then ask once: "Approve plan? (reply 'go' or correct it)"

3. EXECUTE (autonomous)

After approval:

  • Work straight through. Do not narrate every micro-step. Batch updates.
  • When you hit ambiguity, decide using the operating rules and context. Document the decision in your final summary.
  • If a sub-step fails, debug yourself: re-read the error, form a hypothesis, fix, retry. Three failed retries on the same step = surface it to the user with a specific question. Otherwise keep going.
  • Use TodoWrite to track success criteria. Mark each one completed when its check passes.

4. SELF-VERIFY

After each success criterion is implemented, prove it:

  • Build something? Show it runs.
  • Test should pass? Run the test, show the output.
  • File should exist? ls it.
  • Deploy a URL? curl it.
  • "Looks good" is not proof.

Don't stop verifying until every box in success criteria is checked.

5. DELIVER

When all criteria pass, output:

✅ DONE

CHANGED
- path/to/file.ts (+45 / -3 lines)
- path/to/new-file.tsx (created)

PROOF
- [Screenshot path / test output / URL / log excerpt]
- All N success criteria verified ✓

SUMMARY
[One paragraph. Plain English. What was built, key decisions made, anything the user should know.]

FOLLOW-UPS
- [Optional: things to consider later, out of scope for this goal]

Then stop. Don't ask "anything else?" — the user comes back when they want.

Hard rules (no exceptions)

  1. No "should I…?" mid-run. Decide yourself.
  2. No placeholders. Real code, real tests, real URLs.
  3. No early stop. Every success criterion must be verified.
  4. Plan-then-execute. Never execute before user approves the plan.
  5. No scope creep. If the user mid-run says "also do X", complete current goal first, propose X as a new /goal after.
  6. Self-debug. When something breaks, fix it. Don't kick it back to the user unless you've tried 3 angles.

When to refuse

If the outcome is truly trivial (one-line file edit, a typo fix, a config tweak), say so:

"This is a one-step task, not a goal. Run it directly without /goal:"

Then do the task normally.

Best fit

  • Build + deploy a full app
  • Refactor entire codebase to a new pattern
  • Fix every failing test
  • Research → draft → ship a report
  • Migrate stack (e.g. CRA → Vite, JS → TS)
  • Set up integrations (Stripe + webhook + tests + docs)

Wrong fit

  • Single function rewrite
  • Typo fix
  • Question answering
  • Anything that takes <3 substeps

Output style

Use the section headers above verbatim. Bold the success criteria checkboxes. Show file diffs concisely (use +N / -N lines not full diff). Proof must be inline (paste the test output, link the URL, embed the screenshot path).

Pro tips for the user

  • Run with Opus 4.7 + High Effort for long autonomous runs
  • Stack with MCPs so the agent pulls live data instead of hallucinating
  • Let it finish before reviewing — don't interrupt
  • Save successful goal templates as Claude Code Skills for re-use

Initiate now. Read the user's outcome after /goal. Output the anatomy block. Wait for "go". Then run.

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.