A structured repository for React composition patterns that scale. These patterns help avoid boolean prop proliferation by using compound components, lifting state, and composing internals. - rules/ - Individual rule files (one per rule) - sections.md - Section metadata (titles, impacts, descriptions) - template.md - Template for creating new rules - area-description.md - Individual rule files - m
Add this skill
npx mdskills install vercel-labs/composition-patternsWell-organized composition patterns with clear categorization and priorities, but lacks actionable triggers
A structured repository for React composition patterns that scale. These patterns help avoid boolean prop proliferation by using compound components, lifting state, and composing internals.
rules/ - Individual rule files (one per rule)
_sections.md - Section metadata (titles, impacts, descriptions)_template.md - Template for creating new rulesarea-description.md - Individual rule filesmetadata.json - Document metadata (version, organization, abstract)AGENTS.md - Compiled output (generated)architecture-avoid-boolean-props.md - Don't add boolean props to customize
behaviorarchitecture-compound-components.md - Structure as compound components with
shared contextstate-lift-state.md - Lift state into provider componentsstate-context-interface.md - Define clear context interfaces
(state/actions/meta)state-decouple-implementation.md - Decouple state management from UIpatterns-children-over-render-props.md - Prefer children over renderX propspatterns-explicit-variants.md - Create explicit component variantsrules/_template.md to rules/area-description.mdarchitecture- for Component Architecturestate- for State Managementpatterns- for Implementation PatternsCRITICAL - Foundational patterns, prevents unmaintainable codeHIGH - Significant maintainability improvementsMEDIUM - Good practices for cleaner codeInstall via CLI
npx mdskills install vercel-labs/composition-patternsVercel Composition Patterns is a free, open-source AI agent skill. A structured repository for React composition patterns that scale. These patterns help avoid boolean prop proliferation by using compound components, lifting state, and composing internals. - rules/ - Individual rule files (one per rule) - sections.md - Section metadata (titles, impacts, descriptions) - template.md - Template for creating new rules - area-description.md - Individual rule files - m
Install Vercel Composition Patterns with a single command:
npx mdskills install vercel-labs/composition-patternsThis downloads the skill files into your project and your AI agent picks them up automatically.
Vercel Composition Patterns works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.