Code Cleanup
Scans a repo for nine kinds of technical debt and produces a prioritized, effort-estimated cleanup report with optional safe auto-fixes.
Dev & CodingIntermediate★ 417⑂ 44AI score 9/10Last updated: Aug 29, 2026
What it does
- Scans for nine technical-debt categories: stale TODO/FIXME/HACK comments, unused imports, dead code, missing type hints, deprecated functions, naming inconsistencies, high complexity, duplicate code, and missing docstrings.
- Uses
git blameto age every TODO, so 90+ day items surface above yesterday's notes. - Buckets findings into Quick Wins / Important / Polish, with per-item and per-tier time estimates.
- Emits a Markdown report with exact
file:linereferences, three lines of context, and ready-to-run fix commands. - Defaults to read-only; only with explicit approval does it run safe fixes (
ruff check --fix,goimports -w,gofmt), validate with the test suite, and roll back viagit checkout .on failure.
Who it's for
- Python and Go developers who want a repeatable technical-debt audit.
- Tech leads sizing a refactor sprint who need concrete hour estimates.
- Anyone inheriting a legacy repo and needing a fast quality snapshot.
Examples
- Focused cleanup — "Clean up the API handlers in src/api/" → scoped scan reporting 5 auto-fixable unused imports and 2 TODOs older than 90 days.
- Broad debt scan — "What's the state of technical debt here?" → 47 findings grouped into 12 Quick Wins (2h), 8 Important (6h), 27 Polish (4h).
- Auto-fix run — "Remove all unused imports and sort them" → checks ruff availability, scans F401/I001 only, reports 23 hits across 8 files, applies fixes after confirmation, runs tests, shows the diff.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/notque/vexjoy-agent/HEAD/skills/code-quality/code-cleanup/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/code-quality/code-cleanup folder from the GitHub repo notque/vexjoy-agent into my ~/.claude/skills/code-cleanup/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/notque/vexjoy-agent.git /tmp/vexjoy-agent && mkdir -p ~/.claude/skills && cp -r /tmp/vexjoy-agent/skills/code-quality/code-cleanup ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/notque/vexjoy-agent.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r vexjoy-agent/skills/code-quality/code-cleanup ~/.claude/skills/ - (Recommended) Install the analyzers:
pip install ruff vulture radon; for Go,go install github.com/fzipp/gocyclo/cmd/gocyclo@latestandgo install golang.org/x/tools/cmd/goimports@latest - Restart Claude Code and ask something like "clean up the code in src/" to trigger the skill.
- Commit or branch your work before approving any auto-fix phase so changes are easy to revert.
View source on GitHub ↗License: MIT