goal-monitor

goal-monitor is a skill for Claude Code from naimkatiman/continuous-improvement. It costs 67 tokens per session (936 once invoked), scanned A, original, MIT.

A monitor that checks recent agent activity against the goal written in taskplan.md. It reports whether the work is on goal, drifting into unrelated areas, or lacks enough activity to judge.

In plain words
What is it for?
Use it after extended work, before a checkpoint or handoff, or whenever you suspect the agent has started editing unrelated files.
Why use it?
It catches scope drift during a session, while there is still time to return to the intended task.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Part of the continuous-improvement plugin — 27 skills, 6 hooks shipped together

Good fit Use it after extended work, before a checkpoint or handoff, or whenever you suspect the agent has started editing unrelated files.

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

Made for: Claude Code.

Or install continuous-improvement, the plugin that ships this one along with the rest of its 27 skills, 6 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 goal-monitor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/naimkatiman/continuous-improvement/goal-monitor"><img src="https://agentmods.dev/badge/skills/naimkatiman/continuous-improvement/goal-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.00936
Opus 5 $0.00034 $0.00468
Sonnet 5 $0.00013 $0.00187
Haiku 4.5 $0.00007 $0.00094

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

Security

Grade A, and why

goal-monitor 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 12d 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.

plugins/continuous-improvement/skills/goal-monitor/SKILL.md · 82 lines

How it starts

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

Goal Monitor — Continuous Drift Detection

A "Clear Goal" discipline: a stated goal is only useful if something keeps checking the work against it. task_plan.md captures the goal once; this skill turns it into a recurring check so a session that has quietly wandered off into unrelated files surfaces the drift while there is still budget to course-correct.

When to Activate

  • After a long stretch of edits, before claiming progress on the original goal.
  • When you suspect the work has sprawled across unrelated areas of the codebase.
  • Before a checkpoint or handoff, to confirm the session stayed on its stated goal.
  • Any time the goal in task_plan.md and the actual tool activity might have diverged.

Core Concept

Law 2 says the plan is sacred. But "sacred" is hollow if nothing measures adherence. Goal Monitor scores the most recent observations against the goal and reports one of three states:

ON GOAL  — recent activity relates to the goal (score >= threshold)
DRIFT    — most recent activity is unrelated, or touched forbidden paths
NO DATA  — not enough observations in the window yet

The score is the fraction of recent observations whose tool name, input, or output references a goal keyword — or whose edited path falls under a goal-scope glob.

Goal Source

The check reads, in order:

  1. task_plan.md in the project root (seeded by ci_plan_init / /planning-with-files).
  2. ~/.claude/instincts/<project-hash>/goal.md (fallback for non-repo sessions).
  3. An explicit goal_file argument, if provided.

The plan needs a ## Goal section. Two optional sections sharpen the signal:

## Goal
Implement OAuth login with JWT session tokens for the auth service.

## Goal Keywords
oauth, jwt, login, session

## Goal Scope
paths: src/auth/**, test/auth/**
forbidden: src/marketing/**

When ## Goal Keywords is absent, keywords are auto-extracted from the goal prose (stopwords and short tokens dropped). ## Goal Scope is optional: paths globs count as on-goal matches; forbidden globs are a hard drift signal even when keywords also match.

Read the full file on GitHub · 82 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. 12d ago First seen · 82 lines · 67 tokens per session scan A db1c7cb5d022

Subscribe to this mod's changes

goal-monitor is a skill published in the GitHub repository naimkatiman/continuous-improvement (7 stars, last pushed 5d ago), licensed MIT. It adds 67 tokens to every session and 936 once invoked, about $0.0003 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

opensrc

Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built. Triggers include "fetch source for"…

vercel-labs/opensrc · 103 tokens

nopus-configure

Configure nopus complexity sensitivity, extra-simple rewrites, rewrite evidence, and Pi response hiding for this user.

Vistyy/nopus · 27 tokens

nopus-simplify

Rewrite the immediately preceding assistant response with clearer and more direct prose when the user invokes this skill.

Vistyy/nopus · 25 tokens

agentpush

Bridge an imported agentpush MCP server (Telegram, WhatsApp, etc.) with live agentproto sessions via the daemon's transmitter subsystem: transmitmessage sends outbound and binds the recipient to a session, inboundwatcherstart polls agentpush for new messages, and inboundendpointcreate/POST /inbound(/:slug) route…

agentproto/ts · 119 tokens

bureau

Drive Bureau — the browser stack's installable capability server: a stealth Firefox (Camofox) + daemon that exposes browser tools as MCP-over-HTTP on :8830, plus a CLI for saved browser identities (sessions), social capture / search, adapter health probes, declarative workflows, and Guilde connection. Use when working…

agentproto/ts · 131 tokens

agentproto-apps

Operate and build Agentproto apps — AIP-42 app bundles (defineApp().emit(dir), APP.md + agents/ + workflows/ + ui/) and their daemon lifecycle (appinstall, appapply, apprun, appstatus, appstop) plus the app-scoped durable data plane (appdataread/write/list/migrate). Covers serving one with a UI (agentproto app serve →…

agentproto/ts · 178 tokens