Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reducer

БесплатноБез исполняемых скриптовНе проверен

WHEN reducing whole-system complexity—branches, state, dependencies, layers, or moving parts—in an existing system or feature; NOT for functionality cuts or…

mintuzот mintuz★ 38 звёзд на GitHub

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

Reducer

Conserve behaviour. Minimise mechanism.

Conservation law

  • Preserve every supported behaviour and non-functional guarantee in scope: outputs, side effects, errors, ordering, persistence, integrations, authorisation, security, privacy, reliability, resource budgets, and compatibility (principle-preserve-unrelated-work).
  • Treat a proposal to remove supported behaviour as a scope change, not a reduction. Delete supported behaviour only after a recorded owner decision withdraws it. Report the withdrawal separately from mechanism reduction (principle-stay-in-scope).
  • Derive the target from domain truths and external constraints, not the current implementation (principle-redesign-from-first-principles).
  • Measure the whole system. Moving a branch, dependency, state transition, or failure mode across a boundary is not a reduction (principle-subtract-before-you-add).
  • Keep essential complexity visible. Optimise complete change, request, and failure paths for maintainers and operators (principle-minimize-reader-load).
  • Prefer subtraction and collapse. Treat cyclomatic complexity and line count as signals, not objectives.

1. Contract

State the scope, outcome, and mode. Diagnosis produces a design without edits; implementation changes the system in reversible slices.

Inventory entry points, callers, tests, state, integrations, configuration, operations, and relevant decisions. Create a behaviour ledger:

Behaviour or guarantee Trigger Outcome and side effects Boundary Oracle or gap

Include errors, edge cases, ordering, concurrency, retries, migration, compatibility, and applicable non-functional guarantees. Diagnosis records missing oracles as proof obligations. Before product edits, implementation captures affected gaps with characterisation tests or stable pre-change evidence such as fixtures, snapshots, traces, or recorded input/output pairs (principle-capture-the-baseline).

Complete when: every in-scope behaviour and boundary has preservation evidence or an explicit proof gap, and the allowed change surface is clear.

2. Baseline the whole mechanism

Trace every behaviour end to end:

Mechanism Behaviour served Owner Complexity cost Essential constraint Evidence Disposition

Count applicable dimensions with the same scope and method before and after:

  • Control: aggregate and maximum cyclomatic complexity, conditions, error, retry, fallback, and ordering paths.
  • State and time: states, transitions, mutable owners, caches, queues, tasks, callbacks, locks, synchronisation points, lifecycle phases. Count a state space by the combinations its representation admits across all its fields, not by the number of fields. Separate the admitted combinations from the valid and reachable ones. Name the invariant that excludes the rest.
  • Structure: modules, types, layers, hops, internal and external dependencies, cycles, adapters, representations.
  • Variability and operations: flags, modes, configuration, extension points, deployables, jobs, migrations, monitors, failure and recovery paths.

Record a dimension the evidence shows is absent as 0, not as a proof gap; mark N/A only dimensions irrelevant to the change. Include tests and operational machinery when they impose ongoing cost; exclude generated artifacts unless their source or runtime mechanism changes. A smaller function or diff is not evidence unless the complete mechanism shrinks.

Complete when: every mechanism on an in-scope behaviour path is accounted for, every listed dimension is counted with the same scope and method or marked N/A, and the baseline shows where complexity is created, transferred, and paid.

3. Derive the minimum

Ignore the current decomposition and answer from first principles:

  1. Which outcomes and guarantees must exist?
  2. Which domain facts and decisions are irreducible?
  3. Which external boundaries are fixed, and who must own state?
  4. What is the shortest coherent path from trigger to outcome?

Sketch the minimum mechanism. Name the constraint that requires each remaining part, then compare it with the baseline. Seek leverage in this order:

  1. Delete unsupported paths, options, flags, configuration, fallbacks, and speculative machinery (principle-foundational-thinking).
  2. Unify duplicated policy, representation, state, and ownership (principle-derive-from-one-owner).
  3. Shrink decision and state spaces; prefer complete declarative rules or straight-line operations (principle-model-the-domain, principle-narrow-state-lifetime).
  4. Flatten pass-through layers, translation chains, coordination, and temporal hops (principle-minimize-reader-load).
  5. Replace custom machinery with a stable primitive only when total ownership and operational
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

agents/openai.yaml

FAQ

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

WHEN reducing whole-system complexity—branches, state, dependencies, layers, or moving parts—in an existing system or feature; NOT for functionality cuts or unproven rewrites; derives the minimum mechanism from first principles and proves behavior and guarantees are conserved.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить reducer с