/kit-create
/kit-create turns a short natural-language description into a ready-to-paste TSX snippet (or a standalone component file). It is the “creator-mode” companion to /kit-add — instead of generating the catalogue source, it composes a specific instance of a component with the props you described.
Syntax
Section titled “Syntax”/kit-create <description>Examples
Section titled “Examples”/kit-create primary pill button saying "Add to cart"/kit-create danger alert with title "Payment failed" and a retry action/kit-create outlined card titled "Pricing" with a primary CTA/kit-create checkbox labelled "I agree to the terms"Supported components
Section titled “Supported components”Any component with a dedicated reference doc under plugins/acss-kit/skills/components/references/components/:
| Group | Components |
|---|---|
| Interactive | Button, IconButton, Checkbox |
| Feedback | Alert |
| Surfaces | Card, Dialog, Popover |
| Content | Link, Img, Icon |
| Form | Input, Field |
| Collections | List, Table, Nav |
How it works
Section titled “How it works”The Creator Mode workflow lives in the ## Creator Mode section of skills/components/SKILL.md (steps CM-0 through CM-G):
- Parse the description against the component’s reference doc and prop vocabulary.
- Resolve the components directory via
detect_target.pyand bootstrap missing dependencies through/kit-addif needed. - Choose output mode — print a JSX snippet, or write a standalone component file.
- Validate with H1 generic rules and any H2 component-specific rules.
- Generate single-element or compound JSX with the correct imports.
- Accessibility check — confirms required props (
aria-label,alt,labelFor) are present. - Refine on follow-ups — “make it larger”, “swap to secondary”, etc., adjust the in-memory spec.
- Halt or confirm for unresolved required props, out-of-union values, or same-axis conflicts.
- Worked examples double as parser test fixtures.
Form-shaped requests (“signup form”, “create a login form”) are handled by the Form Mode section of the same skill — not Creator Mode. Say “create a signup form with email and password” to enter that flow.
Vocabulary the skill recognises
Section titled “Vocabulary the skill recognises”Colour family — maps to color, severity, or kind:
primary, secondary, tertiary, info, success, warning, danger, neutral/default
Size family — maps to size, scale, or density:
xs, sm, md, lg, xl, 2xl
Variant synonyms:
| You say | Resolves to |
|---|---|
| pill, rounded, capsule | pill |
| outline, outlined, bordered, ghost | outline / outlined |
| filled, solid | filled |
| soft, subtle, tonal | soft |
Anti-patterns
Section titled “Anti-patterns”The skill explicitly refuses to:
- Silently default a colour prop — it asks instead.
- Substitute a value not in the prop’s union.
- Hard-code component import paths (always uses
detect_target.py). - Generate empty compound slots.
- Write files without confirmation when an H1 halt is triggered.
Related
Section titled “Related”/kit-add— generates the catalogue source filescomponentsskill — Creator Mode and Form Mode live in this skill- Component Catalogue