design-auditor
БесплатноЗапускает вложенные скриптыНе проверенGrade a UI (Design, AI-slop and Accessibility, A-F) and gate it in CI: batch WCAG contrast, token compliance, slop detection. Use when asked to audit, score…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Design Auditor
The agent audits a web UI and reports three independent letter grades (Design, AI Slop, Accessibility) with prioritised findings, and turns the measurable parts (contrast, token compliance, slop patterns) into CI gates. This skill measures and reports. It does not edit the interface: to fix what it finds, hand the findings to engineering/interface-refinement, which owns the refinement commands and its own pattern detector.
When to Use
- "Audit this design", "score our UI", "is this accessible?", "does this look AI-generated?"
- Checking a palette or a set of color pairs against WCAG AA/AAA.
- Checking CSS against a design-token file, or gating a PR on compliance.
- Tracking a design's grade against a previous audit (baseline).
Not for: fixing the UI (engineering/interface-refinement), choosing a design system from a brief (product-team/design-direction), or a full WCAG scan of markup (engineering/a11y-audit).
Clarify First
Before running the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Audit type: full design score, AI-slop detection, contrast check, or token compliance (selects
design_scorer.pyvsai_slop_detector.pyvscolor_contrast_checker.pyvsdesign_system_validator.py). - Input artifacts: the findings JSON, HTML/CSS, color pairs, or design-token file (the input each tool requires).
- Conformance level / threshold: WCAG AA vs AAA, slop confidence threshold, and the minimum passing grade (sets
--level,--threshold, and the gate).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Workflow
- Measure what tools can measure. Run the contrast checker on the color pairs, the token validator on the CSS, and the slop detector on the HTML/CSS. These are objective and repeatable.
- Judge the rest. Walk the 12 categories in references/design_audit_methodology.md (hierarchy, typography, layout, interaction, copy ...) and write each finding with a priority, an impact and a fix. These judgments are yours:
design_scorer.pyonly aggregates the scores and findings you enter, so the Design grade is as good as that input. Say so in the report. - Score with
design_scorer.py(optionally--baselinefrom the last audit). Check a hand-written findings file first withscore_model.py. - Report the three grades, the top findings by impact, and the measured results. [PROVEN] Accessibility failures are never low priority; WCAG AA is the floor.
- Hand off the fix to
engineering/interface-refinement(table below). Token violations are the one mechanical fix: swap in the suggested token. - Verify by rerunning the measured checks after the fixes land; they must pass before the grade changes. Rescore with
--baselineset to this audit.
[PROVEN] The contrast checker implements the WCAG 2.x contrast ratio (1.4.3 text, 1.4.11 non-text UI). Every other WCAG 2.2 criterion, including the 2.2 additions (focus not obscured, target size, dragging alternatives, accessible authentication), is a by-hand check: run them from references/accessibility_checklist.md (criteria tables plus the manual and assistive-technology passes in its Testing Methodology section) in a real browser, and enter what fails as accessibility findings for the scorer. APCA (the WCAG 3 draft method) gives different results for some pairs.
Hand-off to interface-refinement
The slop detector here grades landing-page templates; it carries no fix rules of its own beyond a one-line hint. Route each finding type to the interface-refinement command that owns the change, and let that skill's detector (ui_slop_detector.py) confirm the fix:
pattern_type |
interface-refinement command |
|---|---|
visual_gradient |
colorize |
visual_shadow, visual_blur |
quieter |
visual_radius |
extract (radius scale as tokens) |
visual_icons |
polish |
structural_hero, structural_grid, structural_ordering, structural_pricing |
layout |
structural_testimonial |
clarify (real names, sources, specifics) |
copy_cta, copy_buzzwords, copy_placeholder |
clarify |
[RECOMMENDED] When several findings share a cause (a stock template), say so and recommend critique first rather than a list of per-property fixes.
Quick Start
Run from the skill folder (engineering/design-auditor):
python3 scripts/color_contrast_checker.py --input assets/sample_color_pairs.json --level AA --suggest-fixes --format text # 2 of 4 fail (exit 1)
python3 scripts/color_contrast_checker.py --input assets/sample_color_pairs_sound.json --level AA --format tex
Установить design-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-auditor?
Grade a UI (Design, AI-slop and Accessibility, A-F) and gate it in CI: batch WCAG contrast, token compliance, slop detection. Use when asked to audit, score or gate a UI; to fix one, use interface-refinement.
Как установить скилл design-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic