composition-patterns

composition-patterns is a skill for Claude Code, Codex from itallstartedwithaidea/claude-googleadsagent. It costs 34 tokens per session (1,217 once invoked), scanned A, original, no licence file.

A guide to designing React components, the reusable building blocks used to create React interfaces. It covers compound components, sharing state between components, internal composition, and reducing boolean options.

In plain words
What is it for?
Use it when designing or refactoring React component APIs, especially for flexible components that share state or offer several related interface parts.
Why use it?
It helps prevent components from becoming difficult to reuse or maintain as more cases are added. It also addresses components with too many true-or-false properties controlling their behavior.

Skill for Claude CodeCodex

Part of the googleadsagent plugin — 41 skills, 7 commands, 7 agents, 2 hooks, 2 MCP servers shipped together

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

Made for: Claude Code, Codex.

Or install googleadsagent, the plugin that ships this one along with the rest of its 41 skills, 7 commands, 7 agents, 2 hooks, 2 MCP servers.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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.00034 $0.01217
Opus 5 $0.00017 $0.00609
Sonnet 5 $0.00007 $0.00243
Haiku 4.5 $0.00003 $0.00122

Measured 3d ago against content hash 5798c363e0f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 3d 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.

skills/composition-patterns/SKILL.md · 153 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. 3d ago First seen · 153 lines · 34 tokens per session scan A 5798c363e0f2

Subscribe to this mod's changes

composition-patterns is a skill published in the GitHub repository itallstartedwithaidea/claude-googleadsagent (2 stars, last pushed 1mo ago), with no licence file. It adds 34 tokens to every session and 1,217 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

frontend-patterns

Context enrichment for frontend UI development using shadcn/ui and Tailwind CSS. Use when building component libraries, implementing UI designs, theming, or working with accessible React components.

rsmdt/the-startup · 40 tokens

react-patterns

React + TypeScript component and hook standards. TRIGGER when: creating components, custom hooks, or reviewing React code. SKIP: visual styling and theme tokens (use mui-styling); global store design (use state-management).

komluk/scaffolding · 51 tokens

composition-patterns

Composition Patterns teaches agents to build flexible, maintainable React components using compound components, state lifting, internal composition, and the elimination of boolean prop proliferation.

itallstartedwithaidea/agent-skills · 34 tokens

react-best-practices

React Best Practices codifies 40+ rules across 8 priority categories, from Critical (eliminating waterfalls, reducing bundle size) to Low-Medium (JavaScript micro-optimizations).

itallstartedwithaidea/agent-skills · 45 tokens

react-native-guidelines

React Native Guidelines codifies 16 rules across 7 sections—Performance, Layout, Animation, Images, State, Architecture, and Platform—that prevent the most common pitfalls in cross-platform mobile development.

itallstartedwithaidea/agent-skills · 44 tokens

view-transitions

View Transitions implements the React View Transition API for seamless animated transitions between UI states and routes.

itallstartedwithaidea/agent-skills · 23 tokens