React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
81
71%
Does it follow best practices?
Impact
100%
1.19xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/composition-patterns/SKILL.mdCompound component refactoring
No boolean props on core
33%
100%
Context created
100%
100%
Sub-components access context
100%
100%
Compound component export
0%
100%
Explicit variants
100%
100%
Children composition
50%
100%
Provider isolates state
100%
100%
No conditional boolean logic
20%
100%
state/actions/meta interface
0%
100%
TypeScript interfaces
100%
100%
State lifting and provider boundary
Provider owns state
100%
100%
No useEffect syncing
100%
100%
No ref-based state reading
100%
100%
Context interface: state
87%
100%
Context interface: actions
75%
100%
Provider boundary wraps siblings
100%
100%
UI components use context
100%
100%
Provider decoupled from UI
100%
100%
Swappable state
100%
100%
TypeScript context interface
70%
100%
React 19 API patterns
No forwardRef usage
100%
100%
Ref as regular prop
100%
100%
use() for context
100%
100%
No useContext calls
100%
100%
Compound component export
100%
100%
Context with state/actions
75%
100%
Provider owns state
100%
100%
Children composition
100%
100%
TypeScript types
100%
100%
React 19 comment
100%
100%
73140fc
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.