What problem does it solve?
This Skill provides patterns to build flexible, maintainable React components, avoiding common pitfalls like boolean prop proliferation and making codebases easier for both humans and AI agents to manage.
Core Features & Use Cases
- Component Architecture: Strategies to avoid excessive boolean props and leverage compound components for better composition.
- State Management: Techniques for decoupling state logic from UI and lifting state into providers for easier sharing.
- Implementation Patterns: Guidance on creating explicit component variants and preferring children composition over render props.
- React 19 APIs: Updates on new APIs like
use() and ref handling.
- Use Case: Refactor a complex
Card component that currently uses many boolean props (e.g., isHoverable, isDraggable, showIcon, showTitle) into a more composable structure using compound components and explicit variants.
Quick Start
Apply the React composition patterns skill to refactor the Composer component to avoid boolean prop proliferation.