code-slimming
Installation
SKILL.md
Code Slimming: Read-Only Refactor Opportunity Audit
Find behavior-preserving opportunities to make a codebase smaller, clearer, and less repetitive. This skill reports opportunities only. It does not edit code and does not write tests.
The goal is not fewer lines at any cost. The goal is lower maintenance burden with behavior, performance, readability, and validation made explicit.
When to use
- Finding opportunities to simplify a repository, package, module, or PR
- Finding behavior-preserving refactor opportunities without implementing them
- Auditing duplicated logic, classes, structs, helpers, types, schemas, handlers, or adapters
- Looking for safe centralization candidates before a cleanup/refactor PR
- Reviewing a bot or human cleanup PR that claims to reduce code size
- Ranking maintainability refactors by value, risk, and validation needs
- Handling duplicate code only when the main goal is smaller behavior-preserving structure, not general cleanliness or AI-slop detection
Related skills