Hands-OnAI
← All skills
AutomationNewFreeWorks in Claude Code · Claude app · Codex

React Composition Patterns

Build flexible, maintainable React components that scale. (For developers.)

Part of Vercel agent-skills ↗

React Composition Patterns is an official Vercel skill for designing components that stay clean as they grow. It helps you replace a pile of boolean props with compound components, render props, and context — patterns that make a codebase easier for both people and AI to work with. Includes React 19 API changes.

What it does

  • Refactors components away from boolean-prop overload.
  • Applies compound components, render props, and context patterns.
  • Keeps component APIs flexible and maintainable as they scale.

When it kicks in

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.

Topics the skill covers

  • Rule Categories by Priority
  • Quick Reference

What's inside the download

  • SKILL.md plus composition-pattern references, including React 19 changes.

14 files in the .zip:

  • Skill InstructionsSKILL.md2.8 KB
  • AgentsAGENTS.md22.1 KB
  • Metadatametadata.json530 B
  • ReadmeREADME.md2.1 KB
  • Sectionsrules/_sections.md829 B
  • Templaterules/_template.md329 B
  • Architecture Avoid Boolean Propsrules/architecture-avoid-boolean-props.md2.2 KB
  • Architecture Compound Componentsrules/architecture-compound-components.md2.5 KB
  • Patterns Children Over Render Propsrules/patterns-children-over-render-props.md1.8 KB
  • Patterns Explicit Variantsrules/patterns-explicit-variants.md2.3 KB
  • React19 No Forwardrefrules/react19-no-forwardref.md953 B
  • State Context Interfacerules/state-context-interface.md4.9 KB
  • + 2 more files

How to install (2 minutes)

Same download for Claude Code, Claude app, Codex — follow the step for the tool you use.

  1. 1Download the .zip and unzip it — you’ll get a folder called composition-patterns.
  2. 2In the Claude app: open Settings → Capabilities → Skills, choose Add / Upload, and select the folder (or the .zip).
  3. 3In Claude Code: drop the folder into your project’s .claude/skills/ directory, then type /skills to confirm it loaded.
  4. 4In Codex: drop the folder into ~/.agents/skills/ (or your project’s .agents/skills/), then type /skills — or call it directly with $composition-patterns.
  5. 5That’s it — the skill activates on its own when it fits what you’re doing.

New to skills? Our Claude Cowork beginner's guide shows how they work inside Claude.

Want to get the most out of your new skill?

Inside Hands-On AI Club we show you exactly how to use skills like this in real work — with step-by-step courses that show every move.