Command Palette

Search for a command to run...

Назад к скиллам
скилл № 15975

a11y

Production-grade accessibility skill for WCAG 2.2 AA compliance. Covers auditing, remediation, component authoring, and validation workflows. Auto-invoked for…

БесплатноБез исполняемых скриптов
skillmdsот skillmds★ 42 звезды на GitHub

Установить a11y в Claude Code и Claude Desktop

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

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

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

Об этом скилле

Accessibility implementation guide aligned with WCAG 2.2 Level AA, WAI-ARIA 1.2, and WCAG2ICT.

Standards Reference

Standard Scope Normative Source
WCAG 2.2 Web content https://www.w3.org/TR/WCAG22/
WAI-ARIA 1.2 Widget semantics https://www.w3.org/TR/wai-aria-1.2/
ARIA APG Authoring patterns https://www.w3.org/WAI/ARIA/apg/
WCAG2ICT Non-web ICT https://www.w3.org/TR/wcag2ict-22/
EN 301 549 EU procurement ETSI EN 301 549 V3.2.1

WCAG 2.2 New Success Criteria

SC Level Requirement Implementation
2.4.11 AA Focus Not Obscured (Minimum) Ensure focused element is at least partially visible
2.4.13 AAA Focus Appearance Focus indicator area ≥ 2px perimeter, 3:1 contrast
2.5.7 A Dragging Movements Provide single-pointer alternative to drag operations
2.5.8 AA Target Size (Minimum) 24×24 CSS pixels minimum
3.2.6 A Consistent Help Place help mechanisms in same relative location
3.3.7 A Redundant Entry Auto-populate previously entered information
3.3.8 AA Accessible Authentication No cognitive function test for login

Critical Success Criteria

Perceivable

SC Requirement Implementation Test
1.1.1 Non-text content alt on images, aria-label on icon buttons img[alt], button[aria-label]
1.3.1 Info and relationships Semantic HTML, no <div> for structure Landmark audit
1.4.3 Contrast (minimum) 4.5:1 text, 3:1 large text axe color-contrast
1.4.11 Non-text contrast 3:1 UI components/graphics Manual inspection

Operable

SC Requirement Implementation Test
2.1.1 Keyboard All functions keyboard-accessible Tab traversal
2.4.3 Focus order Logical DOM sequence Visual focus path
2.4.7 Focus visible 2px+ visible indicator focus-visible:ring-2
2.5.8 Target size Minimum 24x24 CSS pixels min-w-6 min-h-6

Understandable

SC Requirement Implementation Test
3.2.1 On focus No context change on focus Focus does not submit
3.3.1 Error identification Text description, not color alone role="alert" present

Robust

SC Requirement Implementation Test
4.1.2 Name, role, value Accessible name on all controls axe button-name

Semantic HTML (Mandatory)

// REQUIRED: Landmark structure
<header role="banner">...</header>
<nav aria-label="Main">...</nav>
<main role="main">...</main>
<aside role="complementary">...</aside>
<footer role="contentinfo">...</footer>

// PROHIBITED: Div-based structure
<div class="header">  // SC 1.3.1 violation
<div onClick={...}>   // SC 2.1.1, 4.1.2 violation

Top 10 Violations with Fixes

1. Missing button name (SC 4.1.2)

// BAD
<button onClick={handleDelete}><Trash2 /></button>

// GOOD
<button type="button" aria-label="Delete" onClick={handleDelete}>
  <Trash2 aria-hidden="true" />
</button>

2. Div as interactive element (SC 2.1.1, 4.1.2)

// BAD
<div className="btn" onClick={handleClick}>Save</div>

// GOOD
<button type="button" onClick={handleClick}>Save</button>

3. Missing form label (SC 1.3.1, 4.1.2)

// BAD
<input placeholder="Search..." />

// GOOD
<label htmlFor="search">Search</label>
<input id="search" type="search" />
// OR
<input type="search" aria-label="Search files" />

4. Color-only information (SC 1.4.1)

// BAD
<input className={error ? "border-red-500" : ""} />

// GOOD
<input aria-invalid={!!error} aria-describedby="error-msg" />
{error && <span id="error-msg" role="alert">{error}</span>}

5. Missing alt text (SC 1.1.1)

// BAD
<img src="/logo.png" />

// GOOD: Informative
<img src="/logo.png" alt="Company logo" />

// GOOD: Decorative
<img src="/decoration.png" alt="" role="presentation" />

6. Insufficient contrast (SC 1.4.3)

/* BAD: ~2.5:1 ratio */
.muted { color: oklch(75% 0 0); }

/* GOOD: 4.5:1+ ratio */
.muted { color: oklch(45% 0 0); }

Color Vision Deficiency (CVD) Support

Never rely on color alone to convey information (SC 1.4.1):

// BAD: Color-only status
<span className={status === "error" ? "text-red-500" : "text-green-500"}>
  {status}
</span>

// GOOD: Color + icon + text
<span className={status === "error" ? "text-red-500" : "text-green-500"}>
  {status === "error" ? <AlertCircle aria-hidden /> : <CheckCircle aria-hidden />}
  {status === "error" ? "Error" : "Success"}
</span>

Testing tools:

  • Chrome DevTools: Rendering → Emulate vision deficiencies
  • Sim Daltonism (macOS)
  • Color Oracle (Windows)

7. Missing focus indicator (SC 2.4.7)

// BAD
<button className="outli
Полный SKILL.md на GitHub

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

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

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

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

  • metadata.json

FAQ

Что делает скилл a11y?

Production-grade accessibility skill for WCAG 2.2 AA compliance. Covers auditing, remediation, component authoring, and validation workflows. Auto-invoked for UI implementation, a11y fixes, and accessibility testing.

Как установить скилл a11y?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл a11y запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить a11y с