clean-codelisted
Install: claude install-skill AnotherSava/claude-code-common
# Clean Code
Audit modified files for dead code, duplication, naming conventions, and import hygiene. Fix issues with user approval.
## Context
- Uncommitted changes: !`git status --short`
- Diff summary: !`git diff HEAD --stat`
- Full diff: !`git diff HEAD`
## Process
1. **Remove debug prints** (`print()`, `console.log()`, `Debug.Log()`, etc.) added during development — do not commit temporary debug output
2. **Dead code audit — iterate until clean:**
Start with modified files, then expand outward: use Grep to find all production files that import, call, or reference symbols defined in modified files. These consumers may now contain dead code if the symbols they depended on were changed, removed, or renamed. For each file in this expanded set, look for:
- **Dead methods/functions**: defined but never called from production code (only from tests or not at all). Trace callers — if a method is only called from another dead method, both are dead.
- **Dead fields/variables**: only written (never read), or only set to a constant value that makes guarding branches unreachable.
- **Dead imports**: symbols imported but unused after other cleanup.
- **Dead type members**: union/enum members never constructed or matched.
- **Cascading dead code**: after each removal, re-check whether anything new became unreachable (deleted code may have been the only caller of other code).
For each finding, describe what you found, why it's dead, and propose removal. If the