component-common-domai…
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic…
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.
Claude Code
$ npx -y skills add tech-leads-club/agent-skills --skill react-composition-patterns --agent claude-code
Codex
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a codex -y
Cursor
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a cursor -y
Gemini CLI
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a gemini-cli -y
GitHub Copilot
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a github-copilot -y
OpenCode
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a opencode -y
Windsurf
$ npx skills add tech-leads-club/agent-skills --skill react-composition-patterns -a windsurf -y
name: react-composition-patterns description: 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. Do NOT use for React/Next.js performance optimization (use react-best-practices instead). license: MIT metadata: author: vercel version: '1.0.0'
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.
Reference these guidelines when:
| Priority | Category | Impact | Prefix | | -------- | ----------------------- | ------ | --------------- | | 1 | Component Architecture | HIGH | `architecture-` | | 2 | State Management | MEDIUM | `state-` | | 3 | Implementation Patterns | MEDIUM | `patterns-` | | 4 | React 19 APIs | MEDIUM | `react19-` |
behavior; use composition
context
state is managed
for dependency injection
boolean modes
of renderX props
> **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.
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:
For the complete guide with all rules expanded: `AGENTS.md`
The secure, validated skill registry for professional AI coding agents. Extend Antigravity, Claude Code, Cursor, Copilot and more with absolute confidence.
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic…
Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at…
Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking…
Analyzes coupling between modules using the three-dimensional model (strength, distance, volatility) from "Balancing Coupling in…
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what…
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.