gate — скилл для Claude Code: что делает и как установить
Скилл gate для Claude Code запускает контроль качества интерфейса перед сдачей задачи. Вызов выполняется вручную пользователем, поэтому модель не запустит его сама.
MIT ★ 3 216 обновлён 2026-11-10
/plugin marketplace add plugin87/ux-ui-agent-skills
/plugin install ux-ui-agent-skills@ux-ui-agent-skillsЧто делает gate
Скилл запускает скрипт accuracy_report.mjs для проверки дизайн-токенов, контрастности по WCAG, отсутствия хардкода и совпадения со спецификацией в светлой и тёмной темах. По итогам проверки агент выводит реальный счётчик пройденных тестов в формате N/N и не имеет права объявлять задачу готовой при наличии ошибок.
Для работы обязательно нужен полный комплект UX/UI Agent Skills с папками tokens и scripts: при установке только одной папки скилла проверка выдаст KIT_MISSING и остановится. Инструмент подтверждает техническую корректность вёрстки и доступности, но не оценивает субъективную эстетику дизайна.
Какие задачи решает
- проверить дизайн-токены и контрастность интерфейса по WCAG
- выявить хардкод значений цвета и стилей в коде компонентов
- проверить адаптивность и отображение интерактивных состояний
- получить точный числовой отчёт N/N о готовности вёрстки
Примеры запросов агенту
- Запусти gate и выведи отчёт accuracy_report
- Проверь адаптивность вёрстки через verify_responsive.mjs для index.html
- Выполни gate и исправь все упавшие проверки контрастности
Как установить gate
1Через маркетплейс плагинов
/plugin marketplace add plugin87/ux-ui-agent-skills/plugin install ux-ui-agent-skills@ux-ui-agent-skillsКоманда ставит плагин ux-ui-agent-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill gate -a claude-code3Вручную: положить файлы
~/.claude/skills/gate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gate/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill gate -a codex2Вручную: положить файлы
.agents/skills/gate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill gate -a cursor2Вручную: положить файлы
.cursor/skills/gate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plugin87/ux-ui-agent-skills .claude/skills/gate2Вручную: положить файлы
.github/skills/gate/SKILL.md1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill gate -a gemini-cli2Командой платформы
gemini skills install https://github.com/plugin87/ux-ui-agent-skills --path .claude/skills/gateВручную: положить файлы
.devin/skills/gate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о gate
Как установить gate в Claude Code?
В Claude Code добавьте репозиторий командой /plugin marketplace add plugin87/ux-ui-agent-skills, затем выполните /plugin install ux-ui-agent-skills@ux-ui-agent-skills.
Что делает скилл gate?
Он прогоняет вёрстку через набор тестов на токены, спецификации и контрастность, сообщая точное число успешных проверок N/N.
Что нужно для работы gate?
Требуется Node.js и полный набор утилит UX/UI Agent Skills, развёрнутый через npx [email protected] init или плагин Claude Code. Без каталога tokens скрипты сообщат об ошибке KIT_MISSING.
Исходный текст
SKILL.md · MIT
--- name: gate description: Run the one-command quality gate and report the real N/N result. Use before claiming any build/review is done. # A command the user runs. Converted from .claude/commands/ so it has a # CLAUDE_SKILL_DIR of its own and its paths resolve on every install route. # disable-model-invocation keeps the behaviour a command had: the user # starts it, the model never does, and its description stays out of the # listing budget the model's skill choice is drawn from. disable-model-invocation: true --- ## Requirements This skill needs the full UX/UI Agent Skills kit: the gates, the references and the design-system library. Install it with `npx [email protected] init` or as the Claude Code plugin. `npx [email protected] add` copies the skill folder and nothing else, and this skill has no guidance-only mode: its whole job is to run the gates and report their real N/N, so without the kit there is nothing for it to do. > **Step 0: is the kit here?** Check once: > `ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING` > On `KIT_MISSING`, say plainly that only the skill folder was installed, name > the install command above, and stop. Do not guess the contents of a file you > could not open, and do not report a result you did not produce. Run the full quality gate and report the ACTUAL output, never a remembered or reasoned number. 1. Run: `node ${CLAUDE_SKILL_DIR}/../../../scripts/accuracy_report.mjs` (tokens + contrast + spec + no-hardcode + theme-refs + no-emoji + real-render WCAG + state-aware, light and dark; all-or-nothing). 2. Report the exact `N/N` line it prints. 3. If it is not fully green: - List each failing check verbatim. - Fix the cause (do not suppress the check). - Re-run until green. Do not announce success between failures. 4. For any rendered HTML touched this session, also run the pixel-truth checks the gate cannot prove: - `node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_states.mjs <file> [--dark]` - `node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_responsive.mjs <file>` - RENDER-AND-LOOK: screenshot the harness, park the pointer off it, inspect every state, click each control to confirm the state changed. Honest scope: these gates prove objective correctness (tokens, a11y, no drift). They do not prove taste. Pair with `DS_REQUIRE_BROWSER=1 node ${CLAUDE_SKILL_DIR}/../../../scripts/taste_audit.mjs` + human review; never claim auto-100% on aesthetics.
© Thientan Soparat · MIT · plugin87/ux-ui-agent-skills