Refactor Large File
CommunitySplit big files into clean, maintainable modules.
AuthorRow0902
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Files exceeding 300 lines violate SRP and become hard to maintain. This skill systematically breaks them down.
Core Features & Use Cases
- Analyze responsibilities and visualize clusters of logic (UI Components, Event Handlers, Helper Functions).
- Create Package Structure: move code into submodules, e.g., module_pkg with init.py, or split into helpers.py, constants.py, types.py.
- Move & Isolate: relocate code chunks, fix imports, and re-export or update consumers for backward compatibility.
Quick Start
Identify logical clusters in a large module and refactor it into a package with submodules, updating imports accordingly.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Refactor Large File Download link: https://github.com/Row0902/agents/archive/main.zip#refactor-large-file Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.