Component patterns that scale, from Vercel.
Vercel's React composition patterns. Your agent uses them when refactoring components that have grown too many boolean props, building flexible component libraries or designing reusable APIs.
Install this skill
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patternsRuns the open-source skills CLI in your own terminal. It asks which agents to add the skill to. Read what it tells your agent to do before you install it.
Install for your agent
Claude Code
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a claude-codeAdd
-gto install it for every project instead.Or ask Claude Code to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for Claude Code. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .claude/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Or copy the folder yourself
Unzip the download into
.claude/skills/for this project, or~/.claude/skills/for all your projects.Picked up in the current session, no restart needed.
Claude Code skills docsClaude.ai
Upload the ZIP
- In Settings > Capabilities, turn on Code execution and file creation.
- Go to Customize > Skills, press +, then Create skill.
- Choose Upload a skill and pick the ZIP you downloaded.
Free, Pro and Max plans. On Team and Enterprise, an owner turns skills on in Organization settings first.
Claude.ai skills docsChatGPT
Upload the ZIP
- Open Skills in ChatGPT and select Create.
- Select Upload from your computer and pick the ZIP you downloaded.
- Wait for ChatGPT's safety scan. A skill marked Needs Review asks you to check it before use.
Skills that rely on scripts or a terminal may not work unchanged in ChatGPT.
ChatGPT skills docsCodex
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a codexAdd
-gto install it for every project instead.Or ask Codex to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for Codex. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .agents/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Or copy the folder yourself
Unzip the download into
.agents/skills/for this project, or~/.agents/skills/for all your projects.Restart Codex if the skill does not show up.
Codex skills docsCursor
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a cursorAdd
-gto install it for every project instead.Or ask Cursor to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for Cursor. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .cursor/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Or copy the folder yourself
Unzip the download into
.cursor/skills/for this project, or~/.cursor/skills/for all your projects.Run it by typing / and the skill name in chat.
Cursor skills docsGitHub Copilot
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a github-copilotAdd
-gto install it for every project instead.Or ask GitHub Copilot to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for GitHub Copilot. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .github/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Or copy the folder yourself
Unzip the download into
.github/skills/for this project, or~/.copilot/skills/for all your projects.Works in Copilot CLI, the cloud agent and agent mode in VS Code and JetBrains.
GitHub Copilot skills docsAntigravity
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a antigravityAdd
-gto install it for every project instead.Or ask Antigravity to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for Antigravity. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .agents/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Antigravity skills docsOr copy the folder yourself
Unzip the download into
.agents/skills/for this project, or~/.gemini/config/skills/for all your projects.Gemini CLI
Run this in your project
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns -a gemini-cliAdd
-gto install it for every project instead.Or ask Gemini CLI to do it
Install the "vercel-composition-patterns" skill from https://github.com/vercel-labs/agent-skills for Gemini CLI. Copy the skill folder (the one containing SKILL.md, with any scripts or reference files next to it) into .gemini/skills/ in this project. Before copying, show me the SKILL.md and list any scripts it includes, and wait for me to confirm.
Or copy the folder yourself
Unzip the download into
.gemini/skills/for this project, or~/.gemini/skills/for all your projects.Run /skills to check it was found.
Gemini CLI skills docs
- Installs
- 334.1K via skills.sh
- GitHub
- 31.2K stars ↗
- Last updated
- 28 Aug 2026
Security checks
Run by independent scanners and published on skills.sh. Their results, not a Viberation review.
- 17 Feb 2026
Gen Agent Trust Hub Pass
The skill provides a set of architectural guidelines and code examples for React development. No security risks or malicious behaviors were identified during the analysis.
- 18 Mar 2026
Socket Pass
No alerts
- 17 Feb 2026
Snyk Pass
Risk: LOW · No issues
- 25 Feb 2026
Runlayer Warning
1/14 files flagged
- 16 Apr 2026
ZeroLeaks Pass
Score: 93/100 · 2 sections analyzed
What's inside (14 files)
AGENTS.md22.6K charsmetadata.json530 charsREADME.md2.1K charsrules/_sections.md829 charsrules/_template.md329 charsrules/architecture-avoid-boolean-props.md2.3K charsrules/architecture-compound-components.md2.6K charsrules/patterns-children-over-render-props.md1.9K charsrules/patterns-explicit-variants.md2.4K charsrules/react19-no-forwardref.md949 charsrules/state-context-interface.md5K charsrules/state-decouple-implementation.md2.7K charsrules/state-lift-state.md3.2K charsSKILL.md2.9K chars
SKILL.md. Shown as plain text.
--- name: vercel-composition-patterns description: 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. license: MIT metadata: author: vercel version: '1.0.0' --- # React Composition Patterns Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale. ## When to Apply Reference these guidelines when: - Refactoring components with many boolean props - Building reusable component libraries - Designing flexible component APIs - Reviewing component architecture - Working with compound components or context providers ## Rule Categories by Priority | Priority | Category | Impact | Prefix | | -------- | ----------------------- | ------ | --------------- | | 1 | Component Architecture | HIGH | `architecture-` | | 2 | State Management | MEDIUM | `state-` | | 3 | Implementation Patterns | MEDIUM | `patterns-` | | 4 | React 19 APIs | MEDIUM | `react19-` | ## Quick Reference ### 1. Component Architecture (HIGH) - `architecture-avoid-boolean-props` - Don't add boolean props to customize behavior; use composition - `architecture-compound-components` - Structure complex components with shared context ### 2. State Management (MEDIUM) - `state-decouple-implementation` - Provider is the only place that knows how state is managed - `state-context-interface` - Define generic interface with state, actions, meta for dependency injection - `state-lift-state` - Move state into provider components for sibling access ### 3. Implementation Patterns (MEDIUM) - `patterns-explicit-variants` - Create explicit variant components instead of boolean modes - `patterns-children-over-render-props` - Use children for composition instead of renderX props ### 4. React 19 APIs (MEDIUM) > **⚠️ React 19+ only.** Skip this section if using React 18 or earlier. - `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()` ## How to Use Read individual rule files for detailed explanations and code examples: ``` rules/architecture-avoid-boolean-props.md rules/state-context-interface.md ``` Each rule file contains: - Brief explanation of why it matters - Incorrect code example with explanation - Correct code example with explanation - Additional context and references ## Full Compiled Document For the complete guide with all rules expanded: `AGENTS.md`
Key info
- Pricing
- Free
- Category
- Skills