/ultragoal:goalfrom Ultragoal
Turns unfiltered brain dumps into verifiable goals with checkable rubrics, then works autonomously until verified. For substantial builds, fixes, migrations, or investigations.
Ships in Ultragoal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn the user's brief into an armed, self-correcting goal loop, then start working toward it.
The input may be an unedited speech transcript: expect filler words, self-corrections, topic jumps, and missing structure. Extract intent; never quote the mess back at the user.
User's brief:
$ARGUMENTSIf .ultragoal/ does not exist in the project root, run the ultragoal:setup skill first (it scaffolds directories, asks the preference knobs, and offers the CLAUDE.md block), then continue here.
Before asking the user anything:
.ultragoal/memory/MEMORY.md and any topic files relevant to the brief. Trust [VERIFIED] facts; treat [UNVERIFIED] ones as hypotheses..ultragoal/goals/archive/ for related past goals (especially their Decision journals and failure notes)..ultragoal/stats.tsv (last ~10 rows): a domain with a clean history earns a confident vanilla/quick recommendation at the dials; repeated verifier fails or blown budgets in similar goals earn a standard-rigor or deeper-budget recommendation — and say which history drove the call when you offer the dials. Autonomy is earned from the record, not assumed.Off-ramp — not everything needs the loop. If the consult shows a contained, reversible change you could finish and verify with a couple of commands — no real forks, no long unattended run — say so in one line and do the work directly in this conversation instead of arming a goal: same evidence discipline, no spec, no interview, no ceremony. The machinery exists for work a plain session can't hold; spending more tokens on ceremony than on the work is a failure mode. Arm anyway only if the user says they want the loop (the audit trail, or to walk away mid-run). This applies doubly after a goal has finished in this session: a completed goal does not put the session in "goal mode" — later small asks get ordinary treatment (no verifier dispatch, no evidence ledger, no rubric), and only an explicit next-round brief re-enters the loop.
Program on-ramp — the off-ramp's mirror. When the brief is bigger than one goal should hold — it would blow past the deep tier, spans different verification regimes (backend contracts vs UI vs docs), or contains a risky unknown whose findings should reshape the later work — don't draft one bloated spec. Propose a program: an ordered chain of goals with the cut points named and justified (each cut buys a verified checkpoint plus a fresh context that rebuilds from the brief, the distilled memory, and the real repo state), run one at a time, with only provably-disjoint spans overlapping in worktrees. Interview once at the program level, present the program map, and ask a standalone "Arm program" question. The full protocol — division heuristics, blast-radius rules, checkpoint replanning, the manager's own goal — is in docs/programs.md; read it before proposing one. Most briefs are goal-sized; a program is as rare as the off-ramp is common.
Goals are per-session: each lives in .ultragoal/goals/active/<slug>/goal.md with a session: field, and the gate enforces only the goal armed by the current session. So a goal active in another session does not block you — arm a new one freely; concurrent goals across sessions are the intended model. Only if this same session already has an active goal do you ask the user to pick: keep the current one (drop this brief), or replace it (pause/abandon per the ultragoal:stop protocol, then arm this).
One caution: sessions share the working tree. If another session's active goal touches files this goal will also touch — and any kind: experiment goal touches everything, since it commits and resets constantly — warn the user before arming and suggest running one of the goals in its own checkout instead (claude --worktree, or npx ultragoal run --worktree). The gate keeps the loops from interfering; only a worktree keeps the files from interfering.
Ask high-leverage questions only — the forks where different answers produce materially different work. A question earns its place when all three hold: (1) the answer changes what you build, not just cosmetics; (2) you genuinely can't pick it confidently from the brief, repo, and memory; (3) guessing wrong is expensive (rework, wasted budget, wrong direction). If a question fails any of these, don't ask it — answer it yourself from the codebase, or take the obvious default and note it.
The leverage usually lives in these forks (pick the 2–5 that actually matter for this brief):
Size the interview to what a wrong guess costs. Check interview-depth in .ultragoal/config.md (the user can override per-goal by saying "quick" or "deep/thorough interview"):
Whatever the depth, the same rules keep even a 25-question interview painless: every question concrete and decision-shaped — real options (not "what do you think?"), your recommended default first with a one-line why, so ratifying is one tap and overriding is deliberate. At most 4 questions per AskUserQuestion batch; multiSelect where choices aren't exclusive. When going deep, open with one line that sets expectations ("Big goal — about 5 short rounds, every question has a recommended default; accepting all defaults is a fine answer."). Skip any round the brief already settles; stop when a round stops changing the plan.
Never ask what the codebase can answer — go look. If running non-interactively (no user), don't ask: make the most defensible call on each fork and record every such decision explicitly in the spec's Context as an assumption.
First decide the goal's kind:
task (default): success is "this exists and works" — features, fixes, migrations, investigations.experiment: success is "this number improved" — latency, build time, size, cost, score — and one command can measure it. Read experiment-guide.md and compile the spec as a measure-and-ratchet loop instead of a checklist. If the user's brief is an optimize-ask but no reliable measure command exists, the spec's first rubric item is building one.Check the rubric library first: read rubrics/INDEX.md and if the brief matches a domain, load that template as your starting point — it carries research-backed thresholds and check commands. Adapt it to this repo (real commands, applicable items only); don't transplant blindly. Also scan the available skills in this session against the template's "Skills to pair" line and the task domain — if a matching skill exists (e.g. frontend-design for UI work, vercel-react-best-practices for React), plan to use it during execution and note it in the spec's Context.
Copy the structure from goal-template.md and write the rubric following rubric-guide.md — read it; rubric quality decides whether this loop converges. Also read qa-capability-map.md before finalizing the rubric. For every claim, choose the proof rung that matches the promise: static checks for wiring, tests for pure logic, browser/simulator screenshots or rendered-size assertions for UI pixels, click/deep-link checks for reachability, live/staging smokes for external seams, and paired failure-mode checks for new boundaries. A well-designed rubric is doing more work than the model.
Before showing the user, adversarially review your own rubric against the guide's full anti-pattern list. The mechanical audit (Phase 4) catches the structural defects; this read catches the judgment ones the linter can't — above all, claims proved one rung below where they live (wired ≠ renders ≠ reachable ≠ live: the guide's evidence ladder). Sequence at least one live, end-to-end slice early in the rubric rather than deferring all real exercise to a final manual round. Fix what you find.
Set the rigor — scale the loop to the model, and let the user choose per run. rigor has a default in .ultragoal/config.md (vanilla if unset), but it's a per-goal choice — offer it as a dial at arm time, in the same AskUserQuestion batch as the depth dial below (they're the two effort dials, and a user steering one usually wants to steer the other): the config value is the recommended default (one tap to accept), and the user can dial up or down for this run without editing config. Skip the question only when the brief already settles it ("max mode" / "vanilla" / "standard") or the goal took the off-ramp. Rigor sets how much scaffolding the harness adds to compensate for model strength — it picks the loop's baseline, which the stakes × ambiguity × length sizing below then modulates. When in doubt between modes, recommend the higher one and say what it buys:
verify: on (or off if the verification knob is off). This is today's behavior — add nothing.model: sonnet or haiku): the Explore agent inherits the session's model now, so an unhinted scout costs frontier rates for lookup work. The background log monitor is active. verify: on.verify: panel, and at the end dispatch three ultragoal:verifier subagents in one message (lenses: checks / refute / constraints), all three must PASS. Verify every claim as you check it (every-claim cadence). Multi-modal scout sweeps plus a completeness critic for read-heavy work. Favor the deep interview and offer rubric variants. The monitor is active.Whatever rigor selects, still default to less within the tier: a contained vanilla brief doesn't earn scouts; a small max goal still doesn't need five scattered agents (2–4 focused beat five; MacNet: 2–3 judges capture the gain — the panel is exactly 3, never more). Name the kit you chose and what you skipped in the spec's Context — a quietly smaller plan and silent gold-plating are both failures; the user's lever is informed consent.
Let the user own the dials. After drafting, pull out the 2–4 thresholds that define the contract — the latency bar, the coverage floor, how strict the constraints are, how deep to go — and put them to the user as one AskUserQuestion batch, recommended value first with the research behind it. A number the user chose is a number they'll trust at verification time; a number buried in a recap is one they'll dispute later. Skip this for thresholds the interview already settled.
The depth dial. Ask the budget as a depth question, never as a raw number — users steer effort in human terms, the same way the API's effort parameter replaced budget_tokens with named levels. Offer named tiers with your recommendation first and the cap as the parenthetical detail:
The chosen tier's cap goes in the spec's budget: as a plain integer. A "turn" is a gate-checked stop — the loop's own heartbeat, counted deterministically by the gate with zero machinery; it is a checkpoint trigger (when the gate demands an honest status report), not a spend meter. The user picks depth; the gate counts turns. An undersized budget pauses good work mid-flight — when in doubt between tiers, recommend the deeper one and say why. Skip the question entirely when the brief or interview already settles depth ("quick fix", "take the night").
The rigor dial is the "Set the rigor" question above, asked in this same batch — phrase the three modes in human terms (lean and fast / safety nets / release-grade) with the config default first; the pick sets the spec's verify: (vanilla / standard → on, max → panel) and selects the loop kit already described.
The execution dial — plan big, execute small. For an execution-heavy goal (many files to change, a large build, long mechanical stretches) on a frontier session model, offer a third dial in the same batch — config default first (execution in .ultragoal/config.md, frontier if unset):
model: sonnet), each against its own mini-rubric, reviewing every returned diff before its box is checked. An executor that gets stuck escalates back to the parent — that escalation is the advisor call. This is Anthropic's published cost pattern: a Fable 5 orchestrator with Sonnet 5 workers kept 96% of Fable's BrowseComp score at 46% of the price; the inverse advisor shape kept ~92% of SWE-bench Pro at ~63%.Skip the dial entirely when execution won't dominate the goal's cost — a dial that can't change the bill is ceremony. Economy never touches the loop's judgment surfaces: the interview, the spec, rubric design, diff review, and the verifier all stay on the strong model — cheap executors are safe because the checking around them isn't cheap. Record the pick in the spec's Context.
For goals that earned a deep interview, draft the rubric at two or three contract levels — lean (core checks only, ship fast), standard (recommended), strict (production-grade: the domain template's full security/a11y/perf items) — and present them as previews in a single question so the user picks the bar. Drafting the variants costs minutes; it turns the user from spec-reader into contract-author, and the unchosen items go in the spec's Context as a noted non-goal.
First, write the finished spec as a draft: create .ultragoal/goals/active/<slug>/ and write the spec to goal.md inside it with status: draft in the frontmatter (if that directory already exists for a different session, add a short suffix to the slug). A draft is inert — the gate ignores it. This ordering is enforced, not advisory: a guard hook blocks the arm question if no draft exists, because the recap must be read back from a real artifact, not improvised.
Immediately run the rubric audit against the draft:
node <this-skill-dir>/scripts/rubric-audit.mjs .ultragoal/goals/active/<slug>/goal.md
Resolve <this-skill-dir> to the directory containing this SKILL.md; in the ultragoal source repo the equivalent shorthand is node scripts/rubric-audit.mjs <goal>. If the script is unavailable, run the guide's anti-pattern list against the draft by hand. A BLOCKER is a draft defect: revise the draft and run the audit again before recapping — the arm-guard hook runs this same audit and blocks the arm question while BLOCKERs remain. A WARN must either be fixed or recorded in the draft's Context as an intentional tradeoff; do not hide warnings from yourself and then ask the user to arm a weak contract.
Then give the user a tight, skimmable recap built from that draft, so they can course-correct while it's still cheap. Five short parts, in plain language:
For any goal that adds or changes a screen, destination, or navigation, lead the recap with a "What you'll see" block — read ui-recap.md and build it as it describes: nav map, screen inventory, ASCII wireframe, flow, and stated assumptions, all from the user's chair, never what the code does. It replaces the prose of part 3 for UI work, travels into the finish summary and any handoff prompt, and is skipped entirely for backend/refactor goals, which instead confirm their own end-state artifact (an endpoint signature, the resulting file tree, a sample input→output).
Then ask to arm with a standalone AskUserQuestion — exactly one question, header exactly Arm goal, options "Yes, arm it" / "Edits first" — in the same message as the recap, recap first. Never bundle the arm question into an interview batch (the guard hook blocks that too), and never ask it before the draft exists. This holds for every goal, including follow-up rounds in a session that has already run goals — earlier rounds never waive the recap, because each round's decisions and rubric are new. Keep the recap scannable — it's a confirmation, not the full spec dump; the draft file holds the detail.
On yes:
status: draft to status: active. The frontmatter already carries session: ${CLAUDE_SESSION_ID} (the gate enforces only this session's goal) and verify:: off if the verification knob is off; panel if rigor is max (the 3-lens panel sign-off); otherwise on. (Off means the gate accepts a fully checked rubric without a verifier pass.)0 to .ultragoal/goals/active/<slug>/.turns. (Experiment goals keep their results.tsv in this same directory, beside goal.md.)/ultragoal:stop, or the turn budget).On "Edits first": revise the draft and re-recap. If the goal is dropped entirely, delete the draft directory — never leave orphan drafts.
Then begin working immediately. Do not end the turn with a plan.
- evidence: \command` -> key output line. Never write a ULTRAGOAL-VERIFIEDline yourself — that verdict is the verifier's alone. The default verification cadence is **one pass at the final sign-off**: dispatch theultragoal:verifiersubagent before finishing, **passing it the exact path to this goal'sgoal.md** so it hashes and signs the right file; it audits the evidence ledger (a checked box without evidence is an automatic FAIL), re-runs every check itself, and appends the verdict. Dispatch it earlier only for an item that already failed verification, a check that looks shaky, or when .ultragoal/config.mdsetsverification-cadence: every-claim— and then pipeline it: dispatch in the background and keep building while it checks. Scoped early checks recordULTRAGOAL-INTERIM:lines, which the gate ignores; only a full-rubric pass earnsULTRAGOAL-VERIFIED. **If the goal's verify: panel** (rigor=max), the final sign-off is instead three verifiers dispatched in ONE message — lenses checks / refute / constraints, mutually blind — each appending its own lens=`-tagged verdict; the gate releases only when the latest verdict for all three is PASS on the current rubric.[ ] item, not a footnote — never close the goal as done on a mocked-only external seam. Build a thin slice that makes one real call as early as you can, instead of deferring all live exercise to a final manual round; the 5-minute "mint a real token, hit the real endpoint, read the real error" check is worth more than a hundred green mocks.<goal dir>/logs/<name>.log; tail or grep the log for the decisive lines when you need them. If the goal is genuinely blocked on a long background run (a suite, a deploy), don't burn budget on idle polling turns: set status: paused with a note, arm a completion watch, and flip back to active when it fires — pausing on a real blocker is honest, not quitting.! prefix so the output arrives in the session. One precise ask beats three vague ones.status: paused in the goal file, report honestly where every rubric item stands, and stop.experiment-guide.md (opens in a new tab)goal-template.md (opens in a new tab)qa-capability-map.md (opens in a new tab)rubric-guide.md (opens in a new tab)rubrics/INDEX.md (opens in a new tab)rubrics/accessibility.md (opens in a new tab)rubrics/api-endpoint.md (opens in a new tab)rubrics/app-store-readiness.md (opens in a new tab)rubrics/bug-fix.md (opens in a new tab)rubrics/build-ci-speedup.md (opens in a new tab)rubrics/cli-tool.md (opens in a new tab)rubrics/dependency-upgrade.md (opens in a new tab)rubrics/documentation.md (opens in a new tab)rubrics/frontend-design.md (opens in a new tab)rubrics/nextjs-react-feature.md (opens in a new tab)rubrics/realtime-stability.md (opens in a new tab)rubrics/refactor-migration.md (opens in a new tab)rubrics/research-audit.md (opens in a new tab)rubrics/rn-feature.md (opens in a new tab)rubrics/security-pass.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
goal-management, autonomous-work, rubric, verifier, workflow-automation
npx claudepluginhub shamilkayal/ultragoal --plugin ultragoal7 skills in this plugin
/compactLint and compact the ultragoal project memory — find contradictions and stale claims, merge duplicates, refresh the index. Run every ~10 sessions (the session banner nudges when due)./rememberDistill lessons from the current session or a finished goal into the project memory (.ultragoal/memory/). Used directly, as the final step of a goal loop, and immediately whenever the user corrects you./setupInitialize or reconfigure ultragoal in this project — scaffold .ultragoal/, choose preference knobs, wire the CLAUDE.md block. Runs automatically on first /ultragoal:goal./statusShow the current ultragoal state — active goal, rubric progress, budget, memory health./stopStop the active ultragoal loop — archive the goal as abandoned (or paused) and release the gate./verifyIndependent audit of a goal — the active one or a named archived goal. A fresh-context verifier re-runs every rubric check and tries to refute the work. Use after completion for extra assurance, or anytime you doubt the claims.Other plugins' skills for the same job