
Design Component
Design a UI component spec to the house quality bar (anatomy, variants, sizes, the 8...
Install
npx skills add plugin87/ux-ui-agent-skills --skill design-component -g -a claude-code -y- Repository
- plugin87/ux-ui-agent-skills3.1k
- Category
- Design
- Updated
- 8d ago
- License
- MIT
- Context cost
- Mediumabout 2,694 tokens
- Runs scripts
- No, instructions only
What it does
Design a UI component spec to the house quality bar (anatomy, variants, sizes, the 8 states, token mapping, and accessibility). Use when the user wants to design or document a component (button, input, tabs, toast, combobox, date picker, modal, etc.) at the spec level before or alongside code. For generating framework code, use design-code.
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_SKILL_DIR}/../../../.claude/rules/components.md→ "Component Quality Bar" (the 8-state table) and "Atomic Design"; the always-on 8-state table is in${CLAUDE_SKILL_DIR}/../../../CLAUDE.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.
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 ${CLAUDE_SKILL_DIR}/../../../frameworks/adapter-protocol.md.


