design-module-composition
CommunityDesign composable component module APIs
Design & Creative#accessibility#compound components#component composition#render props#headless components#slot api
Authorjacob-balslev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps you design reusable UI component modules that expose the right parts to consumers, so variation is achieved through composition instead of brittle, prop-heavy configuration.
Core Features & Use Cases
- Compound-component APIs that share context between a parent and named children (e.g., Tabs and its subparts).
- Slot/children APIs that let consumers pass arbitrary content into well-defined extension points.
- Render-props and headless primitives that separate state/behavior from markup so teams can reuse interaction logic with different presentations.
- Polymorphic/asChild patterns that let consumers change the rendered element while preserving behavior and accessibility contracts.
- Boundary guidance for when to choose composition versus configuration, and when to hand off to other architecture/a11y skills.
Quick Start
Ask for a proposed component API and the consumer’s variation goals, and use this skill to rewrite the design so the primary variations are enabled via composition (slots/children/compound pieces/headless state) rather than adding many boolean props.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: design-module-composition Download link: https://github.com/jacob-balslev/skill-graph/archive/main.zip#design-module-composition Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.