vercel-labs avatar

Vercel Composition Patterns

From Vercel's front-end team, this teaches Claude composition patterns that prevent boolean prop hell. You know the drill: a component starts with isLoading and isError, then grows to hasIcon, showBorder, isCompact, until you're debugging 16 permutations. Instead you get compound components, context providers, and explicit variants. Covers architecture fundamentals plus React 19 specifics like dropping forwardRef for the use hook. The rules are prioritized by impact, so you can skip straight to the architecture section if you're refactoring a mess right now. Honestly just wish more component libraries were built this way from the start.

skills.sh installs
272
GitHub stars
27.5K
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel-labs/claude-skills --skill vercel-composition-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

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

PriorityCategoryImpactPrefix
1Component ArchitectureHIGHarchitecture-
2State ManagementMEDIUMstate-
3Implementation PatternsMEDIUMpatterns-
4React 19 APIsMEDIUMreact19-

Quick Reference

1. Component Architecture (HIGH)

Sponsors

Details

Repository
github.com/vercel-labs/claude-skills
Category
Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/claude-skills

All 4
1vercel-labs avatarvercel-clivercel-labs/vercel-pluginvercel cli272skills.sh installs
2vercel-labs avatarvercel-agentvercel-labs/vercel-pluginvercel agent263skills.sh installs
3membranedev avatarvercelmembranedev/application-skillsVercel integration. Manage Projects, Users, Teams, Secrets. Use when the user wants to interact with Vercel data.258skills.sh installs
4hoodini avataraws-strandshoodini/ai-agents-skillsBuild AI agents with the Strands Agents SDK - the open-source framework (the agent "brain") for writing agent logic, tools, and multi-agent systems in Python. M249skills.sh installs
5sickn33 avatarterraform-skillsickn33/antigravity-awesome-skillsterraform skill245skills.sh installs
6vercel-labs avatarvercel-storagevercel-labs/vercel-pluginvercel storage244skills.sh installs