decompose

decompose is a skill for Claude Code from stefan-jansen/coding-agent-toolkit. It costs 60 tokens per session (1,598 once invoked), scanned A, original, MIT.

A planning skill that turns a written specification into a structured implementation plan. The plan contains issues that can be used to create a GitHub milestone and its individual issues.

In plain words
What is it for?
It is for decomposing a spec.md file into planned issues after an alignment step, ready for later project tracking.
Why use it?
It breaks a large request into trackable pieces without asking extra questions when the specification is already clear.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Good fit It is for decomposing a spec.md file into planned issues after an alignment step, ready for later project tracking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stefan-jansen/coding-agent-toolkit/decompose
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 stefan-jansen/coding-agent-toolkit --skill decompose
Clone the repo
git clone --depth 1 https://github.com/stefan-jansen/coding-agent-toolkit

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stefan-jansen/coding-agent-toolkit/decompose/github.svg)](https://agentmods.dev/skills/stefan-jansen/coding-agent-toolkit/decompose)
Your own site
<a href="https://agentmods.dev/skills/stefan-jansen/coding-agent-toolkit/decompose"><img src="https://agentmods.dev/badge/skills/stefan-jansen/coding-agent-toolkit/decompose/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 decompose

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefan-jansen/coding-agent-toolkit/decompose"><img src="https://agentmods.dev/badge/skills/stefan-jansen/coding-agent-toolkit/decompose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 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.00060 $0.01598
Opus 5.5 $0.00024 $0.00639
Sonnet 5.5 $0.00012 $0.00320
Haiku 4.5 $0.00006 $0.00160

Measured 2d ago against content hash 253dc4d5641b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

decompose 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (check_plan.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/decompose/SKILL.md · 143 lines

How it starts

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

decompose - turn the spec into issues

You are running the PLAN step of the workflow. Input is a spec.md written by align. Output is plan.md in the same work unit, in the shape defined below, which plan-issues parses to create a GitHub milestone and one issue per planned issue.

This step must not ask the user anything. The spec is the contract; if it is too incomplete to decompose, say so and send the user back to /align rather than interrogating them here. That rule is what makes this step runnable headlessly on either host.

Arguments

Arg Required Default Meaning
<path> no active work unit's spec.md The spec to decompose

If no path is given, locate the active work unit: walk up from the working directory to a .workspace/work/ (or work/) directory, then take the most recently modified subdirectory containing a spec.md. If that is ambiguous, name the candidates and pick the newest rather than asking.

Mechanism

Claude Code: enter plan mode (EnterPlanMode) and do the exploration and decomposition there, then write plan.md on exit. Plan mode is how you think; it is not the deliverable. A plan that stays in the transcript has not run this step.

This step is named decompose, not plan, because /plan is Claude Code's built-in prefix for entering plan mode and cannot be claimed by a skill or a command. Typing /plan gets you plan mode and the model's own default planning, which is the behaviour this step exists to replace.

Codex: run the decomposition directly, read-only, and write plan.md.

Both hosts produce the same file. Nothing downstream reads anything else, so no JSON schema and no structured-output mode is involved.

Required shape of plan.md

plan-issues parses this file. Any deviation makes the next step abort.

# Plan: <work unit name>

<one or two paragraphs: what this decomposes, and the gating order>

## <optional free-form sections: context, findings, architecture, verification>

### Milestone: `<version> - <title>`

**Issue 1 - <issue title>**

<body: files touched, the change, how it is verified, what "done" means>

**Issue 2 - <issue title>**

<body>

Read the full file on GitHub · 143 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed · +29 lines 253dc4d5641b
  2. 29d ago First seen · 114 lines · 60 tokens per session scan A e77e64482dc1

Subscribe to this mod's changes

decompose is a skill published in the GitHub repository stefan-jansen/coding-agent-toolkit (33 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 1,598 once invoked, about $0.0002 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-17.