better-goal

better-goal is a skill for Claude Code from fledgeling-co/fledgeling-plugins. It costs 361 tokens per session (4,606 once invoked), scanned A, original, MIT.

A skill for keeping a long coding run moving until its work is actually finished. It creates checks for completion, a watcher for stalled runs, and records what happens when a run stops unexpectedly.

In plain words
What is it for?
Use it for larger backlogs or multi-step repository work where progress must be monitored and completion verified across sessions.
Why use it?
It addresses the risk that an autonomous coding task may stop, fail, or appear complete without passing the required checks.

Skill for Claude Code

Written for Claude Code: SessionEnd hook event. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the better-goal plugin — 1 skill shipped together

Good fit Use it for larger backlogs or multi-step repository work where progress must be monitored and completion verified across sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fledgeling-co/fledgeling-plugins/better-goal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fledgeling-co/fledgeling-plugins --skill better-goal
Clone the repo
git clone --depth 1 https://github.com/fledgeling-co/fledgeling-plugins

Made for: Claude Code.

Or install better-goal, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for better-goal

README.md
[![agentmods](https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/better-goal/github.svg)](https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/better-goal)
Your own site
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/better-goal"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/better-goal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for better-goal

Your own site · 80×15
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/better-goal"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/better-goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 361 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00361 $0.04606
Opus 5.5 $0.00144 $0.01842
Sonnet 5.5 $0.00072 $0.00921
Haiku 4.5 $0.00036 $0.00461

Measured 14d ago against content hash eed42b3eb425, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

better-goal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/arm.sh, scripts/disarm.sh, scripts/guard.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/better-goal/skills/better-goal/SKILL.md · 304 lines

How it starts

The opening of the file, as written. The whole thing — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.

better-goal — a finish line that verifies itself

A long run needs three things the model cannot supply about itself: something that decides whether the work is done, something that notices when the run has died, and a record that answers "how's it going" without interrupting it. This skill builds all three out of command hooks, a monitor, and a file.

Two of those live inside the session, so a third has to live outside it. A Stop hook cannot fire for a turn that ended on an API error, and a Monitor dies with the session that armed it — which is how one run sat at armed: true on turn 17 for fourteen days with nobody told. install.sh therefore registers four events, not one, once, at user scope: Stop runs the gates, StopFailure and SessionEnd record the deaths the guard never sees, and SessionStart reports what is still armed to the next session that opens the repo. Arming is then a state write, because a hook written mid-session loads only in the next session.

It does not use /goal. That command registers a prompt Stop hook whose verdict comes from a small model reading the transcript — so it is judged on what the run said, it cannot run a command, and Claude Code overrides any Stop hook after 8 consecutive blocks while reporting the turn as completed. The guard here replaces the evaluator with exit codes and raises that cap deliberately. references/mechanics.md carries the evidence for each of those claims.

Deliver the harness. The armed run does the underlying work, so do not start it in this pass. Make routine judgment calls yourself and check in only where two readings would produce materially different gates.

references/failure-modes.md maps each observed failure to its fix. references/gate-craft.md is how to turn "done" into commands. references/presets.md carries the two recipes people ask for most.

Running as a Gemini model? Read gemini.md in this directory first, then follow this file with the overrides it names. It turns the finish line into a counted worklist, requires every gate to be proved able to fail before arming, and makes you read the state file and hook registration back off disk before reporting the run as armed. Other models skip it.

Read the full file on GitHub · 304 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +8 lines eed42b3eb425
  2. 2mo ago Changed · +20 lines 7766a47d9d1a
  3. 2mo ago Changed · -2 lines · +4 tokens per session ad789934aedb
  4. 3mo ago First seen · 278 lines · 357 tokens per session scan A 425440803038

Subscribe to this mod's changes

better-goal is a skill published in the GitHub repository fledgeling-co/fledgeling-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 361 tokens to every session and 4,606 once invoked, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

better-goal compared with skills from other repositories

better-goal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
better-goalfledgeling-co/fledgeling-pluginsSkill2yesterdayMITA361Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code