using-goal-mode

using-goal-mode is a skill for Claude Code from lokafinnsw/claude-code-goal-mode. It costs 95 tokens per session (6,113 once invoked), scanned A, original, MIT.

Instructions for working with goal mode, a system that tracks a larger task as a plan with progress and completion conditions. It explains how the controlling agent should inspect, advance, pause, or end that plan.

In plain words
What is it for?
Use it when a goal-mode plan is active or when managing goal commands such as starting, approving, resuming, abandoning, or clearing a goal.
Why use it?
It prevents the agent from losing task state, repeating work, or falsely claiming that a goal is complete.

Skill for Claude Code

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/foo/projectA.

Part of the goal-mode plugin — 2 skills, 20 commands, 2 hooks shipped together

Good fit Use it when a goal-mode plan is active or when managing goal commands such as starting, approving, resuming, abandoning, or clearing a goal.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add lokafinnsw/claude-code-goal-mode
Claude Code
/plugin install goal-mode

Made for: Claude Code.

Or install goal-mode, the plugin that ships this one along with the rest of its 2 skills, 20 commands, 2 hooks.

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 using-goal-mode

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lokafinnsw/claude-code-goal-mode/using-goal-mode"><img src="https://agentmods.dev/badge/skills/lokafinnsw/claude-code-goal-mode/using-goal-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,113 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.00095 $0.06113
Opus 5 $0.00048 $0.03057
Sonnet 5 $0.00019 $0.01223
Haiku 4.5 $0.00010 $0.00611

Measured 9d ago against content hash 4a93045ad9f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

using-goal-mode 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 9d 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.

skills/using-goal-mode/SKILL.md · 367 lines

How it starts

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

Working with goal-mode

This skill teaches you (the controller agent driving a goal) how to interact with the goal-mode engine without breaking it, without spam-looping the chat, and without falsely declaring achievement. Read it once per conversation when a goal is active; the rules don't change between turns.

The full functional reference is in commands/goal-help.md (the slash command /goal-mode:goal-help). This skill focuses on behavior: when to do what, what NOT to do, and how to recover from edge cases.

v3 Default Workflow (Stop-hook is hint-only)

In v3.0+, the Stop hook returns null stdout on lifecycle=pursuing by default. The agent drives the goal explicitly via slash commands. Stop hook does NOT inject continuation prompts every turn. No more silence loops, no more multi-session leakage spam — the agent is in control of when state advances.

Recommended workflow

  1. Inspect the cursor:

    /goal-mode:goal-current
    

    Returns the cursor task with checkbox-style AC coverage. Use --json for scripting or --as-builtin for piping into Claude Code's built-in /goal "..." command.

  2. Do the work in normal Claude Code mode. Read files, edit code, run tests, etc. — no special tag emission required.

  3. Record evidence per acceptance criterion:

    /goal-mode:goal-evidence-add --criterion N --file path[:line] --note "..."
    /goal-mode:goal-evidence-add --criterion N --command "npm test -- foo" --exit-code 0 --note "..."
    

    The engine validates lifecycle='pursuing' and cursor.status ∈ {pursuing, review-pending} per call.

  4. Claim achievement:

    /goal-mode:goal-achieve
    
    • If all ACs have evidence AND cursor.review[] is empty → marks achieved + advances cursor.
    • If reviewers required → transitions cursor to review-pending.
    • If any AC missing → exits 1, lists missing criterion indices.

Read the full file on GitHub · 367 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. 9d ago First seen · 367 lines · 95 tokens per session scan A 4a93045ad9f0

Subscribe to this mod's changes

using-goal-mode is a skill published in the GitHub repository lokafinnsw/claude-code-goal-mode (3 stars, last pushed 3mo ago), licensed MIT. It adds 95 tokens to every session and 6,113 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

hive.browser-automation

Required before any hive-browser CLI command. The browser is driven from the terminal by running hive-browser ... --json via terminalexec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues…

aden-hive/hive · 142 tokens

hive.worker-delegation

Concrete patterns for breaking colony work into parallel worker jobs via runplaybook — when fan-out helps, how to model the goal as a tracker table, write the worker skill, author the playbook, pilot, and let convergence retry/resume the gap.

aden-hive/hive · 58 tokens

hive.linkedin-automation

Read before automating LinkedIn with browser tools. LinkedIn combines shadow DOM (#interop-outlet), strict Trusted Types CSP that silently drops innerHTML, Lexical composer, native beforeunload dialogs that hang the bridge, and aggressive spam filters — each has bitten us at least once. Verified flows for profile…

aden-hive/hive · 99 tokens

hive.x-automation

Read before automating X / Twitter with browser tools. Verified flows for post, reply, delete, search-and-engage, plus the Draft.js compose quirks that silently disable the send button. Includes the daily-reply and job-market-reply playbooks. Requires hive.browser-automation for the underlying screenshot + coordinate…

aden-hive/hive · 81 tokens

test-reporting

Run the Level 2 dummy agent integration test suite and produce a detailed HTML report with per-test input → outcome analysis.

aden-hive/hive · 0 tokens

hive.slack-notifications-setup

Set up a Slack notification channel (Sentinel) for a colony by driving the browser — reuse or create the "Hive Sentinel" Slack app from a JSON manifest, install it, capture the bot + app tokens, create/select the channel via the Slack API, and turn Sentinel on so the colony can ping the user on Slack and accept…

aden-hive/hive · 136 tokens