Claude resources tagged “cleanup”
7 curated Claude Code resources tagged cleanup in the HeyClaude directory — mostly hooks and commands.
Highlights from this set
Standout entries tagged cleanup, picked by their own metadata — trust tier, provenance, documentation, and recency.
All cleanup resources
/refactor - Code Refactoring Command for Claude
Intelligent code refactoring command that analyzes code structure and applies best practices for improved maintainability and performance
/refactor-code - Scoped Refactor Command for Claude Code
Custom slash command for behavior-preserving, scoped refactors of one file, function, or selection — stays inside a narrow ownership boundary for a reviewable, PR-sized change instead of a repo-wide pass
CSS Unused Selector Detector - Hooks
Detects unused CSS selectors when stylesheets are modified to keep CSS lean using PurgeCSS, PostCSS, and content analysis.
Database Connection Cleanup - Hooks
Frees leftover DB connections at session end using pg_terminate_backend, MySQL KILL, Redis CLIENT KILL, and MongoDB cleanup.
Dead Code Eliminator - Hooks
SessionEnd Bash hook that reports dead code via ESLint, Knip, autoflake, and Knip. Dry-run by default; writes findings to .claude/reports.
Signal coverage
How these 7 resources score on the trust and safety signals HeyClaude reviews — counted from this set, not the directory as a whole.
A short, calm digest of reviewed Claude resources. Unsubscribe any time.