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 b436d6bb494c8731c8181783f75fdc5c28013912
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 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)
- 991
- Repository last updated
- Nov 8, 2026
- License
- MIT
Observed agent integration: codex
- ai-skills Repository topic
- workflows Repository topic
- skills Repository topic
- anthropic-skills Repository topic
- planning Repository topic
- superpowers Repository topic
- context-engineering Repository topic
- ui-ux-design Repository topic
- ai-agents Repository topic
- claude-code 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,627 bytesREADME.mddoc · 2,140 bytesSKILL.mdcore · 2,886 bytesmetadata.jsonasset · 530 bytesrules/_sections.mddoc · 829 bytesrules/_template.mddoc · 329 bytesrules/architecture-avoid-boolean-props.mddoc · 2,267 bytesrules/architecture-compound-components.mddoc · 2,600 bytesrules/patterns-children-over-render-props.mddoc · 1,886 bytesrules/patterns-explicit-variants.mddoc · 2,395 bytesrules/react19-no-forwardref.mddoc · 953 bytesrules/state-context-interface.mddoc · 4,974 bytesrules/state-decouple-implementation.mddoc · 2,699 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