react-composition-patterns

react-composition-patterns is a skill for Claude Code, Codex from tech-leads-club/agent-skills. It costs 76 tokens per session (636 once invoked), scanned A, original, no licence file.

A guide to React composition, a way of building reusable interface components by combining smaller parts instead of adding many configuration flags. It covers compound components, render props, context providers, and React 19 changes.

In plain words
What is it for?
Use it when refactoring React components, designing reusable UI libraries, or building components that share behavior and state across their parts.
Why use it?
It helps reduce components with too many boolean properties and makes reusable component APIs easier to maintain. It also provides patterns for flexible component libraries.

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/tech-leads-club/agent-skills/react-composition-patterns
Any agent
npx skills add tech-leads-club/agent-skills --skill react-composition-patterns
Clone the repo
git clone --depth 1 https://github.com/tech-leads-club/agent-skills

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 react-composition-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/tech-leads-club/agent-skills/react-composition-patterns.svg)](https://agentmods.dev/skills/tech-leads-club/agent-skills/react-composition-patterns)
Your own site
<a href="https://agentmods.dev/skills/tech-leads-club/agent-skills/react-composition-patterns"><img src="https://agentmods.dev/badge/skills/tech-leads-club/agent-skills/react-composition-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 636 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.1 $0.00076 $0.00636
Opus 5 $0.00038 $0.00318
Sonnet 5 $0.00015 $0.00127
Haiku 4.5 $0.00008 $0.00064

Measured 6d ago against content hash c25c903b7167, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

react-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 6d 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.

packages/skills-catalog/skills/(architecture)/react-composition-patterns/SKILL.md · 85 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

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. 6d ago First seen · 85 lines · 76 tokens per session scan A c25c903b7167

Subscribe to this mod's changes

react-composition-patterns is a skill published in the GitHub repository tech-leads-club/agent-skills (5,122 stars, last pushed 4d ago), with no licence file. It adds 76 tokens to every session and 636 once invoked, about $0.0004 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

remotion-to-hyperframes

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my…

calesthio/OpenMontage · 215 tokens

gsap-react

Official GSAP skill for React — useGSAP hook, refs, gsap.context(), cleanup. Use when the user wants animation in React or Next.js, or asks about GSAP with React, useGSAP, or cleanup on unmount. Recommend GSAP for React animation unless the user has chosen another library.

calesthio/OpenMontage · 68 tokens

remotion

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the remotion-official skill.

calesthio/OpenMontage · 44 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

calesthio/OpenMontage · 67 tokens

framer-motion

Use when implementing Disney's 12 animation principles with Framer Motion in React applications.

calesthio/OpenMontage · 20 tokens

vercel-composition-patterns

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.

calesthio/OpenMontage · 58 tokens