autogoal

autogoal is a skill for Claude Code, Codex from udecode/plate-template. It costs 38 tokens per session (10,841 once invoked), scanned A, a copy of autogoal, MIT.

A workflow for creating and managing durable goals in Codex, with measurable outcomes, verification checks, plans, and blocker handling. It turns long-running work into a defined objective that can be audited before it is closed.

In plain words
What is it for?
Use it for debugging, migrations, large refactors, benchmarks, prototypes, browser workflows, and other tasks that require repeated checks until a defined result is reached.
Why use it?
It prevents open-ended work from continuing without a clear completion condition. It also helps distinguish finished work from work that is genuinely blocked.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/udecode/plate-template/autogoal
Any agent
npx skills add udecode/plate-template --skill autogoal
Clone the repo
git clone --depth 1 https://github.com/udecode/plate-template

Made for: Claude Code, Codex.

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 autogoal

README.md
[![agentmods](https://agentmods.dev/badge/skills/udecode/plate-template/autogoal.svg)](https://agentmods.dev/skills/udecode/plate-template/autogoal)
Your own site
<a href="https://agentmods.dev/skills/udecode/plate-template/autogoal"><img src="https://agentmods.dev/badge/skills/udecode/plate-template/autogoal.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00038 $0.10841
Opus 5 $0.00019 $0.05421
Sonnet 5 $0.00008 $0.02168
Haiku 4.5 $0.00004 $0.01084

Measured 5d ago against content hash 42f864caf265, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

autogoal 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 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-complete.mjs, scripts/create-goal-scratchpad.mjs, scripts/create-goal-template.mjs, …), 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.

Origin

This is a copy

100% identical to autogoal — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/autogoal/SKILL.md · 1,259 lines

How it starts

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

Autogoal

Use this when the user asks for a durable objective, long-running autonomous work, goal setup, or when a governing repo skill requires goal setup before work starts.

This skill turns a vague "keep going" instruction into a thread-scoped completion contract: what should be true, how it is verified, what must not change, and when Codex should stop.

Core Take

A normal prompt says: do the next thing.

A goal says: keep working until this outcome is true, or until the evidence shows a real blocker.

Goals are for work where the next move depends on what Codex learns along the way: debugging, migrations, flaky tests, benchmark tuning, deep research, large refactors, prototypes, browser-proof loops, and pass-gated plans.

Goals are not a permission slip to wander. They are a scoped, evidence-checked contract.

No measurable outcome, no goal. A goal must have a verification surface and a completion threshold before create_goal is called. Prefer numbers: score, count, latency, coverage, pass count, failing-to-passing repro count, issue rows, or explicit command success. When a numeric target does not fit, use a binary artifact checklist that can be audited from files, commands, screenshots, browser proof, or source-backed citations.

Universal Boundary

autogoal is the goal lifecycle kernel. It owns:

  • objective shape
  • measurable completion thresholds
  • evidence standards
  • active goal conflict handling
  • durable plan state
  • blocker and completion rules
  • repair routing when a goal-backed workflow misses expectations

It does not own project policy. Keep repo commands, package managers, browser tools, release rules, PR policy, scorecards, issue ledgers, and lane-specific pass schedules in derived skills or project-owned docs/plans/templates/<template>.md.

Derived skills may be stricter than autogoal; they should not duplicate the goal lifecycle. autogoal says how work remains honest. The derived skill says what the lane actually requires.

Read the full file on GitHub · 1,259 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. 5d ago First seen · 1,259 lines · 38 tokens per session scan A 42f864caf265

Subscribe to this mod's changes

autogoal is a skill published in the GitHub repository udecode/plate-template (59 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 10,841 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to autogoal, differing in 0 lines, and is treated as a copy.