This source did not publish a separate summary. Review SKILL.md before using the skill.
SKILL.md
Codebase Cleanup
Systematic code cleanup across 11 quality dimensions, ordered by risk. Each finding includes
confidence scoring (HIGH/MEDIUM/LOW) and all changes are verified through build/test gates.
Git repository with clean working tree (no uncommitted changes)
Language toolchain installed (Node.js/Python/Go/Rust as applicable)
Optional: knip, madge, jscpd, ruff, bandit for tool-verified scanning
Overview
This skill orchestrates cleanup across 11 dimensions, each with a dedicated agent.
Dimensions are ordered LOW → HIGH risk. See dimensions reference
for full detection criteria, verification steps, and risk profiles.
The 11 Dimensions (by risk level):
#
Dimension
Key
Risk
Auto-apply?
1
Dead code removal
dead
LOW
Yes (after build)
2
AI slop removal
slop
LOW
Comments only
3
Weak type elimination
types
MED
Yes (after typecheck)
4
Security cleanup
security
MED
Flag only
5
Legacy code removal
legacy
MED
With confirmation
6
Type consolidation
typecons
MED
Yes (after typecheck)
7
Defensive code cleanup
defensive
MED
Flag only
8
Performance optimization
perf
MED
Flag only
9
DRY deduplication
dry
HIGH
Flag only (>=10 lines)
10
Async pattern fixes
async
HIGH
Flag only
11
Circular dep untangling
circular
HIGH
Flag only
Instructions
Step 1: Safety Checkpoint
Before any changes:
Verify clean git state: git status --porcelain must be empty (or stash changes)
Record baseline: git rev-parse HEAD as rollback point