design-component
Installation
SKILL.md
Skill: Design Component
Step 0 — is the kit here? This skill reads files from the kit. Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSINGonly the skill folders were installed, which is whatnpx skills adddoes. Say so plainly, point the user atnpx ux-ui-agent-skills initor the plugin install, and stop. Do not guess the contents of a file you could not open.
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:
${CLAUDE_SKILL_DIR}/../../../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
${CLAUDE_SKILL_DIR}/../../../accessibility/aria-patterns.mdand contrast/target rules from${CLAUDE_SKILL_DIR}/../../../accessibility/wcag-checklist.md. - Map every value to tokens (
${CLAUDE_SKILL_DIR}/../../../tokens/*.json) — sizes viasizing.json, states viastates.json. - Apply visual judgment from
${CLAUDE_SKILL_DIR}/../../../taste/design-taste.md(states, focus, no slop). - Optional fast start:
python3 ${CLAUDE_SKILL_DIR}/../../../scripts/scaffold_component.py "<Name>"to emit a stub, then fill it in.