eisland-dev-refactor-module-split
FeaturedRefactor 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: 90/100
Skill Content
Details
- Author
- JNTMTMTM
- Repository
- JNTMTMTM/eIsland
- Created
- 6 months ago
- Last Updated
- yesterday
- Language
- TypeScript
- License
- GPL-3.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
refactor
Code refactoring patterns - extract, split, restructure without changing behavior.
react-refactor-component
Refactor React components to follow project conventions. Use when reorganizing, splitting, or cleaning up existing React component files.
react-component-hook-guidelines-cn
React 组件、页面组件、自定义 Hook 的拆分、重构与评审技能。用户提到“拆组件”“拆 Hook”“这个组件太大了”“这个 Hook 太重了”“帮我理一下这个页面”“这段 React 怎么拆比较合理”“重构 React 组件”“重构页面逻辑”“优化组件设计”“评审组件设计”“评审 Hook 设计”“减少 props”“收敛职责”“拆分 God Component”“拆分 God Hook”“调整页面编排”“整理前端分层”“组件职责不清”“逻辑和 UI 耦合”“页面状态太乱”“大 state 下传”“props 太多”“分支太多”时触发。重点处理职责混杂、props 过宽、大状态下传、分支过多、页面编排过重、展示与逻辑耦合。