Agent skill · Vercel
React Composition Patterns skill for Claude Code, Codex and Cursor
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
Copy the skill folder into ~/.claude/skills (all projects) or .claude/skills (this repo). Claude Code picks it up without a restart. docs
npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns -a claude-code # or by hand: git clone --depth 1 https://github.com/vercel-labs/agent-skills.git /tmp/composition-patterns-src cp -r /tmp/composition-patterns-src/skills/composition-patterns ~/.claude/skills/vercel-composition-patterns
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/vercel-labs/agent-skills.git /tmp/composition-patterns-src cp -r /tmp/composition-patterns-src/skills/composition-patterns ./vercel-composition-patterns zip -r vercel-composition-patterns.zip vercel-composition-patterns
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install vercel-labs/agent-skills vercel-composition-patterns
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/vercel-labs/agent-skills.git --path skills/composition-patterns
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add vercel-labs/agent-skills --skill vercel-composition-patterns -a windsurf
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
- 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
- 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
- Deploy to Vercel: Deploys the current project to Vercel and returns preview or production URLs.
- React Best Practices: Vercel's performance rules for React and Next.js code: rendering, data fetching, bundle size.
- React Native Best Practices (Vercel): Performance and structure advice for React Native and Expo apps: lists, animations, native modules.
- React View Transitions: Adds page and element animations using React's View Transition API and CSS pseudo-elements.
- Web Design Guidelines: Audits UI code against a checklist of interface, accessibility and UX guidelines.
Related frontend & design skills
- Frontend Design · Anthropic
- Web Artifacts Builder · Anthropic
- shadcn/ui · shadcn
- Web Performance Audit · Cloudflare
- Figma Code Connect · Figma
- Figma Design to Code · Figma
- Figma Generate Design · Figma
- Figma Use · Figma
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