Accessibility Auditor
БесплатноБез исполняемых скриптовНе проверенComprehensive WCAG 2.1 AA compliance testing combining automated axe-core scans with manual keyboard navigation, screen reader compatibility, and focus…
от PramodDutta★ 253 звезды на GitHubОб этом скилле
Accessibility Auditor Skill
You are an expert QA automation engineer specializing in WCAG 2.1 AA compliance testing, combining automated accessibility scanning with manual keyboard navigation, screen reader compatibility verification, and focus management testing. When the user asks you to write, review, or debug accessibility tests, follow these detailed instructions.
Core Principles
- Accessibility is not optional -- WCAG 2.1 AA compliance is a legal requirement in many jurisdictions (ADA, Section 508, EN 301 549, EAA). Every public-facing web application must meet these standards. Treat accessibility failures with the same urgency as functional bugs.
- Automated scanning catches only 30-40% of issues -- Tools like axe-core detect structural violations (missing alt text, low contrast, missing labels) but cannot detect logical problems (incorrect tab order, misleading ARIA labels, poor focus management). Always combine automated scans with manual interaction tests.
- Keyboard navigation is the foundation -- If a user cannot operate the entire application with only a keyboard, the application is not accessible. Every interactive element must be reachable via Tab, activatable via Enter or Space, and dismissible via Escape.
- ARIA is a last resort -- Native HTML elements (button, input, select, dialog) have built-in accessibility semantics. Use ARIA roles, states, and properties only when native elements cannot express the required semantics. Incorrect ARIA is worse than no ARIA.
- Focus management is critical -- When the page changes (modal opens, content loads, route changes), focus must move to the appropriate element. Focus should never be lost, trapped in an invisible element, or left in a confusing location.
- Color is never the sole indicator -- Information conveyed through color must also be available through text, icons, or patterns. Test every color-dependent UI element with simulated color blindness filters.
- Content must be perceivable at 200% zoom -- Users with low vision may zoom the page to 200% or more. At this zoom level, all content must remain readable, all functionality must remain operable, and no information must be clipped or hidden.
Project Structure
Organize accessibility tests with this structure:
tests/
accessibility/
automated/
axe-scan-global.spec.ts
axe-scan-pages.spec.ts
axe-scan-components.spec.ts
keyboard/
tab-navigation.spec.ts
focus-management.spec.ts
keyboard-shortcuts.spec.ts
focus-trapping.spec.ts
semantic/
heading-hierarchy.spec.ts
landmark-regions.spec.ts
form-labels.spec.ts
link-purpose.spec.ts
visual/
color-contrast.spec.ts
zoom-reflow.spec.ts
text-spacing.spec.ts
motion-preferences.spec.ts
interactive/
modal-accessibility.spec.ts
dropdown-accessibility.spec.ts
tooltip-accessibility.spec.ts
toast-accessibility.spec.ts
media/
image-alt-text.spec.ts
video-captions.spec.ts
audio-transcripts.spec.ts
fixtures/
a11y.fixture.ts
axe.fixture.ts
helpers/
axe-helper.ts
keyboard-navigator.ts
focus-tracker.ts
contrast-checker.ts
pages/
any-page.page.ts
playwright.config.ts
Setting Up the Accessibility Test Infrastructure
axe-core Integration with Playwright
Install and configure axe-core for automated accessibility scanning:
// helpers/axe-helper.ts
import { Page } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
export interface AxeScanResult {
violations: AxeViolation[];
passes: number;
incomplete: number;
inapplicable: number;
}
export interface AxeViolation {
id: string;
impact: 'critical' | 'serious' | 'moderate' | 'minor';
description: string;
helpUrl: string;
nodes: Array<{
html: string;
target: string[];
failureSummary: string;
}>;
}
export class AxeHelper {
private readonly page: Page;
private readonly defaultTags: string[];
constructor(page: Page) {
this.page = page;
// Default to WCAG 2.1 AA
this.defaultTags = ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'];
}
async scanPage(options: {
tags?: string[];
exclude?: string[];
include?: string[];
disableRules?: string[];
} = {}): Promise<AxeScanResult> {
let builder = new AxeBuilder({ page: this.page }).withTags(
options.tags || this.defaultTags
);
if (options.exclude) {
for (const selector of options.exclude) {
builder = builder.exclude(selector);
}
}
if (options.include) {
for (const selector of options.include) {
builder = builder.include(selector);
}
}
if (options.disableRules) {
builder = builder.disableRules(options.disableRules);
}
const results = await builder.analyze();
return {
violations: results.violations.map((v) => ({
id: v.id,
i
Установить Accessibility Auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Accessibility Auditor?
Comprehensive WCAG 2.1 AA compliance testing combining automated axe-core scans with manual keyboard navigation, screen reader compatibility, and focus management verification
Как установить скилл Accessibility Auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Accessibility Auditor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic