What problem does it solve?
This Skill helps you refactor React interfaces that have become hard to maintain because of boolean flags, prop drilling, and tangled conditional rendering. It replaces brittle component APIs with clearer composition patterns that scale with the codebase.
Core Features & Use Cases
- Compound Components: Organize complex UIs around shared context so consumers can assemble only the pieces they need.
- State Lifting and Provider Design: Move state into provider components so sibling elements can read and update it without awkward prop passing.
- Explicit Variants: Replace ambiguous mode flags with self-documenting components such as thread, edit, or forward variants.
- React 19 Guidance: Apply modern ref and context patterns when updating components for React 19.
- Use Cases: Refactoring a messaging composer, designing a reusable design system, or reviewing a component library for hidden conditional logic.
Quick Start
Ask the AI to rewrite a React component with multiple boolean props into explicit compound components backed by a provider and shared context.