← ClaudeAtlas

awesome-code-cleanuplisted

Repo-wide cleanup of AI-like code noise, behavior-preserving: a comment pass (delete narration, condense bloat, fix stale, keep load-bearing), a read-only audit mode, an opt-in refactor mode for vague names and over-abstraction, a detection mode for dead code and logical inconsistencies, and an execution mode that applies another audit's findings. Use when asked to clean up or condense comments, de-slop vibe-coded files, apply a YAGNI pass, find dead code, apply a slop-audit report, or 'почисти код', 'найди мёртвый код'. Do not use for prose (awesome-humanize-en, awesome-document-style) or for the read-only marker sweep (awesome-slop-audit), whose report it executes.
khasky/awesome-agent-skills · ★ 8 · Code & Development · score 78
Install: claude install-skill khasky/awesome-agent-skills
# Code Cleanup Audit and clean every code comment in a repository (or a scoped part of it) so the code follows: comments only when strictly necessary; the code itself is authoritative and self-documenting; kept comments are 1–2 lines where possible. The pass is strictly behavior-preserving — a comment pass that changes behavior is a failed pass. Every comment gets one of four verdicts: | Verdict | When | Action | |---|---|---| | DELETE | Restates code, narrates flow, tutorial-style, echoes a signature | Remove | | CONDENSE | Load-bearing but bloated | Compress to 1–2 lines, keep the essence | | FIX | Stale, misplaced, or contradicts the code | Verify against code, rewrite accurately (or delete) | | KEEP | Dense gotcha/contract that genuinely needs its length | Leave intact, flag in report | The FIX class is the highest-value work. Redundant comments are noise; stale comments are lies. A real pass regularly finds comments claiming constants that changed ("10,000 rows" over `VOLUME = 2_000`), explanations of mechanisms that no longer exist, JSDoc stranded above the wrong function, and references to deleted files. Always verify a suspicious comment against the actual code before rewording it — and never "fix" a comment to say something you haven't confirmed. ## Modes - Comment pass (default) — the phased pipeline below, comments only. - Audit (read-only) — when the user asks to audit or review without editing: run Phase 0 recon and the Phase 1 analysis, edit nothing, and r