reducing-entropy: скилл для Claude Code — что делает и как установить
Скилл, который мерит успех итоговым объёмом кода, а не потраченными усилиями. Вызывается вручную и режет проект, пока тот не станет меньше.
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a claude-codeЧто делает reducing-entropy
Скилл работает только по явному вызову: сам он не сработает, пока вы его не попросите. Критерий успеха — объём кода после работы, а не то, сколько строк пришлось написать. Написать 50 строк, которые удаляют 200, здесь считается выигрышем, а сохранение 14 функций ради экономии 2 — проигрышем.
Перед началом он требует загрузить одну установку из references/: перечисляет файлы, читает описания из frontmatter, выбирает подходящую и называет её главный принцип. Пока это не сделано, дальше он не идёт. Если в установленной копии каталога references/ нет, первый же шаг упирается в пустоту, так что содержимое скилла стоит проверить сразу после установки.
Дальше идут три вопроса: каким будет самый маленький результат, уменьшит ли правка общий объём, что можно удалить. Красные флаги — «оставить как есть», «так гибче», «чище разделение ответственности»: каждое из этого обычно добавляет строк. Границы скилл оговаривает сам: проект с жёсткими конвенциями фреймворка или структура, заданная комплаенсом, под него не подходят.
Какие задачи решает
- вырезать фичу вместо того, чтобы обвешивать её флагами
- посчитать строки до и после правки и отказаться от выросшего варианта
- найти код, который стал лишним после замены
- остановить «улучшение структуры», из-за которого файлов стало больше
- свести 14 функций к 2 без потери поведения
Примеры запросов агенту
- Прогони скилл reducing-entropy по модулю `billing`: что здесь можно удалить?
- Вызови reducing-entropy и посчитай строки до и после этой правки
- Используй reducing-entropy: замени эти классы одной функцией, если итоговый код станет короче
Как установить reducing-entropy
1Через Skills CLI (Vercel)
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a claude-code2Вручную: положить файлы
~/.claude/skills/reducing-entropy/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/reducing-entropy/
1Через Skills CLI (Vercel)
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a codex2Вручную: положить файлы
.agents/skills/reducing-entropy/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a cursor2Вручную: положить файлы
.cursor/skills/reducing-entropy/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install softaworks/agent-toolkit reducing-entropy2Вручную: положить файлы
.github/skills/reducing-entropy/SKILL.md1Через Skills CLI (Vercel)
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a gemini-cli2Командой платформы
gemini skills install https://github.com/softaworks/agent-toolkit --path skills/reducing-entropyВручную: положить файлы
.devin/skills/reducing-entropy/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add softaworks/agent-toolkit --skill reducing-entropy -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора3
Весь набор →Похожие
Вопросы о reducing-entropy
Как установить reducing-entropy в Claude Code?
Выполните npx skills add softaworks/agent-toolkit --skill reducing-entropy -a claude-code. Файл скилла окажется по пути ~/.claude/skills/reducing-entropy/SKILL.md.
Что делает reducing-entropy?
Заставляет агента считать строки до и после правки и отклонять всё, что увеличивает общий объём кода. Каждое изменение он рассматривает как повод что-то удалить.
Зачем скиллу каталог `references/`?
Перед работой он загружает оттуда одну установку и называет её главный принцип. Без этого шага он дальше не идёт, поэтому пустой каталог останавливает его на старте.
Исходный текст
SKILL.md · MIT
--- 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 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.**
© softaworks · MIT · softaworks/agent-toolkit