djankies/claude-configs/composing-components
Claude Code and agent skill by djankies/claude-configs
- community
Checking that the SKILL.md file is still in the repository.
Teaches component composition patterns in React 19 including children prop, compound components, and render props. Use when designing component APIs, creating reusable components, or avoiding prop drilling.
Install
npx vskill@latest install djankies/claude-configs/composing-componentsSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/composing-components.
Component Composition Patterns
<role> This skill teaches you how to compose components effectively using React 19 patterns. </role>
<when-to-activate> This skill activates when:
- Designing reusable component APIs
- Need to avoid prop drilling
- Creating compound components (Tabs, Accordion, etc.)
- Building flexible, composable interfaces
- Choosing between composition patterns
</when-to-activate>
<overview> React 19 supports multiple composition patterns:
- Children Prop - Simplest composition, pass components as children
- Compound Components - Components that work together (Context-based)
- Render Props - Functions as children for flexibility
- Composition over Props - Prefer slots over configuration props
When to Use:
- Children prop: Simple containment
- Compound components: Coordinated behavior (tabs, accordions)
- Render props: Custom rendering logic
- Slots: Multiple insertion points
</overview>
<workflow>
Pattern 1: Children Prop
Pattern 2: Compound Components
Usage:
Pattern 3: Render Props
</workflow>
<examples>
Example: Modal with Composition
Usage:
For comprehensive composition patterns, see: research/react-19-comprehensive.md lines 1263-1293. </examples>
<constraints>
MUST
- Use
use()API for Context in React 19 (can be conditional) - Keep compound components cohesive
- Document required child components
SHOULD
- Prefer composition over complex prop APIs
- Use Context for compound component state
- Provide good component names for debugging
NEVER
- Over-engineer simple components
- Use Context for non-coordinated components
- Forget to handle edge cases (missing children, etc.)
</constraints>
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingreact-19/skills/composing-components/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 7 Nov 2026, 23 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/djankies/claude-configs/composing-components)