What problem does it solve?
This Skill helps you redesign React components that have grown brittle from boolean props, hidden modes, prop drilling, and tightly coupled state. It gives you a clearer way to structure reusable UI so variants stay explicit and maintainable as a codebase scales.
Core Features & Use Cases
- Component Architecture Guidance: Replace boolean prop proliferation with explicit component variants and compound components.
- State Sharing Patterns: Move state into providers so sibling components and surrounding UI can access the same data without awkward refs or prop chains.
- Modern React API Advice: Apply React 19-friendly patterns such as using use() for context access and treating ref as a regular prop when appropriate.
- Use Case: Refactor a composer, dialog, or messaging interface into reusable pieces where headers, inputs, footers, previews, and actions all compose cleanly around shared context.
Quick Start
Ask for a refactor that replaces boolean props with explicit composition, shared context, and provider-based state for your target React component.