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.
- Category
- Design
- Source
- vercel-labs/agent-skills
- License
- Not stated
- Proof model
- claude-opus-5-5
- Brief
- “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.”
- Skill commit
063bee9