What problem does it solve?
Repo hygiene fixes messy codebases whose structure and naming have become unclear enough to slow humans down and cause AI agents to make the wrong assumptions, while keeping working behavior unchanged.
Core Features & Use Cases
- Structure cleanup without behavioral change: reorganizes files and folders into a clear hierarchy (e.g., frontend/backend/shared separation, domain-based folders, and removal of junk drawers like
/utils and /helpers) so contributors and agents can navigate quickly.
- Explicit naming and cohesion improvements: renames vague code to be more descriptive, splits mixed-domain files when a split test fails, and collapses redundant/shallow folders to improve locality of behavior.
- Safety-focused refactoring and documentation refresh: removes dead/duplicate code, rewrites comments to explain WHY, and refreshes CLAUDE.md while verifying moves/renames to avoid breaking working code.
Quick Start
Use repo-hygiene to audit and clean up a messy codebase by reorganizing folders, renaming vague files/functions, removing dead or duplicate code, and updating CLAUDE.md without changing program behavior.