design-qa · plugin87 — скилл для Claude Code: проверка дизайна
Настраивает проверки интерфейса перед слиянием: токены, контраст, доступность и визуальные снимки. Нужен для контроля состояний компонентов и регрессий.
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a claude-codeЧто делает design-qa
design-qa выстраивает пирамиду проверок: сначала валидирует токены, контраст и жёстко заданные значения в коде, затем добавляет автоматические проверки доступности через axe-core или Pa11y. Скрипты validate_tokens.py, validate_contrast.py и lint_hardcodes.py <src> рассчитаны на запуск при каждом коммите или PR.
Для страниц с отрисованным интерфейсом скилл запускает measure_render.mjs <file.html> и вариант --dark. Скрипт открывает страницу в headless Chromium, отключает переходы и измеряет итоговый контраст текста с учётом прозрачности. Визуальные снимки охватывают варианты, размеры, состояния, светлую и тёмную темы, контрольные ширины и RTL.
Перед работой скилл проверяет наличие набора файлов. Установка через npx skills add приносит только папки скилла, поэтому при отсутствии набора он остановится и предложит npx ux-ui-agent-skills init или установку плагина — это повод проверить состав проекта до настройки проверок.
Какие задачи решает
- найти жёстко заданные hex, px и значения времени в компонентах
- проверить контраст токенов по WCAG
- измерить контраст текста в отрисованной HTML-странице
- поймать визуальные изменения в темах, состояниях и RTL
- проверить доступность клавиатурой и экранным читателем
Примеры запросов агенту
- Настрой проверки дизайна для компонентов перед PR.
- Проверь
page.htmlчерезmeasure_render.mjsдля светлой и тёмной темы. - Добавь визуальные снимки для состояний error, loading и disabled.
Как установить design-qa
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a claude-code2Вручную: положить файлы
~/.claude/skills/design-qa/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/design-qa/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a codex2Вручную: положить файлы
.agents/skills/design-qa/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a cursor2Вручную: положить файлы
.cursor/skills/design-qa/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plugin87/ux-ui-agent-skills design-qa2Вручную: положить файлы
.github/skills/design-qa/SKILL.md1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a gemini-cli2Командой платформы
gemini skills install https://github.com/plugin87/ux-ui-agent-skills --path .claude/skills/design-qaВручную: положить файлы
.devin/skills/design-qa/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора16
Другие версии design-qa
Похожие
Рядом в теме «Дизайн»
Всё по теме «Дизайн» →Вопросы о design-qa
Как установить design-qa в Claude Code?
Выполните npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a claude-code, затем повторите npx skills add plugin87/ux-ui-agent-skills --skill design-qa -a claude-code. Файл скилла расположен в ~/.claude/skills/design-qa/SKILL.md.
Что делает design-qa?
Скилл настраивает проверки токенов, жёстко заданных значений, контраста, автоматической доступности и визуальных регрессий. Также включает ручной чек-лист доступности для релиза.
Что требуется design-qa для запуска проверок?
Скилл читает файлы из набора ux-ui-agent-skills. Если набор не найден, он предлагает выполнить npx ux-ui-agent-skills init или установить плагин и прекращает работу.
Исходный текст
SKILL.md · MIT
---
name: design-qa
description: Set up or run design QA gates for token + hardcoded-value lint, automated a11y (axe), contrast, visual regression across variants/states/themes/RTL, and the manual a11y checklist. Use when the user wants CI quality gates, to prevent design regressions, or to QA a component/screen before shipping.
---
# Skill: Design QA
> **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_MISSING`
> On `KIT_MISSING` only the skill folders were installed, which is what
> `npx skills add` does. Say so plainly, point the user at
> `npx ux-ui-agent-skills init` or the plugin install, and stop. Do not guess the
> contents of a file you could not open.
Stand up the automated + manual gates that stop quality from regressing.
## Steps
1. Read `${CLAUDE_SKILL_DIR}/../../../workflows/design-qa.md` (the QA pyramid: token/lint gates → automated a11y → visual regression → manual a11y).
2. Wire the **fast gates** first (every commit/PR): `python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_tokens.py`, `python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_contrast.py` (batch WCAG over the token pairs), and `python3 ${CLAUDE_SKILL_DIR}/../../../scripts/lint_hardcodes.py <src>` (no raw hex/px/timing in component code). The repo's `.github/workflows/ci.yml` runs these.
3. Add **automated a11y** (axe-core / Pa11y) over each component's states (error/loading/disabled/expanded/selected), zero serious/critical to merge. Run the **real-render contrast gate** `node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs measure_render.mjs <file.html>` (and `--dark`). It opens the page in headless Chromium, disables transitions, and measures the true computed-style + alpha-composited contrast of every text element (catches what static token checks miss).
4. Add **visual regression** snapshots across variants × sizes × states × light/dark + key breakpoints + RTL; freeze animations + deterministic data.
5. Sign off the **manual a11y** checklist per release (keyboard, screen reader, 400% reflow, 200% text-spacing, reduced-motion, forced-colors; `${CLAUDE_SKILL_DIR}/../../../accessibility/*`).
## Verification (definition of done)
- An unreviewed PR cannot introduce an unresolved token alias, a contrast failure, a raw hex/px, or an axe violation: a gate blocks each.
- Snapshots cover dark mode + RTL + the semantic-changing states, not just the happy path.
- Manual a11y checklist signed off for the release.
© plugin87 · MIT · plugin87/ux-ui-agent-skills