Command Palette

Search for a command to run...

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

reduce-system-complexity

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

Reduce total mechanism in a selected existing system or behavior path while conserving its agreed observable behavior and non-functional guarantees. Use when…

citypaulот citypaul★ 764 звезды на GitHub

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

Reduce System Complexity

Conserve behavior. Minimize mechanism.

Use this skill only after a concrete behavior path or subsystem has been selected and the intended result is net removal of mechanism. It owns the conservation ledger, whole-path mechanism accounting, first-principles minimum, and separate behavior and mechanism gates.

Keep it distinct from:

  • improve-codebase-architecture, which discovers and ranks architecture investments;
  • codebase-design, which designs a selected module's responsibility and complete caller-facing contract;
  • structure-codebase, which owns physical placement, packages, imports, enforcement, and migrations;
  • refactoring, which implements ordinary bounded behavior-preserving cleanup without a whole-path reduction claim;
  • functional reducer functions, Redux reducers, and state-management choices.

Read references/ledger-template.md before producing a diagnosis or implementation report. Read references/source-notes.md when explaining provenance or comparing this adaptation with its upstream source.

Operating Contract

  • Preserve the user's requested scope. Do not widen one path into a repository rewrite.
  • Diagnosis is read-only. The report is the only default write; implementation needs explicit authority.
  • Follow repository instructions, architecture decisions, glossaries, public contracts, and dirty-worktree constraints. Never destructively reset, checkout, or overwrite user or teammate changes.
  • Treat the implementation, tests, traces, history, incidents, and operator knowledge as evidence. Do not inherit the current decomposition as the target, but do not ignore undocumented constraints discovered in it.
  • Redact secrets, tokens, personal data, and production payloads from fixtures, traces, snapshots, and reports.
  • Scale the ledgers to risk. A local flag removal does not need the ceremony of a distributed migration; a data, authorization, concurrency, compatibility, or external-effect change does.
  • Call finite tests and observations preservation evidence, never proof of universal equivalence. State confidence and fidelity gaps.
  • Default all provider, integration, migration, failover, rollback, publication, and operational checks to read-only or a disposable sandbox. Never write to a live external system without specific authority for that effect.

Workflow

1. Fix scope, mode, and conserved contract

State:

  • the selected entry points, outcomes, callers, data, integrations, and operational path;
  • diagnosis or authorized implementation mode;
  • what “less mechanism” means for this scope;
  • excluded behavior and boundaries;
  • irreversible effects or published contracts that constrain the work.

Classify observed behavior before promising to conserve it:

Class Treatment
Documented or accepted contract Preserve unless the user authorizes a behavior change
Relied-upon observable behavior Treat as compatibility-sensitive, even when undocumented
Intended and currently supported or observed behavior with credible evidence Preserve and strengthen its oracle where needed; aspirational intent is a behavior change and returns to contract resolution plus tdd
Known bug or disputed behavior Surface for a product/domain decision; do not silently preserve or fix it
Unreachable, obsolete, or speculative internals Candidate for deletion only after reachability and consumer evidence

Inventory outputs, effects, errors, ordering, persistence, integrations, authorization, security, privacy, reliability, resource budgets, compatibility, concurrency, retries, migrations, and recovery behavior. Record each in the behavior-and-guarantee ledger with its evidence and gaps.

Characterisation tests reveal what the code does; they do not decide what it ought to do. During diagnosis, record missing oracles without editing. If implementation and test-harness work are separately authorized, load characterisation-tests and finding-seams when current behavior lacks a usable oracle. Load testing for behavior-level oracle design. Record the eventual mutation scope, but defer the automated mutation-testing harness until the reduction slice is otherwise ready for its PR.

At that end-of-phase PR-readiness gate, mutation testing is not meaningful for every proven-unreachable path, configuration-only change, generated boundary, or operational mechanism. Mark it N/A with reachability, configuration, contract, integration, or operational evidence instead. Never invent structural mutants or fake RED to satisfy the workflow.

Implementation remains diagnosis while any material behavior the proposed slice can affect has an unresolved evidence gap.

2. Baseline the whole mechanism

Trace each conserved behavior from trigger to outcome and recovery. Inventory applicable mechanism dimensions with the same scope and counting method that will be used aft

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

Установить reduce-system-complexity в Claude Code и Claude Desktop

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

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

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

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

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

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

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

LICENSEagents/openai.yamlreferences/ledger-template.mdreferences/source-notes.md

FAQ

Что делает скилл reduce-system-complexity?

Reduce total mechanism in a selected existing system or behavior path while conserving its agreed observable behavior and non-functional guarantees. Use when the user explicitly wants fewer branches, states, dependencies, layers, flags, retries, jobs, adapters, or operational moving parts and needs evidence that complexity was removed rather than relocated. Supports read-only diagnosis and authorized reduction slices. Not for routine cleanup, architecture-investment discovery, module-contract design, physical tree design, new behavior, functionality cuts, speculative rewrites, or Redux/functional reducer functions.

Как установить скилл reduce-system-complexity?

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

Скилл reduce-system-complexity запускает скрипты?

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

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

Сравнить reduce-system-complexity с