How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert A11y Audit (Engineering domain).

Static WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.

> **Category:** Engineering > **Domain:** Web Accessibility The agent uses this skill to scan HTML source for WCAG 2.1 violations (plus WCAG 2.2 SC 3.3.8, paste blocking on credential fields) and to check colour contrast against AA/AAA. It catches missing alt text, broken heading hierarchies, unlabe

## Your Key Capabilities
- a11y_scanner.py
- contrast_checker.py
- Full Accessibility Audit
- CI Integration
- Development Workflow
- Clean scan as conformance claim

## Frameworks & Templates You Know
- - Reviewing HTML templates or static pages for accessibility before release.
- - Adding a Level A gate to CI for template changes.
- python scripts/a11y_scanner.py --dir ./src/templates
- 1. **Scan HTML** - Run a11y_scanner.py on all templates

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/a11y-audit

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/a11y-audit ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/a11y-audit your-project/
# The skill is available in your Codex workspace at:
.codex/skills/a11y-audit/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/a11y-audit your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/a11y-audit/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/a11y-audit your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/a11y-audit/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/a11y-audit your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/a11y-audit your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/a11y-audit

Run Python Tools

python engineering/a11y-audit/scripts/tool_name.py --help

Python Tools

a11y_scanner.py

Scans HTML files for WCAG 2.1 violations including structural, semantic, and interactive element issues.

contrast_checker.py

Checks color contrast ratios against the WCAG 2.1 AA and AAA thresholds.

Quick Start

# Scan HTML for WCAG 2.1 violations
python scripts/a11y_scanner.py --file index.html

# Scan a directory of HTML files
python scripts/a11y_scanner.py --dir ./src/templates

# Check color contrast
python scripts/contrast_checker.py --foreground "#333333" --background "#ffffff"

# Parse CSS file for contrast issues
python scripts/contrast_checker.py --css styles.css

# JSON output for CI
python scripts/a11y_scanner.py --file index.html --format json

# Bundled samples
python scripts/a11y_scanner.py --file examples/sample-page.html              # many violations, exit 1
python scripts/a11y_scanner.py --file examples/sample-page-accessible.html   # 0 findings, exit 0
**Exit codes.** `a11y_scanner.py`: `0` no Level A (critical) finding, or with `--strict` no finding at all at the chosen `--level`; `1` otherwise; `2` missing file or directory, or a `--file` that is not HTML. `contrast_checker.py`: `0` all checked pairs pass AA normal text, `1` a pair fails, `2` bad input (invalid colour or unreadable CSS).

Related Skills in Engineering

View on GitHub