Logo: Reduce System Complexity

Reduce System Complexity

Communautéit
citypaul
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.

Add to TypingMind

Iwwersiicht

Editeurcitypaul
Repository.dotfiles
Skill-Nummreduce-system-complexity
Stären
740
Forks
96
Matgeliwwert Dateien
3
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    citypaul huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Reduce System Complexity an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/citypaul/.dotfiles/tree/main/claude/.claude/skills/reduce-system-complexity
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/citypaul/.dotfiles.git /tmp/.dotfiles
mkdir -p .claude/skills
cp -r /tmp/.dotfiles/claude/.claude/skills/reduce-system-complexity .claude/skills/reduce-system-complexity
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Reduce System Complexity an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Reduce System Complexity automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Reduce System Complexity net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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:

ClassTreatment
Documented or accepted contractPreserve unless the user authorizes a behavior change
Relied-upon observable behaviorTreat as compatibility-sensitive, even when undocumented
Intended and currently supported or observed behavior with credible evidencePreserve and strengthen its oracle where needed; aspirational intent is a behavior change and returns to contract resolution plus tdd
Known bug or disputed behaviorSurface for a product/domain decision; do not silently preserve or fix it
Unreachable, obsolete, or speculative internalsCandidate 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 afterward:

  • Control — decisions, conditions, ordering, error, retry, fallback, and recovery paths. Cyclomatic complexity may be one local signal, not a cross-system total.
  • State and time — states, transitions, mutable owners, caches, queues, tasks, callbacks, locks, synchronization points, and lifecycle phases.
  • Structure — modules, representations, layers, hops, internal and external dependencies, cycles, adapters, and translations.
  • Variability and operations — flags, modes, configuration, extension points, deployables, jobs, migrations, monitors, runbooks, and failure handling.

Include tests and operational machinery when they impose ongoing ownership cost. Exclude generated artifacts unless their source, build, or runtime mechanism changes. Mark irrelevant dimensions N/A.

For mixed runtimes, include runtime entries and conversions across consumers and implementations in the before/after inventory, rather than counting only wrappers removed at the entry point. Read the Effect runtime reference when that path uses Effect.

Do not combine unlike counts into a synthetic score. A smaller function, directory, or diff is not a reduction when callers, operators, dependencies, or recovery paths inherit the removed burden.

3. Derive a minimum from constraints

Answer independently of the current shape:

  1. Which outcomes and non-functional guarantees must exist?
  2. Which domain decisions and external constraints are irreducible?
  3. Which boundaries are fixed, and who must own state, time, failure, and recovery?
  4. What is the shortest coherent path from trigger to observable outcome?

Sketch the minimum plausible mechanism and name the constraint that earns every remaining part. Seek leverage in this order:

  1. Delete proven-obsolete paths, options, flags, configuration, fallbacks, and speculative machinery.
  2. Unify duplicated policy, representation, state, and ownership.
  3. Shrink decision and state spaces.
  4. Remove pass-through layers, translation chains, temporal hops, and coordination.
  5. Replace custom machinery with an established primitive only when total lifecycle and operational cost fall; use evaluate-existing-solutions for a consequential dependency or tool choice.

Reject proposals that merely rename, split, wrap, relocate, or conceal complexity. A deeper module may improve callers while retaining or increasing internal mechanism; that is a valid codebase-design outcome but not, by itself, a successful reduction.

4. Select a complete reduction

Rank candidates qualitatively:

  1. Prefer removal of one complete mechanism over partial hiding.
  2. Prefer stronger preservation evidence and fewer fidelity gaps.
  3. Use smaller blast radius and easier recovery as tie-breakers.

For the selected candidate, record:

  • the exact mechanism and conserved behaviors;
  • objective before/target observations per applicable dimension;
  • affected callers, data, integrations, operations, and public contracts;
  • missing oracles and other proof obligations;
  • rollout, observability, compatibility, data migration, and recovery needs;
  • the terminal state in which old machinery is gone.
  • for a multi-slice program, the plan/ledger identity, terminal slice, and class of each slice: reduction transition or terminal reduction.

Prefer a small reversible slice. When reversal is impossible or unsafe, define a guarded forward-recovery path before implementation. Expand/contract migrations may temporarily add a bridge, flag, dual write, or compatibility shim; give each one an owner, removal condition, and bounded lifetime. Record N/A when a transition introduces no temporary bridge. Do not claim reduction until the terminal state removes the superseded mechanism.

Diagnosis stops here and produces the report. If multiple delivery slices are needed, use planning after the complete reduction and gates are defined.

5. Reduce through the REFACTOR path

Only continue with implementation when authorized.

Classify the authorized slice before editing:

  • Reduction transition — an independently verifiable program increment that preserves the conserved contract but may temporarily leave or add mechanism. It references the plan/ledger and terminal slice, records owner/removal/bounded-lifetime metadata for any bridge (N/A when none), and keeps mechanism gate: pending — no net-reduction claim.
  • Terminal reduction — the slice that removes the superseded mechanism and expired bridges. It references the program/ledger and discharges prior transition obligations, or records N/A — authorized single terminal slice. It may claim net reduction only after both gates pass.

A transition can be a safe mergeable increment while the program remains unfinished. Do not describe it as a completed reduction or let it lose the reducer ledger merely because its own mechanism gate is pending.

