Scourgify — Development skill for Claude Code
Scrub the code clean — remove debug cruft.
How to install Scourgify
Installs to ~/.claude/skills/hiharin-claude-spellbook-scourgify/SKILL.md
mkdir -p ~/.claude/skills/hiharin-claude-spellbook-scourgify && curl -fsSL https://raw.githubusercontent.com/hiharin/claude-spellbook/HEAD/commands/scourgify.md -o ~/.claude/skills/hiharin-claude-spellbook-scourgify/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Scourgify does
description: Scrub the code clean — remove debug cruft argument-hint: "[path — optional; defaults to the current diff]"
Cast **Scourgify** on $ARGUMENTS (default: the current diff).
Remove only debris, never logic:
- stray
console.log/print/debugger/dbg!/ppstatements - commented-out code blocks
- leftover scaffolding,
TEST,DELETE ME, temporary variables namedfoo/tmp - trailing whitespace and accidental large blank-line gaps
- unused imports the linter would
Alternatives in Development
- Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
- Remove Comments — Remove Obvious Comments 2.8k ★
- Remove Project — Remove a project created by the starter kit 335 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Denoise
Remove debug artifacts and development leftovers from the build.
Sc Cleanup
Systematically clean up code, remove dead code, and optimize project structure
Clean Imports
Remove unused imports and organise import ordering across changed files
Context Clean
Remove local context files — clean up a directory or all context files in the project
Cruft Sweep
Scan for reclaimable scratch and orphans; apply only if confirmed.
Trim Context
Find and fix sources of Claude Code "token bloat" in a repo — oversized CLAUDE.md (vs the 40k-char limit), blo
Related Agents
Denoiser
Remove debug artifacts, console.logs, commented code, and development leftovers from production code.
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Cruft Auditor
Scans PR diffs for legacy patterns that should have been cleaned up.