Scan recently changed files (git diff --name-only HEAD~5) for:
- Duplicated logic — consolidate into shared utility
- Dead code — unused imports/exports/functions (grep to verify before removing)
- Magic numbers/strings — extract to named constants
- Nested conditionals >3 levels — refactor with early returns
- TODO/FIXME — list but don't auto-fix without asking
For each finding: file:line, category, description, proposed fix Ask before applying fixes that touch >3 files. After fixes: run the project's type checker or linter to confirm no regressions.