Skip to content
mcp/skillhub

Agent Skill

Vercel Composition Patterns skill

vercel-composition-patternsvercel-labs/agent-skillsskills/composition-patterns/SKILL.md

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.

33kMIT

always on

58 tokname + description

once used

532 tokSKILL.md body

bundled files

1346 KB

installs

411kskills.sh

Install the Vercel Composition Patterns skill

Skills CLI (Claude Code, Codex, Cursor and others)

npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns

Claude Code, by hand (all projects)

git clone --depth 1 https://github.com/vercel-labs/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -R /tmp/agent-skills/skills/composition-patterns ~/.claude/skills/vercel-composition-patterns

For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.

What it costs your context

Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.

WhenWhat loadsCost
Every sessionName and description58 tok
When the agent uses itThe SKILL.md instructions532 tok
Only if opened13 bundled files (46 KB)varies

Until it is used, vercel-composition-patterns costs about 23× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 9 skills from vercel-labs/agent-skills would load 623 tokens of descriptions. Skills vs MCP study

Checks

  • The name doesn't match its folder name, as the specification requires.

Checked 2026-10-22 · method

What's inside

The headings of its SKILL.md. Read the full file on GitHub.

  • React Composition Patterns
  • 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

More skills from vercel-labs/agent-skills

All skills in this repo
  1. vercel-react-best-practicesvercel-labs/agent-skills

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    827k67 tok idle · 1,669 in use
  2. web-design-guidelinesvercel-labs/agent-skills

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    769k44 tok idle · 190 in use
  3. vercel-react-native-skillsvercel-labs/agent-skills

    React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

    250k57 tok idle · 949 in use
  4. deploy-to-vercelvercel-labs/agent-skills

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

    165k247 tok idle · 2,823 in use
  5. vercel-react-view-transitionsvercel-labs/agent-skills

    Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

    163k127 tok idle · 3,157 in use
  6. vercel-cli-with-tokensvercel-labs/agent-skills

    Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

    132k59 tok idle · 2,614 in use
  7. vercel-optimizevercel-labs/agent-skills

    Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.

    107k90116 tok idle · 3,819 in use
  8. writing-guidelinesvercel-labs/agent-skills

    Review docs/prose for Writing Guidelines compliance. Use when asked to "review my docs", "check writing style", "audit prose", "review docs voice and tone", or "check this page against the writing handbook".

    103k48 tok idle · 188 in use