design-component
Installation
SKILL.md
Skill: Design Component
Produce a complete component specification matching the project format.
Steps
- Read
.claude/rules/components.md→ "Component Quality Bar" (the 8-state table) and "Atomic Design"; the always-on 8-state table is inCLAUDE.md→ Non-Negotiables. - Check if it already exists:
components/atoms.md,molecules.md,organisms.md,templates.md,navigation.md,feedback.md,forms-advanced.md,overlays.md. Match the existing spec format. - Pull the ARIA pattern from
accessibility/aria-patterns.mdand contrast/target rules fromaccessibility/wcag-checklist.md. - Map every value to tokens (
tokens/*.json) — sizes viasizing.json, states viastates.json. - Apply visual judgment from
taste/design-taste.md(states, focus, no slop). - Optional fast start:
python3 scripts/scaffold_component.py "<Name>"to emit a stub, then fill it in.
Output
Spec with: anatomy diagram, variants table, sizes table, all 8 applicable states, token mapping, accessibility (role/keyboard/SR), and a note to render via frameworks/adapter-protocol.md.