From superpowers
Use when asked to clean up code, or after introducing a new larger feature. Identifies bad patterns, fix warnings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers:code-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Run the appropriate compilation and/or other existing code-quality tools (linting, credo, etc)
pnpx knipmix credo - add it if it's not availableFollow idiomatic coding guidelines and refer to other skills/agents whenever possible and/or necessary.
npx claudepluginhub nocksock/superpowersAudits and refactors code for readability, maintainability, and dead code removal without changing behavior. Produces a dated cleanup record. Use before releases or after feature additions.
Identifies and fixes code quality issues—dead code, import organization, type improvements, consistent patterns—without changing functionality.
Systematically cleans up codebase across 11 quality dimensions including dead code, duplication, weak types, circular deps, and more. Uses confidence scoring and build/test verification.