Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.py vs ai_slop_detector.py vs color_contrast_checker.py vs design_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

  1. 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.
  2. 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.py only aggregates the scores and findings you enter, so the Design grade is as good as that input. Say so in the report.
  3. Score with design_scorer.py (optionally --baseline from the last audit). Check a hand-written findings file first with score_model.py.
  4. 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.
  5. Hand off the fix to engineering/interface-refinement (table below). Token violations are the one mechanical fix: swap in the suggested token.
  6. Verify by rerunning the measured checks after the fixes land; they must pass before the grade changes. Rescore with --baseline set 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
Полный SKILL.md на GitHub

Установить design-auditor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/design_audit_template.mdassets/sample_audit_data.jsonassets/sample_color_pairs.jsonassets/sample_color_pairs_sound.jsonassets/sample_page.cssassets/sample_page.htmlassets/sample_page_sound.cssassets/sample_page_sound.htmlassets/sample_tokens.jsonreferences/accessibility_checklist.mdreferences/ai_slop_patterns.mdreferences/audit-workflows-and-operations.mdreferences/design_audit_methodology.mdreferences/scoring-model.jsonreferences/slop-patterns.jsonreferences/token-categories.jsonreferences/wcag-contrast.jsonscripts/ai_slop_detector.pyscripts/color_contrast_checker.pyscripts/color_parse.pyscripts/contrast_pairs.pyscripts/css_declarations.pyscripts/design_scorer.pyscripts/design_system_validator.pyscripts/score_model.pyscripts/slop_content_checks.pyscripts/slop_visual_checks.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить design-auditor с