r/claudeskills • u/EL4CTEO • 1h ago
Showcase Less code. Same tests passing.
Meet shrink-anything:
Coding agents write code faster than anyone deletes it. Functions nothing calls, files nothing imports, packages nothing uses. So I built a tool that deletes it, and proves nothing broke.
shrink-anything takes any project and its test command:
- Scan. Finds dead code, dead files, unused dependencies, unused assets and duplicates. 19 languages.
- Cut. Deletes them in a batch and runs your tests.
- Bisect. If a test fails, it finds the one cut that broke it and puts only that one back.
- Prove. A cut stays only if the tests pass with as many tests as before. One command undoes everything.
On the demo TypeScript app: 106 lines to 58, 3 dependencies to 1, same 3 tests green.
It ships as a CLI, a Claude Code plugin, an MCP server and a skill.
https://github.com/EL4CTEO/shrink-anything · npm i -g u/el4cteo/shrink-anything · MIT
1
Upvotes

