decompose

decompose is a skill for Claude Code from ninthwave-io/ninthwave. It costs 75 tokens per session (4,975 once invoked), scanned A, original, Apache-2.0.

A planning tool that turns a feature description or product requirements document into small, reviewable coding tasks. It maps which tasks depend on others and groups them into batches for nw, its work orchestrator.

In plain words
What is it for?
Use it when breaking down a feature, planning implementation work, or creating task files for an automated work queue.
Why use it?
It removes the need to manually split a large feature into appropriately sized pull requests and determine their order.

Skill for Claude Code

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

Good fit Use it when breaking down a feature, planning implementation work, or creating task files for an automated work queue.

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

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/ninthwave-io/ninthwave/decompose/github.svg)](https://agentmods.dev/skills/ninthwave-io/ninthwave/decompose)
Your own site
<a href="https://agentmods.dev/skills/ninthwave-io/ninthwave/decompose"><img src="https://agentmods.dev/badge/skills/ninthwave-io/ninthwave/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/ninthwave-io/ninthwave/decompose"><img src="https://agentmods.dev/badge/skills/ninthwave-io/ninthwave/decompose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,975 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.00075 $0.04975
Opus 5.5 $0.00030 $0.01990
Sonnet 5.5 $0.00015 $0.00995
Haiku 4.5 $0.00007 $0.00498

Measured 3mo ago against content hash 1d46fd31136a, 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 3mo 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.

skills/decompose/SKILL.md · 354 lines

How it starts

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

Interactive Questions (CRITICAL)

This skill is highly interactive. You MUST use your interactive question tool to ask the user questions -- do NOT simply print a question as text and wait for a response.

Tool names by platform: AskUserQuestion (Claude Code), question (OpenCode), request_user_input (Codex), ask_user (Copilot CLI, Gemini CLI). Use whichever is available in your environment.

Every question must follow this structure:

  1. Re-ground: State the project, the current branch, and what phase you're in. Assume the user hasn't looked at this window in 20 minutes.
  2. Explain simply: Describe the situation in plain English. Say what it does, not what it's called.
  3. Recommend: State which option you'd pick and why. Include a one-line reason.
  4. Options: Lettered options: A), B), C). When an option involves effort, indicate the scale.

Instructions

This skill decomposes a feature spec into work items sized for individual human-reviewable PRs. Each item is written as an individual file in .ninthwave/work/, ready for orchestration via nw.

Treat .ninthwave/work/ as the live queue of open work: /decompose populates it, nw works through it, and completed work is intentionally looked up through merged PRs, nw history, nw logs, and git history rather than retained in a done lane.

Prerequisites: ninthwave (or nw) must be in PATH. .ninthwave/work/ directory must exist.


Phase 1: INTAKE

Goal: Identify and understand the feature to decompose.

  1. The user may provide:

    • A file path to a spec/PRD/phase doc
    • A reference to a project doc
    • A verbal description of the feature
  2. If a file path or doc reference is provided, read it.

  3. If the description is verbal/ambiguous, AskUserQuestion to clarify scope.

  4. Summarize the feature scope in 3-5 bullet points and confirm with the user.

  5. Internalize external specs. If the spec or plan doc lives outside the repo (absolute path, home directory, ~/.claude/, etc.), it must be brought into the repo so workers can access it. Workers clone from remote into isolated worktrees -- they cannot read files outside the repo.

Read the full file on GitHub · 354 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. 3mo ago First seen · 354 lines · 75 tokens per session scan A 1d46fd31136a

Subscribe to this mod's changes

decompose is a skill published in the GitHub repository ninthwave-io/ninthwave (8 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 4,975 once invoked, about $0.0003 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-08-31.

Related

decompose compared with skills from other repositories

decompose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
decomposeninthwave-io/ninthwaveSkill85mo agoApache-2.0A75Claude Code
aoe-triageagent-of-empires/agent-of-empiresSkill5.3ktodayMITA171Claude Code, Codex
pr-stewardagent-of-empires/agent-of-empiresSkill5.3ktodayMITA130Claude Code, Codex
groom-readyagent-of-empires/agent-of-empiresSkill5.3ktodayMITA117Claude Code, Codex
red-mainagent-of-empires/agent-of-empiresSkill5.3ktodayMITA78Claude Code, Codex
codeql-reviewagent-of-empires/agent-of-empiresSkill5.3ktodayMITA72Claude Code, Codex
aoe-invariantsagent-of-empires/agent-of-empiresSkill5.3ktodayMITA92Claude Code, Codex