Loading
Loading
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.
written by Forgecat

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.
npx forgecat install @forgecat/vercel-labs_agent-skills_composition-patterns
| Field | Value |
|---|---|
| Author | vercel |
| Original repository | https://github.com/vercel-labs/agent-skills |
| Version | 0.0.0 |
| Original commit | 47863b2 |
| License | MIT |
| Source platform | Claude Code skills (Agent Skills format) |
| Platform | Status |
|---|---|
| Claude Code | Tested |
| Cursor | Partial |
| Codex | Partial |
written by original source
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 contextstate-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 UIpatterns-children-over-render-props.md - Prefer children over renderX propspatterns-explicit-variants.md - Create explicit component variantsrules/_template.md to rules/area-description.mdarchitecture- for Component Architecturestate- for State Managementpatterns- for Implementation PatternsCRITICAL - Foundational patterns, prevents unmaintainable codeHIGH - Significant maintainability improvementsMEDIUM - Good practices for cleaner codeNone
forgecat
View CreatorNone