Skip to content
↑↓navigate↵openescclose
Claude+372Whisper+228LangChain+168Codex+223NotebookLM+276DALL-E 3+192DeepL+249n8n+208Topaz Video AI+153LlamaIndex+161
Composition Patterns logo
Skill

Composition Patterns

Build cleaner, composable React component APIs

0
SaveVisit website ↗

Install

Official
npx skills add vercel-labs/agent-skills
Triggers on

Use when an agent designs, refactors or reviews reusable React components and their public APIs.

Author
Vercel
License
MIT

Composition Patterns gives an AI coding agent a practical framework for improving the architecture of reusable React components. It is especially useful when a component has accumulated too many configuration switches, tightly coupled state or an API that becomes harder to understand with every new use case. The material also accounts for relevant React 19 conventions.

Highlights

  • Guides architectural decisions for compound components and related public APIs
  • Helps separate state ownership from the visual parts that consume it
  • Encourages dedicated variants when different behaviors deserve distinct interfaces
  • Covers context-based coordination between related component parts
  • Includes focused rule files with code-oriented examples for individual design problems

The skill suits frontend engineers, design-system maintainers and teams asking coding agents to refactor shared UI foundations. It can support both implementation and architectural review without requiring an MCP server or a special external tool. Install it from Vercel’s public agent-skills collection with the documented skills CLI command; the skill folder itself contains guidance and rule references rather than executable helper scripts.

Comments(0)

Sign in to comment

No comments yet — be the first.

Similar skills

Report this comment

Why are you reporting this?