Back to skills

composition-patterns

development

A set of React composition rules for structuring components without boolean prop proliferation. Covers compound components, context providers, state lifting, and React 19 API changes. Designed to keep

Setup & Installation

npx skills add https://github.com/vercel-labs/composition-patterns --skill composition-patterns
or paste the link and ask your coding assistant to install it
https://github.com/vercel-labs/composition-patterns
View on GitHub

What This Skill Does

A set of React composition rules for structuring components without boolean prop proliferation. Covers compound components, context providers, state lifting, and React 19 API changes. Designed to keep component APIs clean as codebases grow. Instead of guessing which boolean props to combine or when to extract context, you get explicit rules with before/after code examples covering the specific patterns that cause component APIs to rot over time.

When to use it

  • Working with composition patterns functionality
  • Implementing composition patterns features
  • Debugging composition patterns related issues