wcag22-a11y-audit
WCAG 2.2 Accessibility Audit skill that systematically evaluates web pages against 8 core Success Criteria (1.1.1, 1.4.3, 1.4.11, 2.1.1, 2.1.2, 2.4.3, 2.4.7…
от gabrielmoreira★ 23 звезды на GitHub
Установить wcag22-a11y-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
WCAG 2.2 Accessibility Audit Skill
When to Use This Skill
Use this skill when the user wants to:
- Perform accessibility testing or auditing on a live webpage
- Evaluate a page against WCAG 2.2 Success Criteria
- Identify accessibility barriers for keyboard and screen reader users
- Generate a structured accessibility audit report with evidence
Tool Usage Strategy (IMPORTANT)
This skill uses a hybrid approach combining structured accessibility tree analysis and visual inspection.
Priority Order
PRIMARY: Accessibility Tree (search_elements)
- Use
search_elements(tabId, query)to retrieve structured accessibility information - This provides
role,name,value,checked,expanded,disabled,focused, etc. - Best for: 1.1.1, 2.1.1, 4.1.2 and element identification for other SCs
- Use
SECONDARY: Visual Analysis (Screenshot + LLM)
- Use
capture_screenshot(sendToLLM=true)for visual inspection - Essential for: 1.4.3, 1.4.11, 2.4.7 (contrast and focus visibility)
- Insert
screenshot:Nplaceholders in the report for evidence
- Use
KEYBOARD INTERACTION: computer tool
- Use
computer(action='key', text='Tab')for keyboard navigation testing - Essential for: 2.1.1, 2.1.2, 2.4.3, 2.4.7
- Capture screenshots at key moments to document focus path
- Use
Workflow for Each Test
1. Identify scope (page/component/flow)
2. Collect evidence via search_elements and/or screenshot
3. Apply SC-specific judgment rules
4. Record Pass/Fail with evidence references
5. Provide actionable fix recommendations
Threat Context & Privacy Notes
IMPORTANT: This audit may capture sensitive information.
- Screenshots and accessibility tree dumps may contain: account names, order details, personal data, auth tokens, internal URLs.
- DO NOT include raw sensitive data in the final report.
- If a screenshot contains PII, note this and recommend masking before sharing.
- Contrast/visual judgments are estimates—always recommend verification with dedicated tools (e.g., WebAIM Contrast Checker, axe DevTools).
Pre-Audit Setup (Recommended)
Before starting the audit, confirm with the user:
- Target Scope: Full page, specific component, or user flow?
- Target Audience: Who are the primary users? (general public, internal staff, specific disability considerations)
- Priority SCs: Test all 8 SCs or focus on specific ones?
- Known Issues: Any existing accessibility issues to verify?
Success Criteria Test Procedures
SC 1.1.1 Non-text Content (Level A)
Goal: All non-text content (images, icons, controls) must have text alternatives.
Test Steps:
Find images and icons:
search_elements(tabId, "image | img") search_elements(tabId, "button | link | menuitem | tab | switch")Evaluate each element:
- Check if
nameattribute exists and is meaningful - FAIL conditions:
nameis empty or missingnameis generic: "icon", "image", "button", "img", "graphic", file names (e.g., "logo.png")nameduplicates visible text unnecessarily (redundant)
- PASS conditions:
nameaccurately describes purpose or equivalent information
- Check if
For decorative content:
- If truly decorative, element should have
role="presentation"orrole="none", orname=""(explicitly empty)
- If truly decorative, element should have
Common Failures:
- Icon buttons with no accessible name (screen reader announces "button" only)
- Images with
alt="image"oralt="logo.png" - SVG icons without
aria-labelor visually hidden text
Fix Recommendations:
- Add meaningful
alttext to images - Use
aria-labeloraria-labelledbyfor icon buttons - Use native semantic elements where possible (
<button>instead of<div>)
SC 1.4.3 Contrast (Minimum) (Level AA)
Goal: Text must have sufficient contrast against its background.
Requirements:
- Normal text: ≥ 4.5:1 contrast ratio
- Large text (≥24px regular or ≥18.66px bold): ≥ 3:1 contrast ratio
Test Steps:
Capture page states:
capture_screenshot(sendToLLM=true)- Default state
- Hover/focus states (use
computerto trigger) - Error/disabled states if applicable
Visual analysis prompt (for LLM):
"Analyze this screenshot for text contrast issues. Identify any text that appears to have low contrast against its background. Focus on:
- Small/body text that may be below 4.5:1
- Placeholder text in input fields
- Disabled state text
- Text overlaid on images or gradients List suspicious elements with their approximate location."
Record findings:
- Note: Visual analysis provides estimates only
- Flag elements for manual verification with contrast checker tools
Common Failures:
- Light gray text on white backgrounds
- Placeholder text with insufficient contrast
- Text on image backgrounds without overlay
**Fix Recomm
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл wcag22-a11y-audit?
WCAG 2.2 Accessibility Audit skill that systematically evaluates web pages against 8 core Success Criteria (1.1.1, 1.4.3, 1.4.11, 2.1.1, 2.1.2, 2.4.3, 2.4.7, 4.1.2) using accessibility tree inspection and visual analysis. Use this skill when you need to perform accessibility testing/auditing on a live webpage.
Как установить скилл wcag22-a11y-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wcag22-a11y-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…