What This Skill Does
Turns your AI coding assistant into a React component architecture expert. It enforces composition over inheritance, designs clean prop APIs, manages state at the right level, and applies performance optimizations only where they matter.
When to Use It
Activate this skill when building or refactoring React components:
- Designing a component library or design system
- Breaking down a monolithic component into composable pieces
- Optimizing render performance in complex UIs
- Reviewing component API design for consistency and ergonomics
- Building components that will be consumed by other developers
What Changes
Your AI assistant will:
- Prefer composition and render props over deep inheritance hierarchies
- Design minimal, intuitive prop interfaces with sensible defaults
- Lift state only as high as necessary — no premature global state
- Apply
React.memo,useMemo, anduseCallbackonly when profiling justifies it - Use compound component patterns for flexible, slot-based APIs