dancing-bear: Skill for Claude Code

.claude/skills/improve-decompose-sweep/SKILL.md

improve-decompose-sweep is a skill for Claude Code from dancing-bear-show/dancing-bear. It costs 56 tokens per session (1,320 once invoked), scanned A, original, MIT.

A calibration workflow for improving a completed task-decomposition process. Task decomposition means breaking a large coding request into smaller pieces of work.

In plain words
What is it for?
Use it after decomposition runs to inspect telemetry, propose and apply evidence-based workflow changes, and record whether the calibration was validated.
Why use it?
It uses records from earlier runs to find patterns such as deferred tasks, excessive scope, or test failures instead of changing the process by guesswork.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is dancing-bear-show/dancing-bear's own configuration. It tells Claude Code how to work on dancing-bear itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dancing-bear configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./bin/workflow lint workflows/code/decompose-sweep.yaml.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/dancing-bear-show/dancing-bear/main/.claude/skills/improve-decompose-sweep/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dancing-bear-show/dancing-bear

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 improve-decompose-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep/github.svg)](https://agentmods.dev/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep)
Your own site
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep/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 improve-decompose-sweep

Your own site · 80×15
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/improve-decompose-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,320 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.00056 $0.01320
Opus 5.5 $0.00022 $0.00528
Sonnet 5.5 $0.00011 $0.00264
Haiku 4.5 $0.00006 $0.00132

Measured yesterday against content hash 179892e8a282, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

improve-decompose-sweep 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.

.claude/skills/improve-decompose-sweep/SKILL.md · 142 lines

How it starts

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

Improve Decompose Sweep

Post-run calibration for workflows/code/decompose-sweep.yaml. Reads run telemetry, identifies patterns, proposes and applies data-backed changes, then validates and logs the calibration.

When to Use

  • After a decompose-sweep workflow run completes
  • User says "improve decompose", "calibrate decompose", or "decompose retrospective"
  • Recurring calibration pass (monthly, or after 3+ runs)

Step 1: Collect Telemetry

Run telemetry files land in the workflow's workspace_dir. The workflow engine resolves {work_dir} to <cwd>/out/ (see src/workflow/cli.py), so sweep runs write to:

out/decompose-sweep/run-metrics.json
out/decompose-sweep/run-<timestamp>/run-metrics.json
# Find all sweep run telemetry files
find out/decompose-sweep -name "run-metrics.json" | sort

# Read the most recent
find out/decompose-sweep -name "run-metrics.json" | sort | tail -1 | xargs cat

Fallback — if no telemetry files exist (e.g., run was aborted, workspace cleaned), parse agent summary messages from conversation context and note the source in the calibration log entry.

Step 2: Analyze Patterns

From the collected metrics, compute:

Defer rate by reason How often each defer heuristic triggered. High rates indicate a threshold is too aggressive.

Reason Count % of candidates
file_not_large_enough N N%
has_open_pr N N%
recently_modified N N%
imports_too_tangled N N%

Overshoot rate Files that were split but output modules still exceed the target line count. Indicates the plan-splits stage is over-estimating how cleanly a file divides.

Test failure domains Which domains produced failing tests post-split. Cluster by root cause:

  • Import errors (re-export facade incomplete)
  • Missing shared fixtures (not extracted to shared submodule)
  • Circular dependencies introduced

Strategy accuracy

Strategy Used Met target Avg lines saved Avg output max
extract-submodules N N% N N
extract-package N N% N N
split-tests-by-class N N% N N
extract-helpers N N% N N

Read the full file on GitHub · 142 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. yesterday First seen · 142 lines · 56 tokens per session scan A 179892e8a282

Subscribe to this mod's changes

improve-decompose-sweep is a skill published in the GitHub repository dancing-bear-show/dancing-bear (7 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 1,320 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.

Related

improve-decompose-sweep compared with skills from other repositories

improve-decompose-sweep next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
improve-decompose-sweepdancing-bear-show/dancing-bearSkill7yesterdayMITA56Claude Code
gogolafkfreund/nixos_configSkill32yesterdayGPL-3.0A125Claude Code, Codex
google-workspace-authbobmatnyc/claude-mpmSkill1582mo agononeA22Claude Code
outlook-mcpmpalermiti/outlook-mcpSkill412d agoMITA96Claude Code, Codex
olkrlrghb/olkcliSkill2314d agoMITA28Claude Code, Codex
ghealthGoogle-Health-API/google-health-cliSkill2814mo agoApache-2.0A41Claude Code, Codex
ghealth-sharedGoogle-Health-API/google-health-cliSkill2814mo agoApache-2.0A22Claude Code, Codex