Individual skill
vercel-composition-patterns
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.
skills/composition-patterns/SKILL.md
Source commit 3ae17b2c765ed8534ba9c6f848563db127fc4ca6
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 4,700
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: codex
- ai Repository topic
- ai-agent Repository topic
- ai-agent-tools Repository topic
- claude Repository topic
- claude-ai Repository topic
- claude-api Repository topic
- claude-code Repository topic
- claude-code-communication Repository topic
- claude-commands Repository topic
- claude-desktop Repository topic
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 22,463 bytesREADME.mddoc · 2,140 bytesSKILL.mdcore · 2,884 bytesmetadata.jsonasset · 530 bytesrules/_sections.mddoc · 821 bytesrules/_template.mddoc · 329 bytesrules/architecture-avoid-boolean-props.mddoc · 2,213 bytesrules/architecture-compound-components.mddoc · 2,578 bytesrules/patterns-children-over-render-props.mddoc · 1,882 bytesrules/patterns-explicit-variants.mddoc · 2,385 bytesrules/react19-no-forwardref.mddoc · 953 bytesrules/state-context-interface.mddoc · 4,974 bytesrules/state-decouple-implementation.mddoc · 2,637 bytesrules/state-lift-state.mddoc · 3,224 bytes
Read excerpt
# 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