vercel-composition-patterns

vercel-composition-patterns is a skill for Claude Code, Codex from bl1nk-bot/agent-library. It costs 58 tokens per session (662 once invoked), scanned A, a copy of vercel-composition-patterns, CC0-1.0.

A set of design patterns for building reusable React components, which are pieces of a web interface. It covers ways to combine components, share state, and use React 19 features.

In plain words
What is it for?
Use it when refactoring components with many true-or-false options, building component libraries, reviewing architecture, or working with compound components, render props, or context providers.
Why use it?
It helps prevent components from becoming difficult to maintain when they need many variations. The guidance gives developers clearer ways to design flexible component APIs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when refactoring components with many true-or-false options, building component libraries, reviewing architecture, or working with compound components, render props, or context providers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bl1nk-bot/agent-library/vercel-composition-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bl1nk-bot/agent-library --skill vercel-composition-patterns
Clone the repo
git clone --depth 1 https://github.com/bl1nk-bot/agent-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-composition-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/bl1nk-bot/agent-library/vercel-composition-patterns/github.svg)](https://agentmods.dev/skills/bl1nk-bot/agent-library/vercel-composition-patterns)
Your own site
<a href="https://agentmods.dev/skills/bl1nk-bot/agent-library/vercel-composition-patterns"><img src="https://agentmods.dev/badge/skills/bl1nk-bot/agent-library/vercel-composition-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vercel-composition-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/bl1nk-bot/agent-library/vercel-composition-patterns"><img src="https://agentmods.dev/badge/skills/bl1nk-bot/agent-library/vercel-composition-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 83% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00662
Opus 5.5 $0.00023 $0.00265
Sonnet 5.5 $0.00012 $0.00132
Haiku 4.5 $0.00006 $0.00066

Measured 1mo ago against content hash 9f1bb7a404b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vercel-composition-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

83% identical to vercel-composition-patterns — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.kilo/skills/vercel-composition-patterns/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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()

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 94 lines · 58 tokens per session scan A 9f1bb7a404b5

Subscribe to this mod's changes

vercel-composition-patterns is a skill published in the GitHub repository bl1nk-bot/agent-library (2 stars, last pushed today), licensed CC0-1.0. It adds 58 tokens to every session and 662 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to vercel-composition-patterns, differing in 13 lines, and is treated as a copy.

Related

Other skills, from other repositories

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

webmcp-add-tool

Scaffolds a new WebMCP tool component using useMcpTool with Zod schema, handler, annotations, and wires it into the WebMCPProvider tree. Use when the user wants to expose functionality as an MCP tool, make something callable by AI, add a new tool, or create an AI-accessible action.

agentcathq/webmcp-react · 73 tokens

webmcp-setup

Bootstraps webmcp-react into an existing React or Next.js app. Installs dependencies, adds WebMCPProvider, creates a first tool, and configures the MCP client bridge. Use when the user wants to set up WebMCP, add MCP tools to their app, integrate webmcp-react, or make their React app accessible to AI agents.

agentcathq/webmcp-react · 80 tokens

add-widget

Add a new widget (React UI + MCP tool) to this template. Use when asked to "add a widget", "add a new tool with UI", "create a new widget", "scaffold a widget", or "build a new MCP App feature".

pomerium/mcp-app-typescript-template · 56 tokens

vercel-react-best-practices

React and Next.js performance optimization with 69 prioritized rules across 8 categories. Use when writing React components, implementing data fetching, reviewing code for performance, refactoring React/Next.js code, optimizing bundle size, or when the user says "React performance", "optimize React", "Next.js best…

Kevin-Liu-01/Agent-Machines · 96 tokens

nextjs-supabase-auth

Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.

Kastalien-Research/thoughtbox · 40 tokens