Category: Development
React Composition Patterns
Vercel's React design skill for taming boolean-prop sprawl with compound components, context, and explicit variants.
Works with
What it does
- Rules across component architecture, state, implementation patterns, and React 19 APIs
- 10+ named patterns including compound components, context providers, and lifted state
- React 19 guidance: drop
forwardRef, useuse()instead ofuseContext()
When to use it
Use it when components bloat with option props, or when building a reusable component library.
How to install
- Run the command below in your terminal. Pick the agents you use (Claude Code, Codex, Cursor, Gemini CLI, Copilot, and more) and it installs into the right folder.
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns
- To install manually, download the
vercel-composition-patternsskill folder from the GitHub repository and copy it into your agent's skills folder, such as~/.claude/skills/or.cursor/skills/. - Ask your agent for a related task and the skill is used automatically.