Skip to main content
Back to registry

vercel-composition-patterns

vercel-labs/agent-skills

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.

Installs83
Install command
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-composition-patterns
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
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. Reference these guidelines when: ⚠️ React 19+ only. Skip this section if using React 18 or earlier. Read individual rule files for detailed explanations and code examples: Each rule file contains: For the complete guide with all rules expanded: AGENTS.md - Refactoring components with many boolean props - Building reusable component libraries - Designing flexible component APIs - Reviewing component architecture - Working with compound components or context providers - architecture-avoid-boolean-props - Don't add boolean props to customize behavior; use composition - architecture-compound-components - Structure complex components with shared context - state-decouple-implementation - Provider is the only place that knows how state is managed - state-context-interface - Define generic interface with state, actions, meta for dependency injection - state-lift-state - Move state into provider components for sibling access - patterns-explicit-variants - Create explicit variant components instead of boolean modes - patterns-children-over-render-props - Use children for composition instead of renderX props -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does vercel-composition-patterns do?

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.

Is vercel-composition-patterns good?

vercel-composition-patterns does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does vercel-composition-patterns work with?

vercel-composition-patterns currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to vercel-composition-patterns?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install vercel-composition-patterns?

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

Related skills

More from vercel-labs/agent-skills

Related skills

Alternatives in Software Engineering