eisland-dev-refactor-module-split
SolidRefactor a monolithic React component file into a standardized module structure with components/, hooks/, utils/, and config/ subdirectories. Use this skill whenever the user asks to "split", "refactor", "拆分", "拆解", or "restructure" a component file into subdirectories, or when they mention organizing code into utils/hooks/config/components folders.
Install
Quality Score: 89/100
Skill Content
Details
- Author
- JNTMTMTM
- Repository
- JNTMTMTM/eIsland
- Created
- 4 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- GPL-3.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
extract-module
Split an overgrown file into cohesive, well-bounded modules — find the natural seams, design each new module's public interface before moving a line, then relocate one unit at a time keeping tests green. Use when a file has grown too large, mixes unrelated responsibilities, or every change to it forces unrelated diffs and merge conflicts.
react-refactor-component
Refactor React components to follow project conventions. Use when reorganizing, splitting, or cleaning up existing React component files.
refactor
Deep functional refactoring of TypeScript code for purity, testability, and modularity. Use when the user says /refactor, asks to clean up or restructure code, mentions large files, god functions, mixed concerns, poor testability, or when code grew unwieldy after feature iterations. Also triggers on "this file is too big", "split this", "make this more functional", "extract", "decompose", or any mention of code smells like let, try/catch in business logic, for loops, or files over 300 lines. If the user describes messy, tangled, or overgrown code that needs structural improvement, this is the right skill — even without the word "refactor."