decompose-plan

decompose-plan is a command for coding agents from simonrowland/goal-flight. It costs 22 tokens per session (4,961 once invoked), scanned C, original, MIT.

A command that splits a large plan into smaller, verified goal chunks. It can use a file, the current conversation, or a document already read in the session.

In plain words
What is it for?
Use it to turn a refactoring or implementation plan into numbered goals for an agent workflow.
Why use it?
It makes complex work easier to assign, track, and check piece by piece.

Command

Part of the goal-flight plugin — 10 skills, 17 commands, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/simonrowland/goal-flight/decompose-plan
Clone the repo
git clone --depth 1 https://github.com/simonrowland/goal-flight

Or install goal-flight, the plugin that ships this one along with the rest of its 10 skills, 17 commands, 3 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 decompose-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/simonrowland/goal-flight/decompose-plan.svg)](https://agentmods.dev/commands/simonrowland/goal-flight/decompose-plan)
Your own site
<a href="https://agentmods.dev/commands/simonrowland/goal-flight/decompose-plan"><img src="https://agentmods.dev/badge/commands/simonrowland/goal-flight/decompose-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00022 $0.04961
Opus 5 $0.00011 $0.02481
Sonnet 5 $0.00004 $0.00992
Haiku 4.5 $0.00002 $0.00496

Measured today against content hash fbe141f83ec3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

decompose-plan scanned grade C with 1 finding 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 today.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

**Why this is right**: see `protocols/premises.md`. The whole point of premise-checking is to surface invisible assumptions for validation rather than acting on them silently. A rigid "refuse if goal isn't pinned in a sp
commands/decompose-plan.md · 279 lines

How it starts

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

decompose-plan []

Read:

  • protocols/premises.md
  • protocols/dispatch-routing.md
  • protocols/worker-context-package.md
  • protocols/scout.md

Break a plan into numbered /goal chunks. The plan source can come from:

  1. A file path argument/goal-flight decompose-plan docs-private/refactor-plan.md
  2. An in-context conversation — no arg; the plan was discussed in this session (the user reviewed the plan with you and it's in the chat log)
  3. A file Read'd earlier in this session — no arg; you find the most relevant from session context

If the source is ambiguous, ask the user which plan they want decomposed before proceeding.

Steps

0. Anchor against available context (read, don't gate)

The goal here is not to enforce a formal goal-statement gate — that would turn the goal-statement into the same kind of invisible-assumption document the skill exists to surface. The goal is to anchor the decomposition against whatever signal the user has already given about what they actually want, with explicit visibility into anything inferred.

Read whatever exists, in priority order:

  1. A pinned goal-statement at <repo-root>/docs-private/goal-<topic>-*.md (or legacy <topic>-goal-statement-*.md). Read as the canonical anchor when present.
  2. The plan source itself — file argument, in-session conversation, or referenced architecture doc (handled in step 1).
  3. Conversation context — anything the user told you about intent / success criteria / non-goals in this session.

Handle the goal-statement's Status: field as information, not as a refusal trigger:

  • Status: CONCRETE or absent (= concrete-by-default): proceed normally; keep content in mind for steps 4.5 and 6.
  • Status: DRAFT — <reason>: proceed, but surface a high-priority inline-office-hours backlog item ("Goal-statement is DRAFT (<reason>). The decomposition will proceed on the plan source + conversation; do you want to interrogate the goal first via /office-hours, or sharpen the file directly, or just steer mid-run as decomposition surfaces the implicit-goal questions?"). Don't bail.
  • Goal-statement absent entirely: proceed on the plan source / conversation; surface a backlog item ("No pinned goal-statement found. The decomposition will use the plan source and our conversation as the anchor; if you want a more durable anchor across compactions, recommend /goal-flight init <topic> later — for now, proceeding."). Don't bail.

Read the full file on GitHub · 279 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. today Changed · +2 lines · +14 tokens per session fbe141f83ec3
  2. 5d ago First seen · 277 lines · 8 tokens per session scan C ffdf338a8ee5

Subscribe to this mod's changes

decompose-plan is a command published in the GitHub repository simonrowland/goal-flight (20 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 4,961 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.