goal

goal is a command for Claude Code from synaptiai/synapti-marketplace. It costs 71 tokens per session (3,593 once invoked), scanned A, original, Apache-2.0.

A command for managing FlowGoal completion contracts: written objectives with acceptance criteria and checks that determine whether work is finished.

In plain words
What is it for?
Use it to create, inspect, evaluate, pause, resume, clear, and review the history of goal contracts.
Why use it?
It makes task completion explicit and durable instead of relying only on the current conversation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the flow plugin — 31 skills, 21 commands, 9 agents shipped together

Good fit Use it to create, inspect, evaluate, pause, resume, clear, and review the history of goal contracts.

Compare 6 commands 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 synaptiai/synapti-marketplace
Claude Code
/plugin install flow

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 31 skills, 21 commands, 9 agents.

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/commands/synaptiai/synapti-marketplace/goal/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/goal)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/goal"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/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/commands/synaptiai/synapti-marketplace/goal"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,593 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.00071 $0.03593
Opus 5 $0.00036 $0.01796
Sonnet 5 $0.00014 $0.00719
Haiku 4.5 $0.00007 $0.00359

Measured 6d ago against content hash 0907cef2bd3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 6d 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/flow/commands/goal.md · 244 lines

How it starts

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

/flow:goal — FlowGoal lifecycle management

Project-local replacement for the session-only Claude Code /goal built-in. Flow cannot invoke /goal from plugin code — instead this command writes durable .flow/goals/<id>.goal.yaml artifacts that the Stop hook (flow-goal-stop.sh), evaluator, and /flow:status all read.

Required Skills

Invoke these skills as part of the subcommand workflows below:

  • goal-contract-capture — every create subcommand
  • goal-evaluator — every evaluate subcommand
  • goal-lifecycle — every state-transition subcommand (pause, resume, clear, after evaluate)
  • goal-evidence-ledger — when evaluator captures new evidence sidecars

Pre-flight

Before any subcommand:

# Resolve flow.goals.enabled (default true)
ENABLED=$("$(__fr="${CLAUDE_PLUGIN_ROOT:-}";[ -x "$__fr/bin/cascade-resolve.sh" ]||__fr=$({ echo plugins/flow;ls -d "$HOME"/.claude/plugins/cache/synapti-marketplace/flow/*/ 2>/dev/null|sort -Vr;echo "$HOME/.claude/plugins/marketplaces/synapti-marketplace/plugins/flow"; }|while read -r __p;do [ -x "${__p%/}/bin/cascade-resolve.sh" ]&&{ echo "${__p%/}";break;};done);echo "$__fr")/bin/cascade-resolve.sh" \
  --default "true" '.flow.goals.enabled')
if [ "$ENABLED" != "true" ]; then
  echo "flow.goals.enabled is false — /flow:goal is disabled in this project's settings cascade." >&2
  exit 0
fi

# Resolve stopHookEnforcement (warn | block | evaluator-loop)
STOP_MODE=$("$(__fr="${CLAUDE_PLUGIN_ROOT:-}";[ -x "$__fr/bin/cascade-resolve.sh" ]||__fr=$({ echo plugins/flow;ls -d "$HOME"/.claude/plugins/cache/synapti-marketplace/flow/*/ 2>/dev/null|sort -Vr;echo "$HOME/.claude/plugins/marketplaces/synapti-marketplace/plugins/flow"; }|while read -r __p;do [ -x "${__p%/}/bin/cascade-resolve.sh" ]&&{ echo "${__p%/}";break;};done);echo "$__fr")/bin/cascade-resolve.sh" \
  --default "warn" '.flow.goals.stopHookEnforcement // empty')

mkdir -p .flow/goals

Subcommands

/flow:goal — default (no arguments)

Equivalent to /flow:goal status. Shows the active goal for the current branch/PR.

Read the full file on GitHub · 244 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. 6d ago First seen · 244 lines · 71 tokens per session scan A 0907cef2bd3b

Subscribe to this mod's changes

goal is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 71 tokens to every session and 3,593 once invoked, about $0.0004 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-09-03.

Related

Other commands, from other repositories