composition-patterns
Structure React components that scale
- For people who code
- Nothing to set up
What it does
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs.
A structured repository for React composition patterns that scale. These patterns help avoid boolean prop proliferation by using compound components, lifting state, and composing internals.
rules/- Individual rule files (one per rule)_sections.md- Section metadata (titles, impacts, descriptions)_template.md- Template for creating new rulesarea-description.md- Individual rule filesmetadata.json- Document metadata (version, organization, abstract)- `AGENTS.md` - Compiled output (generated)
architecture-avoid-boolean-props.md- Don't add boolean props to customize behaviorarchitecture-compound-components.md- Structure as compound components with shared context
state-lift-state.md- Lift state into provider componentsstate-context-interface.md- Define clear context interfaces (state/actions/meta)state-decouple-implementation.md- Decouple state management from UI
From skills/composition-patterns/README.md in vercel-labs/agent-skills · a snapshot from Nov 24, 2026, so it may be a little out of date
Try it
- 1Add composition-patterns to your AI
- 2Ask for something like this
This Button component has 14 boolean props. Refactor it into composable parts.
Design a flexible Card component for our component library using compound components.
Update these components for React 19's changes.
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Asks for wide access to your files
No clear license.
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
063bee9vercel-labs/agent-skills/skills/composition-patterns- Scanned on
- Nov 9, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanPassed
- Dangerous commandsPassed
- Network callsPassed
- PermissionsNoticed
HoneyBadger: cap-net-drift MEDIUM metadata.json:7 network silent; 7 evidence lines (first shown)The skill doesn't say it goes online, but its files contain code that can. Goes online without saying so. (LLM06 Excessive Agency) - Prompt injectionNoticed
SkillSpector: MP3 HIGH README.md:28 Memory ManipulationTries to change what your AI remembers. (LLM01 Prompt Injection) - LicenseNoticed
GitHub API: No license found.License is missing or unclear. (LLM03 Supply Chain) - MaintenancePassed
No person has signed this one off yet.
nothing found
An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 35kwhole repo
- Last updated
- Nov 20, 2026on GitHub
GitHub numbers are a snapshot from Nov 24, 2026, not live.
Community
Comments
How to add composition-patterns to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.