Skip to content
Back to skills

Axe Accessibility

ASecurity

Automated accessibility testing instructions for AI coding agents. Ensures applications are fully accessible to screen readers and keyboard users.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 7, 2026
ai-agentsjavascripttypescriptgojavatesting

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add romangalaxys10-spec/fable --skill axe-accessibility --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Axe Accessibility?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Axe Accessibility
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/romangalaxys10-spec-axe-accessibility/badge)](https://www.skillsdirectory.com/skills/romangalaxys10-spec-axe-accessibility)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: axe-accessibility
title: Automated Accessibility & WCAG 2.1 AA Auditing
category: Specialized & Compliance
testingTypes:
  - Accessibility
  - a11y
  - Compliance
frameworks:
  - Axe Core
  - Playwright
languages:
  - TypeScript
  - JavaScript
author: Pramod Dutta (QASkills.sh)
---

# Automated Accessibility & WCAG 2.1 AA Auditing

Automated accessibility testing instructions for AI coding agents. Ensures applications are fully accessible to screen readers and keyboard users.

## Core Mental Model

1. **Continuous Axe Integration**:
   - Run `@axe-core/playwright` on all critical route entrypoints.
   - Fail CI when critical or serious accessibility violations are detected.

2. **Keyboard Navigation & Focus Trapping**:
   - Verify all interactive controls are reachable via `Tab` and activatable with `Enter` / `Space`.
   - Modals and dialogs MUST trap focus and release focus back to the triggering element on `Escape`.

3. **ARIA & Contrast Standards**:
   - Buttons without text must possess an `aria-label`.
   - Color contrast ratio must meet 4.5:1 for normal text and 3:1 for large text.

## Pattern Implementation

```typescript
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';

test.describe('Accessibility Compliance (WCAG 2.1 AA)', () => {
  test('Dashboard page should have zero critical accessibility violations', async ({ page }) => {
    await page.goto('/dashboard');
    await page.waitForLoadState('networkidle');

    const accessibilityScanResults = await new AxeBuilder({ page })
      .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
      .disableRules(['color-contrast']) // Optional: isolate color if verified separately
      .analyze();

    expect(accessibilityScanResults.violations).toEqual([]);
  });
});
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.