Code Size Minimizer

Reducing entropy

by davila7 · MIT license · ★ 32,299 on GitHub

Reducing entropy cover

Manual-only skill for minimizing total codebase size. Only activate when explicitly requested by user.

---
name: reducing-entropy
description: 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.
---

# 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

Overview

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

Manual install (npx, ZIP)
Claude Codenpx skills add davila7/claude-code-templates --skill reducing-entropy -g -a claude-code
Claude Code (degit)npx degit davila7/claude-code-templates/cli-tool/components/skills/productivity/reducing-entropy#main ~/.claude/skills/reducing-entropy
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md2.5 KB
Read SKILL.md here
davila7/main1 file shown
SKILL.md
Show the full text82 lines

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.

1---
2name: reducing-entropy
3description: 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.
4---
5 
6# Reducing Entropy
7 
8More code begets more code. Entropy accumulates. This skill biases toward the smallest possible codebase.
9 
10**Core question:** "What does the codebase look like *after*?"
11 
12## Before You Begin
13 
14**Load at least one mindset from `references/`**
15 
161. List the files in the reference directory
172. Read frontmatter descriptions to pick which applies
183. Load at least one
194. State which you loaded and its core principle
20 
21**Do not proceed until you've done this.**
22 
23## The Goal
24 
25The goal is **less total code in the final codebase** - not less code to write right now.
26 
27- Writing 50 lines that delete 200 lines = net win
28- Keeping 14 functions to avoid writing 2 = net loss
29- "No churn" is not a goal. Less code is the goal.
30 
31**Measure the end state, not the effort.**
32 
33## Three Questions
34 
35### 1. What's the smallest codebase that solves this?
36 
37Not "what's the smallest change" - what's the smallest *result*.
38 
39- Could this be 2 functions instead of 14?
40- Could this be 0 functions (delete the feature)?
41- What would we delete if we did this?
42 
43### 2. Does the proposed change result in less total code?
44 
45Count lines before and after. If after > before, reject it.
46 
47- "Better organized" but more code = more entropy
48- "More flexible" but more code = more entropy
49- "Cleaner separation" but more code = more entropy
50 
51### 3. What can we delete?
52 
53Every change is an opportunity to delete. Ask:
54 
55- What does this make obsolete?
56- What was only needed because of what we're replacing?
57- What's the maximum we could remove?
58 
59## Red Flags
60 
61- **"Keep what exists"** - Status quo bias. The question is total code, not churn.
62- **"This adds flexibility"** - Flexibility for what? YAGNI.
63- **"Better separation of concerns"** - More files/functions = more code. Separation isn't free.
64- **"Type safety"** - Worth how many lines? Sometimes runtime checks in less code wins.
65- **"Easier to understand"** - 14 things are not easier than 2 things.
66 
67## When This Doesn't Apply
68 
69- The codebase is already minimal for what it does
70- You're in a framework with strong conventions (don't fight it)
71- Regulatory/compliance requirements mandate certain structures
72 
73## Reference Mindsets
74 
75See `references/` for philosophical grounding.
76 
77To add new mindsets, see `adding-reference-mindsets.md`.
78 
79---
80 
81**Bias toward deletion. Measure the end state.**
82 
View all files on GitHub →

Details

License
MIT
Stars on the repo
★ 32,299
Checked
Source
davila7/claude-code-templates ↗
Creator
davila7 · 212 listings
View creator

Similar skills

See all →

More from davila7

Skill2D Game Developmentdavila7/claude-code-templates · by davila72D game development principles. Sprites, tilemaps, physics, camera.★ 32.3k GitHub starsSkill3D Game Development Principlesdavila7/claude-code-templates · by davila73D game development principles. Rendering, shaders, physics, cameras.★ 32.3k GitHub starsSkill3D Web Experience Builderdavila7/claude-code-templates · by davila7Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.★ 32.3k GitHub starsSkillSplit Test Setupdavila7/claude-code-templates · by davila7When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," or "hypothesis." For tracking implementation, see analytics-tracking.★ 32.3k GitHub starsAgentResearch Literature Synthesizerdavila7/claude-code-templates · by davila7Academic research synthesis specialist. Use PROACTIVELY for comprehensive research on academic topics, literature reviews, technical investigations, and well-cited analysis combining multiple sources. <example>Context: A podcast episode needs a segment grounded in peer-reviewed evidence with formal citations. user: "Research the current state of transformer efficiency techniques for the episode, with proper academic citations." assistant: "I'll use the academic-research-synthesizer agent to search arXiv and Semantic Scholar, extract full-text findings via WebFetch, and produce a cited literature synthesis with confidence levels." <commentary>Use academic-research-synthesizer (not comprehensive-researcher) when the episode segment needs peer-reviewed sourcing, formal citation format, and explicit confidence tagging rather than general-purpose multi-source coverage.</commentary></example> <example>Context: The episode-orchestrator has routed a "literature review" request for a technical deep-dive segment. user: "Summarize the research landscape on federated learning privacy guarantees." assistant: "I'll invoke academic-research-synthesizer to systematically search academic sources, note peer-review status per source, and synthesize consensus vs. open debates."</example>★ 32.3k GitHub starsAgentAcademic Research Specialistdavila7/claude-code-templates · by davila7Academic research specialist for scholarly sources, peer-reviewed papers, and academic literature. Use PROACTIVELY for research paper analysis, literature reviews, citation tracking, and academic methodology evaluation. <example>Context: The research-orchestrator has kicked off Phase 4 parallel research on 'efficacy of intermittent fasting' and needs peer-reviewed evidence. user: "Find the academic evidence on intermittent fasting outcomes." assistant: "I'll use the academic-researcher agent to search Semantic Scholar, PubMed, and OpenAlex for peer-reviewed studies and write structured findings to academic-research.md." <commentary>The request is specifically for scholarly/peer-reviewed evidence rather than general web coverage or code, so academic-researcher (not web-researcher or technical-researcher) is the right specialist.</commentary></example> <example>Context: The user wants a literature review comparing methodologies across studies on a topic. user: "Can you review the literature on transformer model interpretability and identify research gaps?" assistant: "Let me invoke the academic-researcher agent to pull foundational and recent papers, extract methodologies, and surface open research gaps." <commentary>Literature review, methodology extraction, and research-gap identification are core academic-researcher capabilities, distinct from technical-researcher's focus on code repositories and implementations.</commentary></example>★ 32.3k GitHub stars