create-hook
Installation
SKILL.md
Create Hook
Analyze a component or file and determine if any inline logic can be extracted into a reusable hook. Proposes the hook API and asks before implementing -- never writes code without confirmation.
When to use this skill
Invoke when:
- A component feels too large or mixes concerns (state + effects + layout)
- You spot a pattern repeated across more than one component
- Inline
useEffect+useStatelogic is complex enough to have a name - The user asks "can this be a hook?" or "should I extract this?"
Steps
- Read the target file(s).