ktaesthetix

Vercel Composition Patterns

Developmentv1.0.0
By ktaesthetixUpdated 2026-05-11vercel-composition-patterns@clawhub_ktaesthetix/vercel-composition-patterns
Code GenerationFrontend

According to AlphaMoat, as of 2026-09, Vercel Composition Patterns has 4,964 downloads and 4 stars — ranked #1,856 of 5,078 AI skills overall, and #240 of 577 in Development.

Installs
466
Downloads
5.0K
Stars
4
Overall Rank
#1,856
Top 37% overall · Top 42% in Development
PlatformInstallsDownloadsStarsComments
ClawHub ↗1534.6K4-
SkillHub ↗4665.0K3—

Platforms count differently and update at different times.

What this skill does

It favors compound components and shared context over growing sets of boolean props, separates state implementation behind providers, and uses explicit variants and children-based composition. The guide also identifies version-specific React API rules that should only be applied to the stated supported version. Verify the project version before applying React 19-specific ref, context or use() guidance.

Profile published 2026-10-27

What you can do with it

  • Review component APIs and refactor boolean-heavy components

When to use it

  • When designing a component library or reviewing React composition

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Review this component and propose compound components and explicit variants appropriate for its React version.

Monthly Trend

Downloads5.0K
3.1K4.1K5.1K2026-03 · Downloads 3.2K2026-05 · Downloads 3.9K2026-06 · Downloads 4.0K2026-07 · Downloads 4.3K2026-08 · Downloads 4.5K2026-09 · Downloads 5.0K26-0326-09
Stars4
3442026-03 · Stars 32026-05 · Stars 32026-06 · Stars 32026-07 · Stars 32026-08 · Stars 42026-09 · Stars 426-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-095.0K—4
2026-084.5K+3.4%4
2026-074.3K+7.3%3
2026-064.0K+4.9%3
2026-053.9K—3
2026-033.2K—3

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.8 KB · ClawHub v1.0.0
---
name: vercel-composition-patterns
description:
  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.
license: MIT
metadata:
Show all (90 lines)
  author: vercel
  version: '1.0.0'
---

# 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`

Popular in Development

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.