Borrowing it
Nothing to install: this file belongs to dancing-bear-show/dancing-bear. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dancing-bear-show/dancing-bear/main/.claude/skills/decompose/SKILL.mdgit clone --depth 1 https://github.com/dancing-bear-show/dancing-bearWrote 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.
[](https://agentmods.dev/skills/dancing-bear-show/dancing-bear/decompose)<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/decompose"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/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.
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/decompose"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/decompose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.02615 |
| Opus 5.5 | $0.00015 | $0.01046 |
| Sonnet 5.5 | $0.00008 | $0.00523 |
| Haiku 4.5 | $0.00004 | $0.00262 |
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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Decompose
Split an oversized Python source or test file into focused submodules. The original module is deleted and every import site is updated to name its new module directly — no re-export facades. The companion workflow workflows/code/decompose-sweep.yaml automates this across an entire domain.
When to Use
- A file exceeds the size thresholds below
- User says "decompose", "split", "break up", or "too large"
- Code review flags a file as too large to review
- Maintenance pass on a domain you're touching anyway
Size Thresholds
Calibrated against the actual file distribution in this repo:
| File type | Flag for review | Strong candidate | Split immediately |
|---|---|---|---|
Source module (src/<domain>/*.py) |
500+ lines | 700+ lines | 900+ lines |
Test file (tests/**/*.py) |
700+ lines | 850+ lines | 1000+ lines |
| Helper/utility module | 400+ lines | 550+ lines | 700+ lines |
Rationale: source files in this repo cluster around 400-600 lines with the top 5 ranging 915-1041; test files cluster around 700-900 with the top at 1084. Thresholds are set to catch genuine outliers, not routine files.
Step 1: Identify Candidates
# Find large source files in a domain
find src/<domain>/ -name "*.py" -not -path "*/__pycache__/*" | xargs wc -l | sort -rn | head -20
# Find large test files
find tests/<domain>_tests/ -name "*.py" | xargs wc -l | sort -rn | head -10
# Repo-wide (skip venv, pycache)
find . -name "*.py" \
-not -path "./.venv/*" \
-not -path "*/__pycache__/*" \
-not -path "*/.claude/*" \
| xargs wc -l | sort -rn | head -20
Step 2: Analyze Structure
Read the full file, then identify:
- Split boundaries: test classes, functional groupings (producers vs consumers), feature areas, command groups
- Shared state: fixtures, base classes, constants, helpers used by multiple groups
- Dependency map: which symbols are imported by other files in the package
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.
- yesterday First seen · 232 lines · 38 tokens per session scan A f4c7d6f4bb62
decompose is a skill published in the GitHub repository dancing-bear-show/dancing-bear (7 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 2,615 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-11-07.
decompose compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| decomposedancing-bear-show/dancing-bear | Skill | 7 | yesterday | MIT | A | 38 | Claude Code |
| biopythonsynthetic-sciences/openscience | Skill | 4.4k | today | Apache-2.0 | A | 76 | Claude Code, Codex |
| python-replgptme/gptme | Skill | 4.5k | today | MIT | A | 15 | Claude Code, Codex |
| dd-code-generationDataDog/pup | Skill | 1.0k | yesterday | Apache-2.0 | A | 16 | Claude Code |
| fastapiericrisco/rsc-harness | Skill | 555 | 4d ago | MIT | A | 94 | Claude Code, Codex |
| pythonericrisco/rsc-harness | Skill | 555 | 4d ago | MIT | A | 94 | Claude Code, Codex |
| djangoericrisco/rsc-harness | Skill | 555 | 4d ago | MIT | A | 84 | Claude Code, Codex |