Agent skill

Composition Patterns

by sickn33 in sickn33/agentic-awesome-skills

A skill your agent uses when working with composition-patterns tasks or workflows

MITAuto-check passedDevelopment

Install Composition Patterns

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill composition-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills composition-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/composition-patterns .claude/skills/composition-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
composition-patterns
GitHub stars
47k
Used in
1 other repo
Token cost
~742 tokens
SKILL.md length
302 words
Files
11
Skills in repo
1,394
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when working with composition-patterns tasks or workflows

  • Works in 4 steps: Component Architecture (HIGH) → State Management (MEDIUM) → Implementation Patterns (MEDIUM) → …
  • Working with composition-patterns tasks
  • SKILL.md covers When to Use, Rule Categories by Priority, Quick Reference and How to Use, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Composition Patterns is an agent skill from sickn33/agentic-awesome-skills. Use when working with composition-patterns tasks or workflows

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files (for example `rules/_sections.md`, `rules/_template.md` and `rules/architecture-avoid-boolean-props.md`).

It sits in Development, covering Design patterns. It works with React. The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is MIT.

When your agent uses it

  • Working with composition-patterns tasks
  • Tasks that involve Design patterns

Example prompts

  • “/composition-patterns”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Component Architecture (HIGH)
  2. State Management (MEDIUM)
  3. Implementation Patterns (MEDIUM)
  4. React 19 APIs (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit 1e53ce2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Composition Patterns loads about 742 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 302 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~742

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit 1e53ce2, republished under its MIT licence (© sickn33). 302 words, ~742 tokens.

Download SKILL.mdSave it as .claude/skills/composition-patterns/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
composition-patterns
description
Use when working with composition-patterns tasks or workflows
risk
safe
source
https://github.com/vercel-labs/agent-skills
date_added
2026-06-02

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 Use

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

PriorityCategoryImpactPrefix
1Component ArchitectureHIGHarchitecture-
2State ManagementMEDIUMstate-
3Implementation PatternsMEDIUMpatterns-
4React 19 APIsMEDIUMreact19-

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

How to Use

Read individual rule files for detailed explanations and code examples:

rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

© sickn33, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files in skills/composition-patterns of sickn33/agentic-awesome-skills.

  • SKILL.md
  • rules/_sections.md
  • rules/_template.md
  • rules/architecture-avoid-boolean-props.md
  • rules/architecture-compound-components.md
  • rules/patterns-children-over-render-props.md
  • rules/patterns-explicit-variants.md
  • rules/react19-no-forwardref.md
  • rules/state-context-interface.md
  • rules/state-decouple-implementation.md
  • rules/state-lift-state.md

Open the folder on GitHubat commit 1e53ce2

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Composition Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Composition Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Composition Patterns this skillsickn33/agentic-awesome-skills47k1 repos~742Automated safety check: PassMIT
Senior Fullstackdavila7/claude-code-templates32k6 repos~1.1kAutomated safety check: NotesMIT
Design Patternswaybarrios/opencode-power-pack533—~2.2kAutomated safety check: PassMIT
Schedule Designswyxio/skills172—~2.3kAutomated safety check: PassMIT
Adversarial TS Patternspproenca/dot-skills214—~1.8kAutomated safety check: PassMIT
React Composition Patternsvercel-labs/openreview1.7k58 repos~721Automated safety check: PassMIT

Similar skills

  • Senior Fullstack

    davila7/claude-code-templates

    Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL.

    32k GitHub starsUsed in 6 repos~1.1k tokens
    DevelopmentAuto-check: notes
  • Design Patterns

    waybarrios/opencode-power-pack

    Agents should invoke this skill when choosing patterns, designing traits/interfaces/components, deciding abstraction boundaries, evaluating dependency injection/callbacks, or comparing…

    533 GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Schedule Design

    swyxio/skills

    Design patterns and lessons for building conference schedule pages with React.

    172 GitHub stars~2.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Adversarial TS Patterns

    pproenca/dot-skills

    A skill your agent uses to gate TypeScript and React application code with a pass/fail adversarial review of design-pattern usage — a single blind reviewer subagent judges a diff or file set against…

    214 GitHub stars~1.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • React Composition Patterns

    vercel-labs/openreview

    Official

    Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.

    1.7k GitHub starsUsed in 58 repos~721 tokens
    Frontend & DesignAuto-check passed
  • React Render Types Composition

    HorusGoul/eslint-plugin-react-render-types

    Composition patterns for building React components with @renders type annotations from eslint-plugin-react-render-types.

    111 GitHub stars~1.1k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed

More from sickn33/agentic-awesome-skills

All 1,394 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Categories

Questions about Composition Patterns

What does Composition Patterns do?

A skill your agent uses when working with composition-patterns tasks or workflows. Composition Patterns is an agent skill from sickn33/agentic-awesome-skills.

When should I use Composition Patterns?

Composition Patterns fits situations like: working with composition-patterns tasks; tasks that involve Design patterns.

How do I install Composition Patterns in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill composition-patterns -a claude-code`. Or copy the skill folder (skills/composition-patterns in sickn33/agentic-awesome-skills) into .claude/skills/composition-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Composition Patterns in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill composition-patterns -a codex`. Or copy the skill folder (skills/composition-patterns in sickn33/agentic-awesome-skills) into .agents/skills/composition-patterns in your project. Codex loads it when a task matches its description.

Can I use Composition Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sickn33/agentic-awesome-skills --skill composition-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/composition-patterns, .gemini/skills/composition-patterns, .github/skills/composition-patterns and .opencode/skills/composition-patterns in your project.

What does Composition Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Composition Patterns is instructions for the agent only.

Does Composition Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Composition Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Composition Patterns use?

Composition Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Composition Patterns use?

About 742 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Composition Patterns?

Skills that share tags, products or a category with Composition Patterns: Senior Fullstack (davila7/claude-code-templates, 32k stars), Design Patterns (waybarrios/opencode-power-pack, 533 stars), Schedule Design (swyxio/skills, 172 stars) and Adversarial TS Patterns (pproenca/dot-skills, 214 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Composition Patterns?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,304 GitHub stars. The repository holds 1,394 skills in this directory. The repository was last updated on October 6, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.