accessibility-auditor
БесплатноБез исполняемых скриптовНе проверенAudit web pages and components for WCAG 2.2 accessibility compliance. Use when a user asks to check accessibility, find a11y issues, audit for WCAG…
Об этом скилле
Accessibility Auditor
Overview
Audits web pages and UI components against WCAG 2.2 (Level AA) success criteria. Identifies violations in color contrast, keyboard navigation, ARIA usage, semantic HTML, form labeling, focus management, and dynamic content updates. Produces actionable fixes with exact code changes.
Instructions
When asked to audit accessibility:
Determine the scope:
- Single component, full page, or entire application?
- Target compliance level: A, AA (default), or AAA?
- Any specific regulations: EAA (European Accessibility Act, in force since 28 June 2025, points to EN 301 549 which is based on WCAG 2.1 AA), ADA (US DOJ Title II rule for public bodies names WCAG 2.1 AA), Section 508? WCAG 2.2 is a superset, so auditing against it covers them.
- If the app runs, start with an automated pass (axe-core via
@axe-core/cli, Lighthouse, orpa11y) and then review by hand what tools cannot judge.
Check semantic structure (WCAG 1.3.1, 1.3.2):
- Heading hierarchy: h1 → h2 → h3, no skipped levels
- Landmark regions:
<nav>,<main>,<header>,<footer>,<aside> - Lists use
<ul>/<ol>/<dl>, not styled<div>s - Tables have
<th>withscope, and<caption>where appropriate - Reading order matches visual order
Check text alternatives (WCAG 1.1.1):
- All
<img>have meaningfulalttext (not "image", "photo", or filename) - Decorative images use
alt=""orrole="presentation" - SVG icons have
<title>oraria-label - Complex images (charts, diagrams) have extended descriptions
- Video/audio have captions and transcripts
- All
Check color and contrast (WCAG 1.4.3, 1.4.11):
- Normal text: minimum 4.5:1 contrast ratio
- Large text (18pt / 24px or larger, or 14pt / about 18.66px bold): minimum 3:1
- UI components and graphical objects: minimum 3:1
- Information not conveyed by color alone (WCAG 1.4.1)
- Compute exact contrast ratios for flagged elements
Check keyboard accessibility (WCAG 2.1.1, 2.1.2, 2.4.7):
- All interactive elements reachable via Tab key
- No keyboard traps (user can always Tab away)
- Focus indicators visible (not
outline: nonewithout replacement) - Custom components have appropriate keyboard handlers (Enter, Space, Arrow keys)
- Modal dialogs trap and restore focus correctly
- Skip-to-content link present
- Focus not hidden behind sticky headers or cookie banners (WCAG 2.4.11, new in 2.2)
- Every drag interaction has a click/tap alternative (WCAG 2.5.7, new in 2.2)
- Pointer targets at least 24x24 CSS px or sufficiently spaced (WCAG 2.5.8, new in 2.2)
Check ARIA usage (WCAG 4.1.2):
- ARIA roles match element behavior
- Required ARIA attributes present (e.g.,
aria-expandedon toggles) aria-liveregions for dynamic content updates- No redundant ARIA (e.g.,
role="button"on<button>) aria-label/aria-labelledbyon elements without visible text
Check forms (WCAG 1.3.5, 3.3.1, 3.3.2, 3.3.7, 3.3.8):
- All inputs have associated
<label>elements (not just placeholder text) - Error messages are programmatically associated with inputs
- Required fields indicated with more than just color
autocompleteattributes on common fields (name, email, address)- Form validation errors announced to screen readers
- Data already entered is not requested again in the same flow (3.3.7)
- Login does not require a cognitive test: allow paste and password managers (3.3.8)
- Help links appear in the same place across pages (3.2.6)
- All inputs have associated
Output format for each violation:
- WCAG criterion number and name
- Severity: Critical / Major / Minor
- Element and location (file:line or CSS selector)
- What's wrong (specific, not generic)
- Exact code fix
- Who is affected (screen reader users, keyboard users, low vision, etc.)
Examples
Example 1: Component audit
Input:
Audit this React login form for accessibility:
<form onSubmit={handleLogin}>
<input type="email" placeholder="Email" value={email} onChange={setEmail} />
<input type="password" placeholder="Password" value={pw} onChange={setPw} />
<div className="error" style={{color: 'red'}}>{error}</div>
<div className="submit-btn" onClick={handleLogin}>Log In</div>
</form>
Output:
Accessibility Audit: Login Form
=================================
6 violations found (3 Critical, 2 Major, 1 Minor)
CRITICAL [WCAG 1.3.5] — Missing autocomplete attributes
Elements: email input, password input
Fix: Add autocomplete="email" and autocomplete="current-password"
Affected: Users relying on autofill, password managers, and assistive tech
CRITICAL [WCAG 3.3.2] — Inputs have no accessible labels
Elements: both <input> fields
Problem: Placeholder text disappears on focus and is not a label.
Fix: Add <label htmlFor="email">Email</label> before each input,
or use aria-label="Emai
Установить accessibility-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл accessibility-auditor?
Audit web pages and components for WCAG 2.2 accessibility compliance. Use when a user asks to check accessibility, find a11y issues, audit for WCAG compliance, fix screen reader problems, check color contrast, ensure keyboard navigation works, or prepare for accessibility regulations like the European Accessibility Act or ADA.
Как установить скилл accessibility-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл accessibility-auditor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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