code-decompose

code-decompose is a skill for Claude Code, Codex from roarista/awesome-harness. It costs 34 tokens per session (1,455 once invoked), scanned A, original, MIT.

A planning workflow that breaks a substantial code change into small units that can each be built and checked independently.

In plain words
What is it for?
Planning features, bug fixes, refactors, and new modules, then assigning each unit to a builder and reviewing it against the same specification.
Why use it?
It makes the intended change explicit before coding and limits the risk of large, difficult-to-review edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; reads ~/.codex paths; mentions AGENTS.md.

Good fit Planning features, bug fixes, refactors, and new modules, then assigning each unit to a builder and reviewing it against the same specification.

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

Made for: Claude Code, Codex.

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 code-decompose

README.md
[![agentmods](https://agentmods.dev/badge/skills/roarista/awesome-harness/code-decompose/github.svg)](https://agentmods.dev/skills/roarista/awesome-harness/code-decompose)
Your own site
<a href="https://agentmods.dev/skills/roarista/awesome-harness/code-decompose"><img src="https://agentmods.dev/badge/skills/roarista/awesome-harness/code-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 code-decompose

Your own site · 80×15
<a href="https://agentmods.dev/skills/roarista/awesome-harness/code-decompose"><img src="https://agentmods.dev/badge/skills/roarista/awesome-harness/code-decompose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 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.00034 $0.01455
Opus 5.5 $0.00014 $0.00582
Sonnet 5.5 $0.00007 $0.00291
Haiku 4.5 $0.00003 $0.00145

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

Security

Grade A, and why

code-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 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.

codex/skills/code-decompose/SKILL.md · 86 lines

How it starts

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

code-decompose (Codex edition)

Steps 4-6 of THE PROCEDURE (~/.codex/AGENTS.md). Entry condition: codebase-first already returned a BUILD gate plus the residual gap. If it hasn't run, run it first — do not re-discover here.

The point: the change must be fully understood before any code is written — the code that exists and the code you intend to write — and that understanding must be written down precisely enough that it could be executed without further judgment. Decomposition is the expensive thinking step; execution is the cheap step done at volume.

Use one bounded Codex builder per unit and a distinct auditor against the same spec when native subagents are available. Never run sibling builders concurrently in a dirty checkout. If subagents are unavailable, preserve the separation in time: finish specing, build, then re-read the diff against the spec with independent-auditor eyes.

Phase 0 — FILE PLAN (mandatory, before any Unit)

Structure is the orchestrator's job (Ro 2026-10-03): builders lack the big picture, and "split it" yields unplanned files and functions cut midway. Before specing units:

  1. wc -l every file the change will touch or create (signatures via tools/skeleton.py/graphify; no body reads).
  2. Write the table:
path | one-line responsibility | public interface (signatures) | lines now -> budget after (<=200)
  1. A touched file that would exceed 200 gets its split planned as its own first unit: a move-only refactor (behavior unchanged, same tests green before and after), cut only at function/module boundaries, never mid-function. Later units are after: U1.
  2. Each unit's CHANGE names only files from the plan. A builder that needs another file, or would break a budget, stops and reports back; amend the plan first.

Phase 1 — Decompose (write the specs first, no code)

Start from the codebase-first discovery artifact (.scratch/discovery/<slug>.md if present) and carry its REUSE/ADAPT/REJECT verdicts and gate forward verbatim. Then produce:

Read the full file on GitHub · 86 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 · +16 lines · -80 tokens per session d7454f814e7c
  2. 2mo ago First seen · 70 lines · 114 tokens per session scan A e59d6a9957d7

Subscribe to this mod's changes

code-decompose is a skill published in the GitHub repository roarista/awesome-harness (1 stars, last pushed 4d ago), licensed MIT. It adds 34 tokens to every session and 1,455 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-08-31.

Related

code-decompose compared with skills from other repositories

code-decompose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-decomposeroarista/awesome-harnessSkill14d agoMITA34Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill314k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code