ktaesthetix

Vercel Composition Patterns

開発v1.0.0
作者:ktaesthetix更新日 2026-05-11vercel-composition-patterns@clawhub_ktaesthetix/vercel-composition-patterns
コード生成フロントエンド開発

AlphaMoatによると、2026-09時点でVercel Composition Patternsのダウンロード数は4,964、スター数は4で、AIスキル全体5,078件中1,856位、開発では577件中240位です。

インストール数
466
ダウンロード数
4964
スター数
4
総合順位
#1,856
全体の上位 37% · 開発の上位 42%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗15345794-
SkillHub ↗46649643—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

複合コンポーネントと共有コンテキストで真偽値プロパティの増加を抑え、Provider の背後に状態の実装を分離し、明示的な派生コンポーネントと子要素による合成を用います。React API の一部の規則には対応バージョンの制限があります。 React 19 固有の ref、context、use() の説明を適用する前に、プロジェクトの React バージョンを確認してください。

資料公開日 2026-10-27

できること

  • コンポーネント API を見直し、真偽値プロパティの多い実装を整理する

使う場面

  • コンポーネントライブラリの設計や React の合成構造を確認するとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

このコンポーネントを確認し、React のバージョンに合う複合コンポーネントと明示的な派生案を示して。

月次の推移

ダウンロード数4964
3083409351032026-03 · ダウンロード数 32222026-05 · ダウンロード数 38532026-06 · ダウンロード数 40432026-07 · ダウンロード数 43392026-08 · ダウンロード数 44882026-09 · ダウンロード数 496426-0326-09
スター数4
3442026-03 · スター数 32026-05 · スター数 32026-06 · スター数 32026-07 · スター数 32026-08 · スター数 42026-09 · スター数 426-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094964—4
2026-084488+3.4%4
2026-074339+7.3%3
2026-064043+4.9%3
2026-053853—3
2026-033222—3

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 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:
すべて表示(全 90 行)
  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`

開発の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。