Vercel Composition Patterns skill for Claude Code

Improve reusable React component APIs with composition and test the existing callers after a refactor.

How to add the Vercel Composition Patterns skill to Claude Code

Use the Composition Patterns skill from Vercel’s Agent Skills repository and provide real call sites that exercise different configurations.

  1. Open the publisher folder and copy the complete skill folder into .claude/skills/vercel-composition-patterns/ in your project. Keep the supporting files in their original relative locations.
  2. Keep the rules directory with the skill. Test on a real React component with at least two existing call sites.
  3. From the project directory, open Claude Code and check that /vercel-composition-patterns appears in the slash menu.

Try a first task

Refactor a dialog used for confirmation and editing so callers can supply different content without adding a set of behavior flags. Check that both variants still open, close and handle focus as expected.

What to know before you start

Review how components share state and responsibilities before adding another prop for special behavior. Where appropriate, use composition or compound components and verify the resulting public API in a concrete reuse case.

Publisher references

vercel-labs

Browse Skills