audit · educlopez — скилл для Claude Code: UI-аудит и как установить
Проводит технический аудит интерфейса: доступность, производительность, адаптивность. Отдаёт таблицу находок по приоритетам.
npx skills add educlopez/ui-craft --skill audit -a claude-codeЧто делает audit
Скилл запускает технический разбор интерфейса по трём направлениям: доступность, производительность, адаптивность. Сначала он делает визуальный снимок страницы — через playwright MCP-сервер, затем через DevTools или другую автоматизацию браузера. Если ничего из этого нет, скилл попросит у вас скриншоты в трёх размерах: 1280×800, 768×1024 и 375×812, плюс тёмную тему, если она поддерживается. Отказываетесь — получите отчёт с пометкой [CODE-ONLY REVIEW — visual issues not assessed], и часть проблем останется незамеченной.
Проверки жёсткие и без настроек: видимый :focus-visible у каждого интерактивного элемента, доступность с клавиатуры без ловушек фокуса, зоны нажатия от 44px на мобильных, подписи к полям и связь с ошибками, prefers-reduced-motion для анимаций. В производительности смотрит, что анимируются только transform и opacity, что нет transition: all, что у картинок заданы width/height или aspect-ratio. В адаптивности — mobile-first брейкпоинты, env(safe-area-inset-*) у фиксированных элементов, отсутствие горизонтальной прокрутки на 320px.
Находки собираются в таблицу «Before / After / Why» и группируются по приоритету: Critical, High-impact, Quick wins. Код скилл не переписывает, пока вы не попросите — сначала отчёт, правки после подтверждения. Завершает всё Craft Report с областью проверки и вердиктом по главной проблеме.
Какие задачи решает
- найти элементы без видимого фокуса при навигации с клавиатуры
- проверить, не ломается ли вёрстка на 320px
- отловить анимации свойств, вызывающих перерисовку
- собрать список проблем доступности в один приоритизированный отчёт
- проверить зоны нажатия на мобильном
Примеры запросов агенту
- Проведи аудит интерфейса на странице
checkout - Сделай технический аудит доступности и производительности главной страницы
- Прогони audit по адаптивности: посмотри 320px и мобильные тач-зоны
Как установить audit
1Через Skills CLI (Vercel)
npx skills add educlopez/ui-craft --skill audit -a claude-code2Вручную: положить файлы
~/.claude/skills/audit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/audit/
1Через Skills CLI (Vercel)
npx skills add educlopez/ui-craft --skill audit -a codex2Вручную: положить файлы
.agents/skills/audit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add educlopez/ui-craft --skill audit -a cursor2Вручную: положить файлы
.cursor/skills/audit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install educlopez/ui-craft audit2Вручную: положить файлы
.github/skills/audit/SKILL.md1Через Skills CLI (Vercel)
npx skills add educlopez/ui-craft --skill audit -a gemini-cli2Командой платформы
gemini skills install https://github.com/educlopez/ui-craft --path cli/assets/codex/skills/auditВручную: положить файлы
.devin/skills/audit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add educlopez/ui-craft --skill audit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о audit
Как установить audit в Claude Code?
Выполните npx skills add educlopez/ui-craft --skill audit -a claude-code, файл скилла окажется по пути ~/.claude/skills/audit/SKILL.md.
Что делает скилл audit?
Проверяет интерфейс по доступности, производительности и адаптивности, а результат отдаёт таблицей находок с приоритетами. Код без вашего согласия не меняет.
Что нужно, чтобы аудит был полным?
Визуальный снимок страницы. Скилл сам попробует playwright MCP-сервер, DevTools или другую автоматизацию браузера, а если их нет — попросит скриншоты. Без них отчёт помечается как code-only.
Исходный текст
SKILL.md · MIT
---
name: audit
description: "Technical UI audit — a11y, performance, responsive. Produces a prioritized findings table. Invoke when the user asks for audit on their UI, or mentions 'audit' alongside design / UI / frontend work."
---
<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->
**Context:** this sub-skill is one lens of the broader `ui-craft` skill. If the `ui-craft` skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.
Run a technical audit of the UI at `$ARGUMENTS`. Load the `ui-craft` skill and apply the audit lens.
## Step 0: Visual capture (mandatory)
Code-only review is insufficient. Every audit/critique starts with the surface as the user sees it. Try the following in order; use the first one available:
1. **Playwright MCP** — if `playwright` MCP server is available, use it. Capture full-page screenshots at three viewports: desktop (1280×800), tablet (768×1024), mobile (375×812). Capture dark mode if the app supports it.
2. **Browser DevTools / Chrome MCP** — second choice; same viewport set.
3. **Other browser automation** (`agent-browser`, `cursor-ide-browser`) — third choice.
4. **Ask the user** — last resort. If no automation is available, request screenshots from the user before proceeding. Be specific:
- "Visual review needs screenshots. Please provide:
- Full-page at 1280px (desktop)
- Full-page at 768px (tablet)
- Full-page at 375px (mobile)
- Dark mode of each, if supported."
Do not begin the review until visuals are captured or provided. State this explicitly to the user when no automation succeeds — don't silently fall back to code-only review.
If the user declines to provide screenshots, run a code-only pass and clearly mark the report `[CODE-ONLY REVIEW — visual issues not assessed]` at the top so the limitation is explicit.
**Note:** audit is knob-agnostic — accessibility and performance are not tunable.
**Scope (non-negotiable checks):**
1. **Accessibility** — read `references/accessibility.md`:
- Visible `:focus-visible` on every interactive element
- Keyboard reachable, no focus traps
- Touch targets ≥ 44px (mobile)
- Color not the only signal for state
- Form labels, error association, required indication
- `prefers-reduced-motion` honored for all animations
2. **Performance** — read `references/motion.md` Rendering Performance section:
- Only `transform` / `opacity` animated (no `width`/`top`/`height`)
- No `transition: all`
- `will-change` scoped to active interaction, removed after
- Images have `width`/`height` or `aspect-ratio` (CLS)
- No layout thrash in scroll/resize handlers
3. **Responsive** — read `references/responsive.md`:
- Mobile-first breakpoints, no fixed-width components
- `env(safe-area-inset-*)` respected on fixed elements
- Touch zones don't overlap
- No horizontal scroll at 320px
**Output format** — the Review Format table from SKILL.md:
| Before | After | Why |
| --- | --- | --- |
Group findings by priority: **Critical** (blocks usability/a11y) → **High-impact** (immediately noticeable) → **Quick wins** (polish).
Do NOT rewrite code unless asked. Report findings first; wait for approval before editing.
**Close with a Craft Report** (`references/review.md` → Craft Report), wrapping the findings table above — Checked states scope (a11y/perf/responsive, at which viewports), Passed carries anything inspected and found sound, Changed stays empty pre-approval, Verdict names the top priority. Produce it even on a clean audit — a11y/perf/responsive coming back clean is the finding.
**Next step:** `/harden` — turn the findings into real production coverage (rung 1).
© educlopez · MIT · educlopez/ui-craft
Похожие скиллы
Всё по теме «Фронтенд и UI» →Сначала — audit от других авторов.