nebula-component-creation
Installation
SKILL.md
Preview coverage requirements are delegated to canvas-workbench (see
canvas-workbench/references/components.md for Workbench component review flow,
and canvas-component-definition/references/component-mocks.md for mocks.json
rules).
Workflow
Creating a new component
Always start from an example. When asked to create a new component:
- Find a similar example in
examples/components/that can serve as a starting point (e.g., useblockquotefor an "alert" component, orbuttonfor any interactive element) - Copy the example component folder to
src/components/<new_name>/ - Keep or author preview coverage by updating the copied
mocks.jsonwhen the example includes one, or by authoring a newmocks.jsonif the new component needs named states beyond Workbench's built-inDefaulttab - Modify the copied files to implement the new component