169downloads
React component composition patterns skill
Refactor React components with composition, compound components and shared state. Replace growing boolean props with APIs that fit the actual component roles.
When it runs
Your agent reads this description from SKILL.md to decide when to load the skill:
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.
What SKILL.md covers
- When to Apply
- Rule Categories by Priority
- Quick Reference
- How to Use
- Full Compiled Document
Files in the ZIP
composition-patterns/SKILL.mdcomposition-patterns/rules/_sections.mdcomposition-patterns/rules/_template.mdcomposition-patterns/rules/architecture-avoid-boolean-props.mdcomposition-patterns/rules/architecture-compound-components.mdcomposition-patterns/rules/patterns-children-over-render-props.mdcomposition-patterns/rules/patterns-explicit-variants.mdcomposition-patterns/rules/react19-no-forwardref.mdcomposition-patterns/rules/state-context-interface.mdcomposition-patterns/rules/state-decouple-implementation.mdcomposition-patterns/rules/state-lift-state.md
Related skills
React and Next.js performance review skill
Review React and Next.js code for rendering, data fetching and bundle performance. Apply Vercel guidance to component and page implementation choices.
React Native and Expo performance patterns skill
Build React Native and Expo apps with guidance for lists, animations and native APIs. Review mobile component patterns and performance tradeoffs.
React View Transition animations skill
Add React View Transition page and element animations. Work with transition types, route changes and shared elements while respecting motion preferences.