What problem does it solve?
This Skill helps you refactor and design React components that are easier to maintain by removing boolean prop sprawl, reducing hidden state combinations, and making component behavior explicit.
Core Features & Use Cases
- Compound component architecture: Break large UI pieces into composable subcomponents that share state through context.
- State provider patterns: Lift state into provider components so sibling UI can read and update shared data without prop drilling.
- Explicit variants over boolean modes: Replace ambiguous multi-flag component APIs with clear, self-documenting variants.
- React 19 guidance: Apply modern APIs such as using ref as a prop and use() for context access.
- Use case: A team can convert a complex composer, dialog, or form component into a reusable API where headers, footers, actions, and previews can be assembled independently.
Quick Start
Use this skill to review a React component with multiple boolean props and rewrite it into explicit compound components with a provider-driven state interface.