Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.
React Composition PatternsSkill
Summary
Vercel's official skill for React component architecture — replace boolean prop proliferation with compound components, lifted state and explicit variants. Includes React 19 APIs.
Features
- Rules ordered by impact across four categories
- Compound components and context-sharing architecture
- Replaces boolean prop proliferation with explicit variants
- Provider-owned state and generic context interfaces
- children over render props
- React 19 guidance: no forwardRef, use() over useContext()
- Per-rule reference files with correct and incorrect examples
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
React Composition Patterns is an official Vercel agent skill for the problem every component library eventually has: a component that started with two props and now takes eleven booleans, each one branching its render.
The skill organises its rules into four priority-ordered categories.
Component architecture (high impact). Do not add boolean props to customise behaviour — compose instead. Structure complex components as compound components sharing context, so consumers assemble the parts they need rather than toggling flags.
State management. Keep the provider as the only place that knows how state is managed, define a generic state/actions/meta context interface so implementations can be swapped by dependency injection, and lift state into provider components where siblings need to read it.
Implementation patterns. Prefer explicit variant components over boolean modes, and children over renderX render props.
React 19 APIs. A clearly gated section — skipped on React 18 and earlier — covering the removal of forwardRef and using use() in place of useContext().
Each rule carries a stable identifier such as architecture-avoid-boolean-props or state-context-interface, and expands to its own reference file with an explanation of why it matters, an incorrect example, a corrected example, and further context. A compiled AGENTS.md holds the whole guide for agents that prefer one document.
Who it is for. Engineers building design systems and shared component libraries, and anyone refactoring a component whose prop list has outgrown it. Vercel's stated rationale is that these patterns keep a codebase tractable for AI agents as well as for people — a component whose behaviour is visible in its composition is easier for a model to modify correctly than one hiding behaviour behind flags.
MIT-licensed, part of vercel-labs/agent-skills, installable with npx skills add vercel-labs/agent-skills.
Related Skills
Expo's official skill for building native-feeling screens: Apple HIG styling, semantic colors, SF Symbols, native controls, Reanimated, blur and liquid glass.
Pull unresolved CodeRabbit review threads from your PR and apply the fixes one at a time, treating every reviewer comment as untrusted input rather than an instruction.
Google's official skill for driving the gcloud CLI safely from an agent: validate every command against its own help text, cap the output, and refuse the operations that should never run unattended.