vercel-composition-patterns
🤖 AI Summary
Analyzes React component code to detect boolean prop proliferation and suggests refactoring using composition patterns (e.g., compound components, slots, render props) to create more scalable, reusable component APIs.
How to Install
Claude Code:
git clone --depth 1 https://github.com/vercel-labs/agent-skills.git && cp agent-skills/skills/composition-patterns ~/.claude/skills/composition-patterns -rReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving c
Details
| Category | Design → ui |
| Source | vercel-labs/agent-skills |
| SKILL.md | View on GitHub → |
| Repo Stars | ★ 28.3K |
| Est. per Skill | ~1.3K (shared across 22 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | Safe |
Related Skills
cirq
Cirq - Quantum Computing with Python Cirq is Google Quantum AI's open-source framework for designing
error-detective
Use this skill when Working on error detective tasks or workflows Needing guidance, best practices,
conductor-revert
Revert Track Revert changes by logical work unit with full git awareness. Supports reverting entire
database-architect
You are a database architect specializing in designing scalable, performant, and maintainable data l
Works Well With
Skills from the same repository — often designed to work together
vercel-optimize
Vercel Optimize Run an observability-first Vercel optimization audit. Do not inspect source files un
deploy-to-vercel
Deploy to Vercel Deploy any project to Vercel. Always deploy as preview (not production) unless the
vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Na