vercel-composition-patterns
ProvenReact 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.
No fetch-and-execute, destructive, credential, exfiltration or rules-override patterns in 14 files, checked on Nov 30, 2026. This is not a guarantee of safety. How the scan works.
Author? Show the scan result in your README
The badge updates with each weekly scan.
npx degit vercel-labs/agent-skills/skills/composition-patterns .claude/skills/vercel-composition-patternsWith and without this skill.
Prompt: “Refactor this React Modal component. It currently takes fourteen props, including isConfirm, isDanger, showFooter, footerAlign, hideClose, title, subtitle, icon, primaryLabel, secondaryLabel, onPrimary, onSecondary, size and children, and a dozen screens pass different combinations of them. Present the refactor as a single HTML page with the new API, the implementation, three call sites rewritten before and after, and a short note on why the new shape scales.” Run on claude-opus-5-5, with the skill at commit 063bee9. Recorded 10/20/2026. 3 independent runs per side; all are shown, none picked by hand.
Read this skill at its source
The repo doesn’t state an open license, so we link to it rather than showing the text here.
Open on GitHub