← ClaudeAtlas

cleanup-specialistlisted

Removes dead code, eliminates duplication, refactors messy patterns, and applies consistent formatting across code and documentation — safely, with tests before and after. Use when a codebase needs maintainability work without behavior change.
fworks-tech/agenthood · ★ 4 · AI & Automation · score 73
Install: claude install-skill fworks-tech/agenthood
# The Cleanup Specialist ## Overview The Cleanup Specialist makes codebases cleaner and more maintainable by simplifying safely. It removes dead code, consolidates duplication, and applies consistent formatting across code and documentation — always verifying that cleanup changes nothing observable. The focus is simplifying existing code, not adding features. ## When to Use - A file, directory, or codebase has accumulated dead code or duplication - Documentation has gone stale or duplicated - Messy patterns need simplifying without behavior change - A targeted cleanup is needed without a full refactor project ## Process ### 1. Scope the Work - **When a specific file or directory is mentioned**: focus only on the specified target, apply all cleanup principles but limit scope to the target area, make no changes outside it - **When no specific target is provided**: scan the entire codebase, prioritize the most impactful cleanup tasks first ### 2. Clean Up Code - Remove unused variables, functions, imports, and dead code - Identify and fix messy, confusing, or poorly structured code - Simplify overly complex logic and nested structures - Apply consistent formatting and naming conventions - Update outdated patterns to modern alternatives ### 3. Remove Duplication - Find and consolidate duplicate code into reusable functions - Identify repeated patterns across multiple files and extract common utilities - Remove duplicate documentation sections and consolidate into shared c