c/frontend › command
0votes

React composition patterns (Vercel)

Skill
submitted by CommandVault editors to c/frontend · 2 uses

Patterns for flexible React components: compound components, context and fewer boolean props.

Helps Claude design component APIs that scale, especially when a component has collected too many boolean props. It covers compound components, lifting state into providers, explicit variants and render props, with notes on React 19 changes. Rules are split into separate files with examples, plus a compiled AGENTS.md.

Try asking:

  • "This Modal has 12 boolean props, refactor it"
  • "Design a reusable Tabs component API"
  • "Turn this Select into a compound component"

Source: vercel-labs/agent-skills · MIT · by Vercel

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add react-composition-patterns-vercel-d9e9b118 --tool claude
Install (run in your project folder)
npx degit vercel-labs/agent-skills/skills/composition-patterns .claude/skills/vercel-composition-patterns

Use it: Claude uses it automatically when a task matches, or type /vercel-composition-patterns.

From Claude Code's docs , checked Oct 17, 2026.

Made by Vercel, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/frontend

See all of c/frontend →
0 comments

Log in to join the discussion.