accessibility-testing · aj-geddes — скилл для Claude Code: тесты WCAG и a11y
Скилл для проверки веб-приложений на соответствие WCAG: axe, навигация с клавиатуры, ARIA, скринридеры. Пригодится, когда нужно закрыть a11y-требования в проекте.
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a claude-codeЧто делает accessibility-testing
Скилл даёт агенту готовые рецепты тестирования доступности. Внутри — минимальный пример на @playwright/test и @axe-core/playwright: страница открывается, сканер прогоняется по тегам wcag2a, wcag2aa, wcag21a, wcag21aa, список нарушений проверяется на пустоту. Тот же приём можно сузить до отдельного блока, например nav.
В папке references/ лежат подробные руководства: axe-core с Playwright, тесты клавиатурной навигации, проверка ARIA, Jest с jest-axe, Cypress и связка Python с Selenium и axe. Выбирайте по стеку.
Важный момент: автор скилла прямо предупреждает, что автоматические тесты ловят примерно 30-40% проблем. Ручная проверка со скринридером и обход интерфейса одной клавиатурой остаются обязательными, иначе часть барьеров вы просто не увидите. Скилл работает в Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.
Какие задачи решает
- прогнать axe-скан по странице и получить список нарушений WCAG A и AA
- проверить, что интерфейс обходится одной клавиатурой без ловушек фокуса
- найти проблемы с ARIA-атрибутами до релиза
- закрыть проверку контраста и текстовых альтернатив в CI
- подобрать рабочий пример под Jest, Cypress или Selenium
Примеры запросов агенту
- прогони axe-скан главной страницы и покажи нарушения WCAG AA
- проверь клавиатурную навигацию по форме логина
- напиши тест с jest-axe для компонента корзины
Как установить accessibility-testing
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a claude-code2Вручную: положить файлы
~/.claude/skills/accessibility-testing/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/accessibility-testing/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a codex2Вручную: положить файлы
.agents/skills/accessibility-testing/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a cursor2Вручную: положить файлы
.cursor/skills/accessibility-testing/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts accessibility-testing2Вручную: положить файлы
.github/skills/accessibility-testing/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/accessibility-testingВручную: положить файлы
.devin/skills/accessibility-testing/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о accessibility-testing
Как установить accessibility-testing в Claude?
Выполните npx skills add aj-geddes/useful-ai-prompts --skill accessibility-testing -a claude-code. Файл скилла появится по пути ~/.claude/skills/accessibility-testing/SKILL.md.
Что делает скилл accessibility-testing?
Даёт агенту шаблоны и руководства для проверки веб-приложений на доступность: сканирование axe-core, тесты клавиатуры, ARIA, контраст и совместимость со скринридерами.
Хватит ли автоматических тестов для проверки доступности?
Нет. По оценке автора скилла автоматика выявляет около 30-40% проблем, поэтому ручная проверка со скринридером и обход интерфейса клавиатурой нужны отдельно.
Исходный текст
SKILL.md · MIT
---
name: accessibility-testing
description: >
Test web applications for WCAG compliance and ensure usability for users with
disabilities. Use for accessibility test, a11y, axe, ARIA, keyboard
navigation, screen reader compatibility, and WCAG validation.
---
# Accessibility Testing
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Accessibility testing ensures web applications are usable by people with disabilities, including those using screen readers, keyboard navigation, or other assistive technologies. It validates compliance with WCAG (Web Content Accessibility Guidelines) and identifies barriers to accessibility.
## When to Use
- Validating WCAG 2.1/2.2 compliance
- Testing keyboard navigation
- Verifying screen reader compatibility
- Testing color contrast ratios
- Validating ARIA attributes
- Testing form accessibility
- Ensuring focus management
- Testing with assistive technologies
## Quick Start
Minimal working example:
```typescript
// tests/accessibility/homepage.a11y.test.ts
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";
test.describe("Homepage Accessibility", () => {
test("should not have any automatically detectable WCAG A or AA violations", async ({
page,
}) => {
await page.goto("/");
const accessibilityScanResults = await new AxeBuilder({ page })
.withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"])
.analyze();
expect(accessibilityScanResults.violations).toEqual([]);
});
test("navigation should be accessible", async ({ page }) => {
await page.goto("/");
const results = await new AxeBuilder({ page }).include("nav").analyze();
expect(results.violations).toEqual([]);
});
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [axe-core with Playwright](references/axe-core-with-playwright.md) | axe-core with Playwright |
| [Keyboard Navigation Testing](references/keyboard-navigation-testing.md) | Keyboard Navigation Testing |
| [ARIA Testing](references/aria-testing.md) | ARIA Testing |
| [Jest with jest-axe](references/jest-with-jest-axe.md) | Jest with jest-axe |
| [Cypress Accessibility Testing](references/cypress-accessibility-testing.md) | Cypress Accessibility Testing |
| [Python with Selenium and axe](references/python-with-selenium-and-axe.md) | Python with Selenium and axe |
## Best Practices
### ✅ DO
- Test with real assistive technologies
- Include keyboard-only users
- Test color contrast
- Use semantic HTML
- Provide text alternatives
- Test with screen readers
- Run automated tests in CI
- Follow WCAG 2.1 AA standards
### ❌ DON'T
- Rely only on automated tests (they catch ~30-40% of issues)
- Use color alone to convey information
- Skip keyboard navigation testing
- Forget focus management in dynamic content
- Use div/span for interactive elements
- Hide focusable content with display:none
- Ignore ARIA best practices
- Skip manual testing
© aj-geddes · MIT · aj-geddes/useful-ai-prompts
Похожие скиллы
Всё по теме «Тесты и QA» →Сначала — accessibility-testing от других авторов.