← Back to list
⚡

vercel-composition-patterns Checked

A skill from the GitHub repository calesthio/OpenMontage.
⚡ Productivity skills By calesthio Version v1.0.0 Added 2026-09-07 Updated 2026-09-07 Source ↗
8.2Overall rating
2Views
6Downloads
56.5kStars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "vercel-composition-patterns" skill by following the instructions at https://skill123.me/install/vercel-composition-patterns.
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/vercel-composition-patterns.sh | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.0 · 18 KB
📊 Static rating
8.2/10
Trigger
7.5
Structure
8.0
Workflow
6.4
Content
9.0
Engineering
10.0
Security
10.0

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

A skill from the GitHub repository calesthio/OpenMontage.

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.

> **Extended reference:** AGENTS.md (AGENTS.md) in this directory is the long-form upstream guide (vendored from Vercel). It is supplementary reference material scoped to this skill only — SKILL.md is the loadable entry point and the authority. It does not override or extend the repository-root AGENTS.md / AGENT_GUIDE.md.

Documentation

A skill from the GitHub repository calesthio/OpenMontage.

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.

> **Extended reference:** AGENTS.md (AGENTS.md) in this directory is the long-form upstream guide (vendored from Vercel). It is supplementary reference material scoped to this skill only — SKILL.md is the loadable entry point and the authority. It does not override or extend the repository-root AGENTS.md / AGENT_GUIDE.md.

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

Score breakdown

Trigger
7.5
Good What/When with compound components, render props, context keywords; no explicit When-Not in description.
Structure
8.0
Good disclosure via 8 rule files, but README.md, _template.md and 946-line duplicate AGENTS.md cost 2.4 and 2.2.
Workflow
6.4
Reviewer knowledge pattern with React-19 version guard, but no error handling or verification loop.
Content
9.0
Crisp writing, uniform incorrect/correct examples in every rule file.
Engineering
10.0
Valid frontmatter with license and metadata; referenced AGENTS.md and rules files all exist.
Security
10.0
Benign component-architecture guidance; no network, injection, or secrets.
Clean vendored Vercel composition-patterns rule set with tidy 91-line index and per-rule files; README.md, _template.md and duplicate compiled AGENTS.md remain as redundant files.