composition-patterns

composition-patterns is a skill for Claude Code from Team-Deepiri/deepiri-axiom. It costs 43 tokens per session (558 once invoked), scanned A, original, Apache-2.0.

A set of React design patterns for building flexible, reusable user-interface components. React is a JavaScript library for user interfaces; these patterns cover compound components, shared state providers, render props, and React 19 features.

In plain words
What is it for?
It helps refactor React components, design component libraries, manage shared state between related components, and review reusable component APIs.
Why use it?
It helps avoid components overloaded with many on-or-off settings, which can make their APIs hard to understand and maintain. Instead, related parts can be combined into clearer component structures.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; mentions AGENTS.md.

Good fit It helps refactor React components, design component libraries, manage shared state between related components, and review reusable component APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/team-deepiri/deepiri-axiom/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 Team-Deepiri/deepiri-axiom --skill composition-patterns
Clone the repo
git clone --depth 1 https://github.com/Team-Deepiri/deepiri-axiom

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/team-deepiri/deepiri-axiom/composition-patterns/github.svg)](https://agentmods.dev/skills/team-deepiri/deepiri-axiom/composition-patterns)
Your own site
<a href="https://agentmods.dev/skills/team-deepiri/deepiri-axiom/composition-patterns"><img src="https://agentmods.dev/badge/skills/team-deepiri/deepiri-axiom/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 composition-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/team-deepiri/deepiri-axiom/composition-patterns"><img src="https://agentmods.dev/badge/skills/team-deepiri/deepiri-axiom/composition-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 558 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 original 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.00043 $0.00558
Opus 5.5 $0.00017 $0.00223
Sonnet 5.5 $0.00009 $0.00112
Haiku 4.5 $0.00004 $0.00056

Measured 11d ago against content hash 1b6c39714822, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d 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 · 75 lines

What it actually says

Composition patterns (Vercel)

Flexible, maintainable React components via composition — not boolean prop sprawl.

Source: vercel-labs/agent-skills (composition-patterns). MIT.

When to apply

  • Components with many boolean props
  • Reusable component libraries
  • Flexible component APIs
  • Compound components / context providers
  • Architecture review of React UI

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. Architecture (HIGH)

  • architecture-avoid-boolean-props — don't customize via booleans; compose
  • architecture-compound-components — shared context for complex components

2. State (MEDIUM)

  • state-decouple-implementation — only the provider knows state plumbing
  • state-context-interface — generic state / actions / meta for DI
  • state-lift-state — state in providers for sibling access

3. Patterns (MEDIUM)

  • patterns-explicit-variants — variant components over boolean modes
  • patterns-children-over-render-props — children over renderX props

4. React 19+ (MEDIUM)

Skip if on React 18 or earlier.

  • react19-no-forwardref — no forwardRef; prefer React 19 patterns (use() vs useContext())

Deep dive (upstream rules)

WebFetch detailed examples:

https://raw.githubusercontent.com/vercel-labs/agent-skills/main/skills/composition-patterns/rules/<rule-id>.md

Compiled guide:

https://raw.githubusercontent.com/vercel-labs/agent-skills/main/skills/composition-patterns/AGENTS.md

Handoff

  • react-best-practices — performance after structure is right
  • web-design-guidelines — a11y/UX audit of composed UI
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. 11d ago First seen · 75 lines · 43 tokens per session scan A 1b6c39714822

Subscribe to this mod's changes

composition-patterns is a skill published in the GitHub repository Team-Deepiri/deepiri-axiom (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 558 once invoked, about $0.0002 per session on Opus 5.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-10-26.

Related

composition-patterns compared with skills from other repositories

composition-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
composition-patternsTeam-Deepiri/deepiri-axiomSkill2yesterdayApache-2.0A43Claude Code
build-ghost-appTryGhost/GhostSkill56kyesterdayMITA44Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99kyesterdayMITA67Claude Code, Codex
fuzzy-rankingTanStack/tableSkill29k4d agoMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7k3d agoMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14kyesterdayMITA0Claude Code