goal

goal is a skill for Claude Code, Codex from gabrielmoreira/agent-skills-mirror. It costs 60 tokens per session (639 once invoked), scanned A, a copy of goal, MIT.

A tool for managing a persistent objective across turns. It can read the current goal, start one when explicitly requested, and mark it complete.

In plain words
What is it for?
Use it to create a goal, check its status and token budget, and complete it when the objective is actually finished.
Why use it?
It keeps a long-running objective and its progress available when the conversation is re-prompted across multiple turns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a goal, check its status and token budget, and complete it when the objective is actually finished.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gabrielmoreira/agent-skills-mirror/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 gabrielmoreira/agent-skills-mirror --skill goal
Clone the repo
git clone --depth 1 https://github.com/gabrielmoreira/agent-skills-mirror

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 goal

README.md
[![agentmods](https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/goal/github.svg)](https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/goal)
Your own site
<a href="https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/goal"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/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 goal

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/goal"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 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 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.00060 $0.00639
Opus 5.5 $0.00024 $0.00256
Sonnet 5.5 $0.00012 $0.00128
Haiku 4.5 $0.00006 $0.00064

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

Security

Grade A, and why

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 17d ago.

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 goal — 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.

mirrors/repos/7df-lab@claw-code-rust/crates/skills/assets/bundled/goal/SKILL.md · 58 lines

How it starts

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

Goal

The thread goal is a persistent objective the harness keeps re-prompting you to pursue across turns until it is complete. Goal state (status, token budget, usage accounting) lives in the host; this skill is the kernel-side interface to it. Call it directly from the Python REPL:

await goal.get()
await goal.create("ship the release notes")
await goal.pause()
await goal.resume()
# If the user cancels the objective: await goal.cancel()
await goal.complete()

API

  • await goal.get() — current goal as a dict: goal (or None when no goal is set), remaining_tokens, and completion_budget_report. The goal dict carries objective, status, token_budget, tokens_used, time_used_seconds, and timestamps.

  • await goal.create(objective, token_budget=None) — start a new active goal. Fails while a goal is still pending (active, paused, or budget-limited); a completed or errored goal is replaced by the new one. Only create a goal when the user or system/developer instructions explicitly ask for a persistent long-running goal; do not infer goals from ordinary tasks. Set token_budget only when an explicit token budget is requested.

  • await goal.complete() — mark the existing goal achieved. Use only when the objective has actually been achieved and no required work remains; do not call it merely because the budget is nearly exhausted or because you are stopping work. When the result includes a completion_budget_report, report that final usage to the user.

  • await goal.pause() — stop automatic pursuit and retain the objective.

  • await goal.resume() — resume a paused goal without resetting usage or budget.

  • await goal.cancel() — stop pursuing an unwanted goal without claiming success.

These calls return a dict containing the updated goal; inspect result["goal"]["status"] before announcing success. Host errors raise RuntimeError; the transport's status envelope is not part of the result. Pausing or canceling from Python lets the current call finish; it prevents further goal continuations rather than aborting its own tool execution.

Read the full file on GitHub · 58 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. 17d ago Changed · +13 lines · +12 tokens per session 38e9b0f2b440
  2. 23d ago Changed · +15 lines 775a8dcdf11b
  3. 1mo ago First seen · 30 lines · 48 tokens per session scan A 6228f468494a

Subscribe to this mod's changes

goal is a skill published in the GitHub repository gabrielmoreira/agent-skills-mirror (23 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 639 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to goal, differing in 0 lines, and is treated as a copy.

Related

goal compared with skills from other repositories

goal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goalgabrielmoreira/agent-skills-mirrorSkill23yesterdayMITA60Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code