canvas-component-composability
Installation
SKILL.md
Prefer small, focused components over monolithic ones with many props. When a component starts accumulating many unrelated props, decompose it into smaller, composable pieces.
For repeatable card/list/grid UI, default to two Canvas components: a parent
layout component with a slot for the repeated children, and a child component
for one item. Do not flatten repeated items into numbered prop groups such as
car1Name, car2Name, feature1Title, or card3Image.
Ownership
This skill owns the reusable modeling rules for:
- props vs slots
- variants vs granular props
- repeatable-content patterns
- granularity checks (split, merge, slot extraction)