Vercel Composition Patterns

TopTinker Aug 13, 2026 New v1.0.0 3,304 installs Sec S+ Verified source
Claude Code Cursor
Free
Open verification
AI OverviewGenerated from SKILL.md
Core usage
This skill provides React composition patterns for building flexible, maintainable components, covering component architecture, state management, implementation patterns, and React 19 APIs. Use it when refactoring components with boolean prop proliferation, building component libraries, designing reusable APIs, or reviewing component architecture, and consult the individual rule files for detailed explanations and code examples.
Key advantages
It avoids boolean prop proliferation by promoting compound components, explicit variants, and children over render props. It also helps codebases scale for both humans and AI agents, with prioritized rule categories and React 19 API guidance.
Limitations
The React 19 API section applies only to React 19+ and should be skipped for React 18 or earlier. It is a guideline framework rather than an automated solution, requiring developers to read rule files and manually apply the patterns.
Target audience
This is for React developers and AI agents refactoring components or designing flexible component APIs. It is especially useful for teams building reusable component libraries or working with compound components, context providers, and component architecture.
Risks & notes
Applying React 19-specific patterns to older React versions can cause compatibility issues. Developers should read the relevant rule files and adapt patterns to their project context, since composition rules may not fit every component design.
DescriptionWritten by the seller

# 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
- Reviewing component architecture
- Working with compound components or context providers

## Rule Categories by Priority

Priority Category Impact Prefix
1 Component Architecture HIGH `architecture-`
2 State Management MEDIUM `state-`
3 Implementation Patterns MEDIUM `patterns-`
4 React 19 APIs MEDIUM `react19-`

## Quick Reference

### 1. Component Architecture (HIGH)

- `architecture-avoid-boolean-props` - Don't add boolean props to customize
behavior; use composition
- `architecture-compound-components` - Structure complex components with shared
context

### 2. State Management (MEDIUM)

- `state-decouple-implementation` - Provider is the only place that knows how
state is managed
- `state-context-interface` - Define generic interface with state, actions, meta
for dependency injection
- `state-lift-state` - Move state into provider components for sibling access

### 3. Implementation Patterns (MEDIUM)

- `patterns-explicit-variants` - Create explicit variant components instead of
boolean modes
- `patterns-children-over-render-props` - Use children for composition instead
of renderX props

### 4. React 19 APIs (MEDIUM)

> **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.

- `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()`

## How to Use

Read individual rule files for detailed explanations and code examples:

```
rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md
```

Each rule file contains:

- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references

## Full Compiled Document

For the complete guide with all rules expanded: `AGENTS.md`

Use caseInput → Output
Input
Reference these guidelines when:; Refactoring components with many boolean props; Building reusable component libraries; Designing flexible component APIs
Output
Verified guidance, commands and best practices for Vercel Composition Patterns, ready to paste into your agent
How it worksImport to your platform and run
Item details
Use case
AI Skills
Capability
Coding
Agents
Claude Code, Cursor
Version
1.0.0
First seen
Aug 13, 2026
Installs
3,304
License
Non-exclusive
Last update
Aug 13, 2026
InstallCompatible with agent skill ecosystem
npx skills add vercel-labs/agent-skills --skill composition-patterns
Source: vercel-labs/agent-skills
What you get
SKILL.md skill definitionCommand referenceInstallation instructionsVercel Composition Patterns reference
Verified sourceOriginal project page — inspect before install
Open the original source project
Check the upstream repository, license and changelog before install
Open source
Security ScanS+Score 100/100 · 0 findings · 2026-08-15 21:33:40
Static analysis100
Dynamic behavior100
Dependencies100
Network100
Privacy100
Threat intel100
✓ 未发现安全问题,六维检测全部通过。
Security scan generated by TopTinker automated engine from SKILL.md static analysis, for pre-install reference only. Third-party skills carry their own runtime risk.
WeChat
Qizhuwang Source Code Trading Platform
2021-12-28开店时间
284商品数
认证
Guarantees
Escrow paymentOn
Platform holds funds until delivery is confirmed
Install verified
Free download - install & run before you pay
Source transparency
Original GitHub repo linked & verified
No refunds after download
Digital product - disputes arbitrated on evidence only
Enhanced protection
Trusted seller - priority arbitration within 48h, backed by platform bond
Free

Report this listing

This content is locked. Buy it once and use it forever - instant delivery after purchase.

one-time
Unlock now
Escrow payment · 7-day refund support