r/claudeskills • • 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:

  1. Scan. Finds dead code, dead files, unused dependencies, unused assets and duplicates. 19 languages.
  2. Cut. Deletes them in a batch and runs your tests.
  3. Bisect. If a test fails, it finds the one cut that broke it and puts only that one back.
  4. 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

0 comments sorted by