— Skill
Vercel Composition Patterns
`isFoo` / `showBar` / `variantX` props multiply until nobody can extend the component — this skill pushes compound components, lifted state, and React 19-aware composition instead.
- What changes
- Loads Vercel’s composition-patterns skill so agents refactor boolean-prop proliferation into compound components, context providers, explicit variants, and React 19 API patterns.
- When
Use Vercel’s composition-patterns skill when the job is React component architecture — boolean prop proliferation, compound components, context providers, flexible library APIs, or React 19 composition updates.
Good fits:
- Refactoring a
Buttonwith twelve booleans into compound / variant components. - Designing reusable library APIs that agents and humans can extend.
- Reviews that should flag render-prop soup and push children composition.
This is not a performance card (
vercel-react-best-practices), a11y guidelines (vercel-web-design-guidelines), or landing taste (frontend-design-taste).Skip it for pure CSS restyles, non-React stacks, or “make it faster” asks.
- Refactoring a
- How to start
- Install with `npx skills add vercel-labs/agent-skills` (composition-patterns is in the pack). Ask to refactor or design components with composition-first rules; link AGENTS.md / rule files instead of pasting wholesale.
Copy dock
Ready to adapt. Paste. Run. Use.
Install before the API redesign — composition beats another boolean prop.
EXAMPLE prompt
Use the Vercel composition-patterns skill on [paths / components]. Order work: architecture (avoid boolean props, compound components) → state (providers, lift state) → implementation patterns (explicit variants, children over render props) → React 19 APIs if we are on 19+. For each change: what’s wrong, composition fix, why it scales. No perf essay. No taste/purple UI review.
Keep in mind
- Prefer compound components and explicit variants over boolean prop flags
- Lift state into providers; keep implementation details out of consumers
- Order findings: architecture → state → patterns → React 19 (if applicable)
Next pick
- GTM Co-FounderMIT Agent Skills pack for a founder GTM spine: brief → market research → one Now move.Open →
- Marketing SkillsInstall once: landing copy, CRO next tests, SEO audits, and growth playbooks in your coding agent.Open →
- Swan GTM SkillsInstall the MIT library, then pick ONE skill by verb (outreach / pipeline) — vs gtm-cofounder’s founder spine.Open →