Skill
/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.
One skill from vercel-labs-agent-skills. Installed with the plugin, it fires itself as you prompt.
shell
$ npx -y skills add vercel-labs/agent-skills --skill composition-patterns --agent claude-codeInstalls just this skill. Get the whole plugin for auto-invocation.
SKILL.md
composition-patterns.SKILL.md
--- name: vercel-composition-patterns description: 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. license: MIT metadata: author: vercel version: '1.0.0' --- # 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 | Priority | Category | Impact | Prefix |
Ships with vercel-labs-agent-skills
Stars29,054Forks2,602LanguageJavaScript
Get the whole plugin, auto-invoked