What problem does it solve?
This Skill helps you refactor React components that have become hard to maintain because of boolean prop proliferation, tangled conditional rendering, and state that is trapped inside a single component.
Core Features & Use Cases
- Compound component design: Break monolithic components into explicit building blocks that consumers compose directly.
- Provider-based state sharing: Lift state into context providers so sibling UI can read and update shared state without prop drilling.
- Generic context contracts: Standardize state, actions, and meta so multiple providers can drive the same UI.
- Explicit variants: Replace many boolean modes with self-documenting component variants such as thread, edit, and forward flows.
- React 19 guidance: Apply updated patterns for refs and context usage when working in React 19 and later.
- Use case: Ideal for reviewing or redesigning design-system components, chat composers, toolbars, dialogs, and other reusable UI APIs that need flexible composition.
Quick Start
Ask the Skill to refactor a React component with too many boolean props into compound components with provider-managed state.