reduce

reduce is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 80 tokens per session (5,377 once invoked), scanned A, original, MIT.

A repeated repository cleanup pass that finds unnecessary dependencies between documents, code modules, applications, or repositories and safely reduces some of them.

In plain words
What is it for?
Use it to remove duplicated facts, replace hard-wired collaborators, name unclear values, and make other small behavior-preserving structural improvements.
Why use it?
It limits how far a change spreads through a project, while keeping larger or riskier design changes visible for separate planning.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the coupling plugin — 1 skill shipped together

Good fit Use it to remove duplicated facts, replace hard-wired collaborators, name unclear values, and make other small behavior-preserving structural improvements.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install coupling

Made for: Claude Code.

Or install coupling, the plugin that ships this one along with the rest of its 1 skill.

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 reduce

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/reduce/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/reduce)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/reduce"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/reduce/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 reduce

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/reduce"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/reduce.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,377 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 2
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
How audits are shown
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.00080 $0.05377
Opus 5.5 $0.00032 $0.02151
Sonnet 5.5 $0.00016 $0.01075
Haiku 4.5 $0.00008 $0.00538

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/collision-hotspots.sh, scripts/collision-hotspots.test.sh, scripts/cross-repo-dups.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.

plugins/coupling/skills/reduce/SKILL.md · 327 lines

How it starts

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

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current
  • Recent commits, git log --oneline -10
  • Working tree status (empty = clean), git status --porcelain | head -10

Variables

Arguments: $ARGUMENTS

Purpose

Answer one question, repeatedly: which dependency in the target transmits the most unnecessary change, and what is the smallest mechanism that stops the transmission? The target is this repository unless the arguments or the request name several; then it is those repositories and the dependencies between them, per ${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md. Each invocation is one pass. Scan, verify, reduce what is safely reducible within a scope budget, surface what is not, and record everything in a durable ledger so the next invocation resumes instead of restarting. Coupling goes down monotonically across runs; no single run tries to finish the job.

Two steps, split by the nature of the finding, never by convenience:

  • Apply step. Mechanical, contained, behavior-preserving reductions (weaken a connascence form, de-duplicate a stated fact into a pointer, inject a hard-wired volatile collaborator, name a magic value). Applied this run, verified, shipped as one structure-only change set.
  • Route step. Cross-file remediation and architectural judgment (move a boundary, introduce a seam, split a shared database, merge two repos' duplicated logic). Coupling findings of this shape exist to inform a human: they are surfaced, ranked, and routed, never auto-applied.

Read the full file on GitHub · 327 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 Changed · +3 lines · -120 tokens per session 7cbe5379264a
  2. 3d ago Changed fdf24e7f7f5c
  3. 5d ago Changed · -1 lines 72bb8f850673
  4. 6d ago Changed · +2 lines b7386493d1e8
  5. 11d ago Changed · +20 lines dc591a6964e5
  6. 13d ago Changed efe215bbedee
  7. 14d ago Changed d0e409ea55bd
  8. 18d ago Changed 4497212bca9b
  9. 25d ago Changed cbf73f175d71
  10. 28d ago First seen · 303 lines · 200 tokens per session scan A 4e6b306d568a

Subscribe to this mod's changes

reduce is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 5,377 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-30.

Related

reduce compared with skills from other repositories

reduce next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reducemelodic-software/claude-code-pluginsSkill33todayMITA80Claude Code
adversarial-analysisjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA37Claude Code
benchmark-before-optimizejimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA25Claude Code
handle-edge-casesjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA27Claude Code
validate-before-processjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA24Claude Code
display-grid-statejimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA25Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex