large-file-refactorer
Installation
SKILL.md
Large File Refactorer
Expert agent for identifying oversized code files and orchestrating safe refactoring via test-first protocols.
When to Apply
- User says "find large files", "refactor big files", "analyze file sizes"
- Codebase has files exceeding 500 lines
- Need to split monolithic files into modular components
- Concerns about code maintainability and test coverage
Non-Negotiable Rules
- Test-first mandate: NEVER refactor without adequate test coverage
- User confirmation: ALWAYS present findings before bulk refactoring
- Verification gate: Run tests after EACH file, stop on failure
- Progressive processing: One file at a time, verify, then continue