What problem does it solve?
This Skill helps frontend teams design scalable React components by applying composition patterns to replace boolean props with explicit variants, compound components, and context providers, improving maintainability and reusability.
Core Features & Use Cases
- Explicit Variants: Create dedicated components (ThreadComposer, EditMessageComposer, ForwardMessageComposer) to avoid combinatorial boolean props.
- Compound Components: Build reusable, context-driven subcomponents that share state without prop drilling.
- Prefer Children Over Render Props: Use a natural composition approach with Frame, Header, Input, Footer and others.
- State Lifting with Providers: Share state across the app without drilling props.
- React 19 API Guidance: Align with use() hook and avoid forwardRef where unnecessary.
Quick Start
To begin, implement a simple Composer UI and then create three variant components that wrap it with their own providers. Then compose a small dialog using those variants to validate cross-provider state sharing.