lean-code-cleanup

Installation
SKILL.md

Lean Code Cleanup

This skill helps make a codebase smaller, clearer, and easier to change. The goal is not to chase clever minimalism; it is to remove code whose purpose is gone, duplicated, speculative, unreachable, or much more complex than the current product needs.

Cleanup Philosophy

Prefer boring, evidence-backed reductions:

  • Delete code only when you can explain why it is unused, obsolete, duplicated, or safely replaceable.
  • Simplify code when the simpler version preserves behavior and matches the local style.
  • Keep public contracts, persisted data, migrations, operational scripts, and compatibility paths unless the user has made it clear they no longer matter.
  • Avoid broad rewrites during cleanup passes. A small clean diff is better than a heroic refactor that mixes risk with deletion.
  • Treat untracked generated files, logs, caches, and local outputs differently from source code. They may be local noise rather than committed bloat.

First Pass

Start by understanding the target scope:

Installs
1
GitHub Stars
343
First Seen
7 days ago