Command Palette

Search for a command to run...

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

accessibility-testing

БесплатноБез исполняемых скриптовНе проверен

Use for WCAG compliance testing and assistive technology validation. Covers axe-core (programmatic API, Playwright/React integrations), Pa11y (CLI and CI…

onfire7777от onfire7777★ 17 звёзд на GitHub

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

Accessibility Testing

Overview

Accessibility testing ensures your application is usable by people with disabilities, including those who rely on screen readers, keyboard navigation, voice control, and other assistive technologies. Automated tools can catch 30-50% of WCAG violations; the rest requires manual testing and judgment.

WCAG Compliance Levels

Level Meaning Examples Target
A Minimum Alt text on images, keyboard accessible, no seizure-inducing content Bare minimum for all sites
AA Standard Color contrast 4.5:1, resize to 200%, visible focus indicators Most common target (legal requirement in many jurisdictions)
AAA Enhanced Contrast 7:1, sign language for media, no timing limits Aspirational — rarely required in full

WCAG 2.2 Key Updates (over 2.1)

  • 2.4.11 Focus Not Obscured (Minimum) — Focus indicator not fully hidden by other content.
  • 2.4.13 Focus Appearance — Visible focus indicator meets minimum size/contrast.
  • 2.5.7 Dragging Movements — Drag operations have non-dragging alternatives.
  • 2.5.8 Target Size (Minimum) — Touch targets at least 24x24 CSS pixels.
  • 3.3.7 Redundant Entry — Don't ask users to re-enter previously provided info.
  • 3.3.8 Accessible Authentication (Minimum) — No cognitive function test for login.

Common Violations (Caught by Automation)

Violation WCAG Criterion Impact
Missing alt text on images 1.1.1 Non-text Content Critical — screen readers skip images
Insufficient color contrast 1.4.3 Contrast (Minimum) Serious — affects low vision users
Missing form labels 1.3.1 Info and Relationships Critical — form fields unidentifiable
Missing document language 3.1.1 Language of Page Moderate — screen readers use wrong pronunciation
Empty links / buttons 4.1.2 Name, Role, Value Critical — controls have no accessible name
Missing skip navigation link 2.4.1 Bypass Blocks Moderate — keyboard users cannot skip repeated content
Duplicate element IDs 4.1.1 Parsing Moderate — ARIA references break
Missing heading structure 1.3.1 Info and Relationships Serious — navigation by headings fails

Cross-Platform Tools

Tool Type Best For
axe-core Library / Engine Programmatic integration into any test framework
@axe-core/playwright Playwright integration E2E accessibility testing in Playwright
@axe-core/react React dev tool Component-level checks during development
Pa11y CLI + Dashboard CI pipelines, page-level audits, monitoring
Lighthouse CLI / Chrome DevTools Performance + accessibility audits combined
Storybook addon-a11y Storybook addon Component-level checks in design system
WAVE Browser extension Manual audits, visual overlay of issues

axe-core

Overview

axe-core is the industry-standard accessibility testing engine by Deque. It powers most automated a11y tools and can be integrated into any testing framework.

Playwright + axe-core Integration

// tests/a11y/homepage.spec.js
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";

test.describe("Homepage accessibility", () => {
    test("should have no WCAG 2.1 AA violations", async ({ page }) => {
        await page.goto("/");

        const results = await new AxeBuilder({ page })
            .withTags(["wcag2a", "wcag2aa", "wcag21aa"])
            .analyze();

        expect(results.violations).toEqual([]);
    });

    test("should have no violations in the navigation", async ({ page }) => {
        await page.goto("/");

        const results = await new AxeBuilder({ page })
            .include("nav")
            .withTags(["wcag2a", "wcag2aa"])
            .analyze();

        expect(results.violations).toEqual([]);
    });

    test("should have no violations after modal opens", async ({ page }) => {
        await page.goto("/");
        await page.click("button#open-modal");
        await page.waitForSelector("[role='dialog']");

        const results = await new AxeBuilder({ page })
            .include("[role='dialog']")
            .analyze();

        expect(results.violations).toEqual([]);
    });
});

axe-core with Detailed Reporting

// tests/a11y/helpers.js
import AxeBuilder from "@axe-core/playwright";

export async function checkA11y(page, context, options = {}) {
    const builder = new AxeBuilder({ page })
        .withTags(options.tags || ["wcag2a", "wcag2aa", "wcag21aa"]);

    if (options.include) builder.include(options.include);
    if (options.exclude) builder.exclude(options.exclude);
    if (options.disableRules) builder.disableRules(options.disableRules);

    const results = await builder.analyze();

    if (results.violations.length > 0) {
Полный SKILL.md на GitHub

Установить accessibility-testing в Claude Code и Claude Desktop

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

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

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

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

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

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

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

AGENTS.mdREADME.mdmetadata.jsonrules/_sections.mdrules/_template.mdrules/accessibility-testing-combine-automated-testing-axe-core-in-playwright-with.mdrules/accessibility-testing-configure-a.mdrules/accessibility-testing-enable-addon-a11y-for-all-stories-by-default.mdrules/accessibility-testing-fail-the-build-on-critical-violations-missing-alt-text.mdrules/accessibility-testing-generate-reports-as-ci-artifacts-for-audit-trails-and.mdrules/accessibility-testing-include-people-with-disabilities-in-user-testing-when.mdrules/accessibility-testing-run-automated-a11y-tests-on-every-pr.mdrules/accessibility-testing-test-components-in-isolation-and-in-composed-layouts.mdrules/accessibility-testing-test-pages-in-multiple-states-empty-loaded-error-modal.mdrules/accessibility-testing-test-with-real-assistive-technology-at-least-once-per.mdrules/accessibility-testing-treat-a11y-violations-like-bugs-not-warnings.mdrules/accessibility-testing-use-actions-for-authenticated-pages-or-spas-that-need.mdrules/accessibility-testing-use-axe-core-react-during-development-to-catch-issues.mdrules/accessibility-testing-use-ignore-sparingly-and-document-why-each-rule-is-ignored.mdrules/accessibility-testing-use-include-exclude-to-scope-checks-to-specific.mdrules/accessibility-testing-use-the-storybook-test-runner-with-axe-playwright-for-ci.mdrules/accessibility-testing-use-withtags-wcag2a-wcag2aa-wcag21aa-for.mdrules/accessibility-testing-warn-on-moderate-violations-contrast-heading-order-to.md

FAQ

Что делает скилл accessibility-testing?

Use for WCAG compliance testing and assistive technology validation. Covers axe-core (programmatic API, Playwright/React integrations), Pa11y (CLI and CI runner), Lighthouse accessibility audits, Storybook addon-a11y, and WAVE. Includes WCAG 2.1/2.2 levels, common violations, automated vs manual testing guidance. USE FOR: axe-core, Pa11y, Lighthouse accessibility, WCAG compliance, Storybook addon-a11y, screen reader testing, accessibility audits, ARIA validation, Section 508 compliance, keyboard navigation testing DO NOT USE FOR: visual appearance testing (use visual-testing), functional E2E tests (use e2e-testing), performance audits (use performance-testing)

Как установить скилл accessibility-testing?

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

Скилл accessibility-testing запускает скрипты?

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

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

Сравнить accessibility-testing с