A behavior-preserving reduction begins from passing behavior oracles plus proportionate reachability, configuration, contract, integration, and operational evidence. It is a REFACTOR path, not a reason to fabricate a failing test that asserts branch, layer, state, or dependency counts. Mutation-check the accumulated result where applicable once the slice is otherwise ready for its PR. If the desired outcome changes observable behavior or fixes a disputed bug, stop this workflow, resolve the intended contract, and use tdd for the behavior change.

For each safe slice:

  1. Record the pre-slice state and run affected behavior, type, build, integration, and operational checks.
  2. Identify database, queue, deployment, message, authorization, concurrency, and other irreversible effects before editing.
  3. Make the smallest coherent change that advances the complete reduction.
  4. Preserve behavior-facing tests. Retire implementation-shaped tests only after equivalent behavioral coverage is in place; the end-of-phase mutation or alternate-evidence gate will verify the accumulated suite before the PR.
  5. Run focused checks immediately, then the broader relevant suite and provider/contract checks where mocks cannot establish fidelity. Keep provider checks read-only or sandboxed unless explicit authority covers the exact live effects; never perform live migrations, failover, rollback, publication, or external writes by implication.
  6. Remove superseded code, dependencies, flags, state, configuration, tests of discarded internals, and temporary bridges whose removal condition is met.
  7. Re-read the full path, including callers, operations, failure, and recovery.

If evidence fails or a new affected behavior appears, stop. Recover only edits and effects owned by this slice, without destroying unrelated work. Never use modified behavior as the pre-change baseline.

6. Apply class-specific gates

Behavior gate

  • Every affected ledger entry has passing preservation evidence at the required fidelity.
  • Outcomes, effects, errors, ordering, boundaries, and non-functional constraints remain within the agreed contract.
  • Boundary cases implied by each removed decision, state, dependency, or fallback have been exercised where reachable and meaningful; otherwise explicit reachability, configuration, contract, integration, or operational evidence covers the claim.
  • Remaining uncertainty and untested provider behavior are explicit.

Mechanism gate

  • Recount the same dimensions over the same scope and method.
  • Map every newly introduced part to the old mechanism it replaces or the essential constraint it serves.
  • Inspect callers, adapters, operations, deployment, and recovery for exported burden.
  • Confirm the superseded mechanism and expired migration bridges are gone.
  • Confirm total lifecycle ownership fell. A net-neutral or merely displaced terminal result fails; a transition-only result keeps this gate pending and means the program, not necessarily the mergeable slice, is unfinished.

For a reduction transition, the behavior gate and independent slice verification must pass, while the mechanism gate remains explicitly pending and no net-reduction claim is allowed. For a terminal reduction, both gates must pass before claiming realized reduction.

Report

Write a fresh Markdown report using references/ledger-template.md. Default to a timestamped file in the OS temporary directory so diagnosis does not dirty the repository. Use a durable project path only when requested or already established by the project.

For diagnosis, report proposed reductions, target deltas, evidence gaps, risks, and the next decision. Claim neither equivalence nor realized reduction.

For a PR-ready reduction transition, lead with the conserved contract and program/terminal-slice link; show behavior gate: pass, independent verification, the single end-of-phase mutation result or explicit N/A alternate evidence, any bridge ownership/removal metadata (N/A when none), and mechanism gate: pending — no net-reduction claim.

For a terminal reduction, lead with the program/ledger link (or N/A — authorized single terminal slice), conserved contract, and removed mechanism; show like-for-like before/after evidence, list all verification performed, confirm prior transition obligations and expired bridges are discharged, and disclose remaining fidelity gaps or essential complexity.

Completion Check

  • Was a concrete system or behavior path selected before this workflow began?
  • Are documented, relied-upon, intended, disputed, and obsolete behaviors distinguished?
  • Does every affected guarantee have proportionate preservation evidence or an explicit blocking gap?
  • Does the baseline include callers and operational machinery, not only edited files?
  • Is the minimum derived from real constraints rather than fashionable shape?
  • Does the terminal state remove mechanism rather than move or hide it?
  • Is every implementation artifact classified as a reduction transition or terminal reduction, with the program and terminal slice linked?
  • Are temporary migration mechanisms owned, bounded, and scheduled for removal, or explicitly N/A when none exist?
  • Were behavior and mechanism gates evaluated separately?
  • Does a transition keep the mechanism gate pending without a net-reduction claim, while only a terminal reduction claims both gates passed?
  • Are claims calibrated to the evidence?

Attribution

Adapted from Adam Bulmer's MIT-licensed reducer skill. The local version narrows and renames the trigger, replaces false-precision ranking with qualitative evidence, integrates the surrounding testing and architecture skills, and adds implementation, migration, privacy, and dirty-worktree safeguards. See references/source-notes.md and LICENSE for pinned provenance and license terms.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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/func...

Firwat Reduce System Complexity op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Reduce System Complexity besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Reduce System Complexity an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/citypaul/.dotfiles/tree/main/claude/.claude/skills/reduce-system-complexity an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Reduce System Complexity benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Reduce System Complexity benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Reduce System Complexity domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Reduce System Complexity gratis?

citypaul huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