Zum Inhalt springen
Skillpedia
Allgemeines Programmieren33k · #8896

reducing-entropy

Was er macht

Dieser Skill treibt deinen Agenten an, eine Codebasis so klein wie möglich zu machen, und bewertet Änderungen nach dem gesamten verbleibenden Code. Er ist für Entwickler gedacht, die aufgeblähten Code abbauen wollen, und läuft nur auf deine Anfrage.

Wann du ihn nutzt

  • ✓Wenn du ausdrücklich verlangst, die Menge an Code in einem Projekt zu verringern.
  • ✓Wenn eine Codebasis aufgebläht ist und du finden willst, was gelöscht werden kann.
  • ✓Wenn eine vorgeschlagene Änderung Code hinzufügen würde und du prüfen willst, ob es eine kleinere Option gibt.

Link zum Skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/reducing-entropy/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/reducing-entropy/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich will in diesem Modul finden, was ich löschen kann. Nutze reducing-entropy und halte die finale Codebasis so klein wie möglich.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent lädt eine der Denkweisen des Skills, fragt, ob das kleinstmögliche Ergebnis weniger Funktionen oder gar keine sein könnte, zählt Zeilen vor und nach jeder Änderung und bevorzugt das Löschen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Reducing Entropy

More code begets more code. Entropy accumulates. This skill biases toward the smallest possible codebase.

Core question: "What does the codebase look like after?"

Before You Begin

Load at least one mindset from references/

  1. List the files in the reference directory
  2. Read frontmatter descriptions to pick which applies
  3. Load at least one
  4. State which you loaded and its core principle

Do not proceed until you've done this.

The Goal

The goal is less total code in the final codebase - not less code to write right now.

  • Writing 50 lines that delete 200 lines = net win
  • Keeping 14 functions to avoid writing 2 = net loss
  • "No churn" is not a goal. Less code is the goal.

Measure the end state, not the effort.

Three Questions

1. What's the smallest codebase that solves this?

Not "what's the smallest change" - what's the smallest result.

  • Could this be 2 functions instead of 14?
  • Could this be 0 functions (delete the feature)?
  • What would we delete if we did this?

2. Does the proposed change result in less total code?

Count lines before and after. If after > before, reject it.

  • "Better organized" but more code = more entropy
  • "More flexible" but more code = more entropy
  • "Cleaner separation" but more code = more entropy

3. What can we delete?

Every change is an opportunity to delete. Ask:

  • What does this make obsolete?
  • What was only needed because of what we're replacing?
  • What's the maximum we could remove?

Red Flags

  • "Keep what exists" - Status quo bias. The question is total code, not churn.
  • "This adds flexibility" - Flexibility for what? YAGNI.
  • "Better separation of concerns" - More files/functions = more code. Separation isn't free.
  • "Type safety" - Worth how many lines? Sometimes runtime checks in less code wins.
  • "Easier to understand" - 14 things are not easier than 2 things.

When This Doesn't Apply

  • The codebase is already minimal for what it does
  • You're in a framework with strong conventions (don't fight it)
  • Regulatory/compliance requirements mandate certain structures

Reference Mindsets

See references/ for philosophical grounding.

To add new mindsets, see adding-reference-mindsets.md.


Bias toward deletion. Measure the end state.

Häufige Fragen

Läuft er von selbst?

Nein. Der Skill wird nur manuell aktiviert, wenn du ihn ausdrücklich anforderst.

Gewinnt weniger Code immer?

Der Skill misst den Erfolg an der endgültigen Codemenge. Eine Änderung, die Zeilen hinzufügt, kann daher abgelehnt werden, auch wenn sie sauberer aussieht.

Welche Kernfrage stellt er?

Wie sieht die Codebasis nach der Änderung aus?

Details

Originalbeschreibung des Autors

Manual-only skill for minimizing total codebase size. Only activate when explicitly requested by user. Measures success by final code amount, not effort. Bias toward deletion.

repo: davila7/claude-code-templates

Beliebtheit

GitHub-Sterne
33k
Platz im Ranking
#8896
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills