What problem does it solve?
This Skill helps you eliminate boolean prop overload, tangled rendering logic, and brittle one-off component APIs in React codebases. It gives you a clear way to redesign components so they are easier to reuse, easier to read, and easier to maintain as they grow.
Core Features & Use Cases
- Compound component design: Split large UI surfaces into smaller pieces that share state through a provider and context.
- Explicit component variants: Replace many boolean modes with clear, self-documenting variants such as thread, edit, or forward flows.
- Children over render props: Prefer composable children for static structure and cleaner API design.
- React 19 guidance: Update code to use ref as a normal prop and use in place of useContext when working with modern React patterns.
- Use case: Refactor a messaging composer, dialog, or form-heavy dashboard component so custom actions, previews, and controls can share state without prop drilling.
Quick Start
Ask the skill to review a React component with boolean props and rewrite it into explicit variants and compound components with a provider-based context API.