goal-cursor

goal-cursor is a command for Claude Code, Cursor from MichelKerkmeester/skilled-agent-harness_spec-driven-loops. It costs 15 tokens per session (555 once invoked), scanned A, original, MIT.

A command that reports that Cursor goal management is unavailable because commands cannot identify the current session safely.

In plain words
What is it for?
It is for explaining why goal actions cannot currently be performed from Cursor commands.
Why use it?
It prevents goals from being read or changed in the wrong Cursor session.

Command for Claude CodeCursor

Written for Claude Code and Cursor: argument-hint in frontmatter, but also installed under .cursor/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .skilled/hooks/goal/bin/goal.cjs packet <packet-path> --runtime cursor --session command-surface --workspace "$PWD".

Good fit It is for explaining why goal actions cannot currently be performed from Cursor commands.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MichelKerkmeester/skilled-agent-harness_spec-driven-loops
agentmods
npx agentmods add commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor

Made for: Claude Code, Cursor.

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-cursor

README.md
[![agentmods](https://agentmods.dev/badge/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor/github.svg)](https://agentmods.dev/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor)
Your own site
<a href="https://agentmods.dev/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor"><img src="https://agentmods.dev/badge/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor/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-cursor

Your own site · 80×15
<a href="https://agentmods.dev/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor"><img src="https://agentmods.dev/badge/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/goal-cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 555 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.00015 $0.00555
Opus 5.5 $0.00006 $0.00222
Sonnet 5.5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

Measured 1mo ago against content hash 5c6d5914b1fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

goal-cursor 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 1mo 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.

.cursor/commands/goal-cursor.md · 50 lines

How it starts

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

/goal-cursor

1. PURPOSE

Cursor's sessionStart hook receives a native session_id and injects that session's bound packet goal. Cursor's prompt-command surface does not expose the same identity, so anything that binds or mutates a session goal is unsupported here. One thing needs no session: reading a packet's goal.md, which is a file in the repository. That read is allowed.


2. CONTRACT

Inputs: $ARGUMENTS

  • packet <packet-path>: print the packet's durable slice, frontmatter excluded, with its hash and size.
  • packet-log <packet-path> <item> | <state> | <evidence>: append one progress row below the packet's log anchor through the locked append. A file write that needs no session.
  • Anything else: STATUS=FAIL ACTION=<action> ERROR="Cursor command lacks native session identity" and code=UNSUPPORTED_SESSION_BINDING.

3. INSTRUCTIONS

  1. If the first token of $ARGUMENTS is packet or packet-log and a path follows, run (substituting the action and, for packet-log, the quoted row):
node .skilled/hooks/goal/bin/goal.cjs packet <packet-path> --runtime cursor --session command-surface --workspace "$PWD"

Print the envelope verbatim. The chat_slice field is the text an operator sets; it never carries frontmatter.

  1. For any other action, do not run tools or mutate goal state. Print:
STATUS=FAIL ACTION=<action> ERROR="Cursor command lacks native session identity"
code=UNSUPPORTED_SESSION_BINDING

Explain that Cursor injection is session-scoped, that the bound packet goal is injected at session start, and that binding or setting must happen on a runtime whose command surface carries the session identity.


4. HARD RULES

  • Do not edit .skilled/skills/.state/goal directly.
  • Do not call bin/goal.cjs with a session action from this command; packet reads a file and packet-log appends one row, and neither binds anything.
  • Do not run shell commands derived from the goal objective.
  • Do not claim that $ARGUMENTS carries the current Cursor session id.

Read the full file on GitHub · 50 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. 1mo ago Changed 5c6d5914b1fb
  2. 1mo ago Changed · +10 lines · +1 tokens per session bb9473df27e5
  3. 2mo ago First seen · 40 lines · 14 tokens per session scan A d6858381ae78

Subscribe to this mod's changes

goal-cursor is a command published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (40 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 555 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

goal-cursor compared with commands from other repositories

goal-cursor next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goal-cursorMichelKerkmeester/skilled-agent-harness_spec-driven-loopsCommand40yesterdayMITA15Claude Code, Cursor
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code