vercel-composition-patterns

Validate SKILL.md files and extract YAML frontmatter for React composition patterns.

3|2|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/ShutovKS/tts-server --skill vercel-composition-patterns-shutovks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-composition-patterns
Source: https://github.com/ShutovKS/tts-server/tree/main/.opencode/skills/vercel-composition-patterns
Command: npx skills add https://github.com/ShutovKS/tts-server --skill vercel-composition-patterns-shutovks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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.

Frequently Asked Questions about vercel-composition-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are React composition patterns and when should I use them?

React composition patterns are architectural techniques like compound components and context providers used to build flexible component libraries. Use them when refactoring components to resolve boolean prop proliferation and design highly reusable APIs.

How do I scale React components without excessive boolean prop proliferation?

To scale React components without boolean prop proliferation, apply composition patterns such as explicit variants and compound components. This approach separates concerns and builds flexible APIs, preventing component logic from becoming unmaintainable.

Does this React composition approach work with React 19 API changes?

Yes, this composition approach explicitly includes React 19 API changes. It accommodates updated context provider mechanisms and component architecture rules, ensuring your compound components and explicit variants remain compatible with the latest React framework updates.

What is the best way to structure a flexible React component library API?

The best way to structure a flexible React component library API is using composition patterns. Implementing compound components, render props, and explicit variants allows consumers to compose UI elements dynamically without deep prop drilling or rigid component hierarchies.

When should I avoid using compound components in React?

You should avoid compound components when a simple, self-contained UI element requires no flexible child composition. If your component lacks complex state sharing needs or context provider dependencies, standard props offer a simpler alternative to full composition architectures.