Agent skill · Vercel

React Composition Patterns skill for Claude Code, Codex and Cursor

Refactors prop-heavy React components into compound components and other reusable patterns.

Officialname: vercel-composition-patterns★ 33k (repo)pushed 2026-10-14MITSKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

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.

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install React Composition Patterns

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

What's in the SKILL.md

9 sections
  • When to Apply
  • Rule Categories by Priority
  • Quick Reference
  • 1. Component Architecture (HIGH)
  • 2. State Management (MEDIUM)
  • 3. Implementation Patterns (MEDIUM)
  • 4. React 19 APIs (MEDIUM)
  • How to Use
  • Full Compiled Document

Bundled files

13
  • AGENTS.md
  • README.md
  • metadata.json
  • rules/_sections.md
  • rules/_template.md
  • rules/architecture-avoid-boolean-props.md
  • rules/architecture-compound-components.md
  • rules/patterns-children-over-render-props.md
  • rules/patterns-explicit-variants.md
  • rules/react19-no-forwardref.md
  • rules/state-context-interface.md
  • rules/state-decouple-implementation.md
  • rules/state-lift-state.md

Loaded only when the instructions point to them.

Facts

Skill name
vercel-composition-patterns
Publisher
Vercel (official)
Repo
vercel-labs/agent-skills
License
MIT
Version
1.0.0
SKILL.md size
328 words, 76 lines
Bundled files
13, 12 docs
Repo stars
33k (as of 2026-10-24)
SKILL.md checked
2026-11-07

More skills from vercel-labs/agent-skills

Related frontend & design skills

FAQ

What does the vercel-composition-patterns skill do?+

Refactors prop-heavy React components into compound components and other reusable patterns. In its own SKILL.md, Vercel describes it as: "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."

How do I install the vercel-composition-patterns skill?+

Run npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/vercel-composition-patterns/SKILL.md; in Codex and Cursor in .agents/skills/vercel-composition-patterns/.

Does React Composition Patterns work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains React Composition Patterns?+

Vercel, the company or project behind it, in the vercel-labs/agent-skills repo on GitHub, last pushed 2026-10-14. License: MIT.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers