vercel-composition-patterns

A set of React design patterns for building components whose parts can be combined and reused. It covers compound components, render props, shared context, and React 19 changes.

In plain words
What is it for?
Use it when refactoring React components, creating component libraries, or designing reusable interfaces.
Why use it?
It helps avoid components with too many yes-or-no options and makes flexible component APIs easier to maintain.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/getstream/stream-chat-react/vercel-composition-patterns
Any agent
npx skills add GetStream/stream-chat-react --skill vercel-composition-patterns
Clone the repo
git clone --depth 1 https://github.com/GetStream/stream-chat-react

Made for: Claude Code, Codex.

Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found 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 $0.00058 $0.00626
Opus 5 $0.00029 $0.00313
Sonnet 5 $0.00012 $0.00125
Haiku 4.5 $0.00006 $0.00063

Measured yesterday against content hash e38e0eaa6093, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

.agents/skills/vercel-composition-patterns/SKILL.md · 90 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. yesterday First seen · 90 lines · 58 tokens per session scan A e38e0eaa6093

Subscribe to this mod's changes

vercel-composition-patterns is a skill published in the GitHub repository GetStream/stream-chat-react (841 stars, last pushed 3d ago), with no licence file. It adds 58 tokens to every session and 626 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

accessibility

Maintain VoiceOver/TalkBack-focused accessibility in stream-chat-react-native. Use when changing interactive components, gestures, modals, lists, media controls, notifications, focus behavior, or live announcements.

GetStream/stream-chat-react-native · 42 tokens

perf-benchmarking

Measure React Native performance on-device for stream-chat-react-native — Hermes CPU profiles, deterministic call/listener counting, component render profiling, and memory/jank capture. Use when asked to benchmark a change, prove or disprove a perf claim, compare before/after, find what re-renders or what's heavy on…

GetStream/stream-chat-react-native · 113 tokens

rtl

Audit and maintain RTL (right-to-left) layout compatibility in stream-chat-react-native. Use when changing styles, positioning, flex layouts, swipe gestures, animated transforms, icons, text alignment, or anything that has a horizontal/directional axis.

GetStream/stream-chat-react-native · 50 tokens

UI Designer

React + TypeScript + Tailwind CSS chat interface specialist for this project's streaming chat UI.

microsoft/Build26-BRK242-turn-your-agents-into-action-connect-tools-apis-and-documents · 20 tokens

developer

Feature development for this repo — XP, DDD, BDD, TDD, Glossary naming, Apple HIG minimal UX, living docs sync (C4 / Glossary / User Story Map), and mandatory commit/PR standards (why body + References from official docs and research). Use when implementing features, writing tests, committing, opening PRs, UI work, or…

felixzhu97/explore-chat · 91 tokens

spring-ai

Spring AI 2.0 Development Guide. Covers ChatClient API, Structured Output, RAG, Tool Calling, Embeddings, Vector Store, MCP Integration, Clean Architecture Integration.

felixzhu97/explore-chat · 39 tokens