Command Palette

Search for a command to run...

Назад к скиллам
скилл № 97637

Reduce

Iteratively scan, verify, and apply budgeted safe coupling/dependency reductions across docs, modules, apps, or repos, ledgering structural candidates…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Reduce в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Reduce

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.

This is not a diff reviewer, not a designer of one chosen boundary, and not a general tidy pass. See "What this skill does not do".

Actions

Argument Action
(empty) Full pass over an inferred scope: scan → verify → apply step → route step → ledger
<scope> Same pass narrowed to a path, module, or altitude keyword (docs, code, app, repo)
dry-run [<scope>] Scan, verify, rank, and ledger only. Do not edit, branch, push, or file tracker items
change <old> <new> [<scope>] Change mode, read-only: find every site that states <old>, classify each, and propose what happens to it. No edits
change apply <old> <new> [<scope>] Change mode with edits: the same inventory, then, once the human confirms the site list, change the setup sites and convert them to a reference form
status Read the ledger and report open candidates, applied reductions, and what the next run should take
--repo <repo> (and the other target forms) Any action above, over several repositories: one pass per repository plus the cross-repository scan in phase B
help Print this table with one worked example per action

The model

Hub-and-spoke; read the spoke before the phase that needs it:

  • reference/coupling-model.md. What counts as coupling, the strength ladder, connascence axes, volatility weighting, per-altitude mechanisms, and the not-a-finding list. Read before scanning; findings are typed against it.
  • reference/remediations.md. Mechanism per finding kind, each with its over-abstraction counterweight and the sequencing rule (smallest mechanism first). Read before applying or routing anything.
  • reference/ledger.md. Ledger entry schema, status lifecycle, and re-run semantics. Read at phase A and phase H.
  • reference/change-mode.md. The change action: how the inventory finds every form of a value, the site classes and what happens to each, reference forms, the apply sequence, and its pitfalls. Read before any change run.
  • reference/cross-repo-copies.md. Files copied between the repositories in scope: what to exclude, how to measure, and how to route. Read before phase B of a run over two or more repositories.

Workflow

Phases run in order; each gate is hard. dry-run stops after D (ledger write included).

A. Orient. Resolve the repositories first: this one,

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • reference/change-mode.md
  • reference/coupling-model.md
  • reference/cross-repo-copies.md
  • reference/ledger.md
  • reference/remediations.md
  • scripts/collision-hotspots.sh
  • scripts/collision-hotspots.test.sh
  • scripts/cross-repo-dups.py
  • scripts/cross-repo-dups.test.sh
  • scripts/derivable-list.py
  • scripts/derivable-list.test.sh
  • scripts/test-helpers.sh
  • scripts/value-sites.py
  • scripts/value-sites.test.sh

FAQ

Что делает скилл Reduce?

Iteratively scan, verify, and apply budgeted safe coupling/dependency reductions across docs, modules, apps, or repos, ledgering structural candidates (dry-run, change, change apply, status). Use when: 'reduce coupling', 'decouple', 'these files always change together'. Not for boundary design: /architecture:improve; tidy: /code-tidying:tidy.

Как установить скилл Reduce?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Reduce запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Reduce с