508 audit

From tinh2/skills-hub-registry · View interactive version

508 audit is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: \"Section 508\", \"508 audit\", \"WCAG\", \"VPAT\", \"ACR\".

How to use this skill

Skill file

Section 508 + WCAG 2.2 Accessibility Audit

You run a federal-grade accessibility audit and produce the deliverable trio agencies require (VPAT 2.5 + ACR + remediation plan). Federal procurement is increasingly contingent on these — failure to provide credible 508 documentation eliminates vendors from competition.

Standards landscape (2026):

============================================================

=== PRE-FLIGHT ===

============================================================

Verify:

Recovery:

============================================================

=== PHASE 1: AUTOMATED SCAN ===

============================================================

Run axe-core (@axe-core/cli or via Playwright @axe-core/playwright) against every priority URL:

npx @axe-core/cli --rules wcag22aa,best-practice https://example.gov \
  --save axe-report.json \
  --tags wcag2a,wcag2aa,wcag21a,wcag21aa,wcag22a,wcag22aa

Also run Lighthouse accessibility category for each URL. Persist both as automated_findings.json.

Caveats explicit to the user:

VALIDATION: Automated scan completes on every priority URL with no exit-1. Findings deduplicated.

============================================================

=== PHASE 2: KEYBOARD AUDIT ===

============================================================

Manual keyboard walkthrough. For each priority page:

Generate keyboard_findings.md with per-page checklist and violations.

VALIDATION: Every interactive element tested. Findings reference specific WCAG SC.

============================================================

=== PHASE 3: SCREEN READER AUDIT ===

============================================================

Test priority pages with NVDA (Windows + Chrome/Firefox) and VoiceOver (Mac/iOS). Report per page:

Generate sr_findings.md per page with screen-reader-specific issues.

VALIDATION: Findings cite specific SC + reproducer steps.

============================================================

=== PHASE 4: COGNITIVE / READABILITY AUDIT ===

============================================================

WCAG 2.2 added several cognitive-load SC:

VALIDATION: Each page has cognitive checklist run with findings.

============================================================

=== PHASE 5: VPAT 2.5 GENERATION ===

============================================================

Generate vpat.docx (or vpat.md if user prefers) following the VPAT® 2.5 Rev 508 template from ITI / Section508.gov:

Sections required:

Per criterion remarks must be specific. "Supports" without explanation is suspect to procurement officers.

VALIDATION: VPAT covers ALL applicable WCAG 2.0 A/AA criteria + all 508 chapters. Every "Partially Supports" / "Does Not Support" has a remarks explanation.

============================================================

=== PHASE 6: ACCESSIBILITY CONFORMANCE REPORT (ACR) ===

============================================================

The ACR is the VPAT-formatted document signed and dated, typically delivered with the procurement response. Generate as acr.pdf (via pandoc + wkhtmltopdf or weasyprint) with:

VALIDATION: ACR is a single PDF, signed, dated.

============================================================

=== PHASE 7: REMEDIATION PLAN ===

============================================================

Generate remediation_plan.md with findings ranked:

| Priority | Finding | WCAG SC | Sample URL | Estimated effort | Suggested fix |

| -------- | ----------------------------------------- | ------- | ---------- | ---------------- | ------------------------------------------------------------------ |

| P0 | Keyboard trap in date picker | 2.1.2 | /apply | 4 hr | Use <input type="date"> or trap-aware Floating UI |

| P0 | No skip link | 2.4.1 | All pages | 1 hr | Add <a href="#main" class="skip-link">Skip to main</a> in layout |

| P1 | Insufficient color contrast on link hover | 1.4.3 | All pages | 2 hr | Update --color-link-hover to ≥ 4.5:1 |

| P2 | Missing lang attribute | 3.1.1 | /es/\* | 1 hr | Set <html lang="es"> for Spanish pages |

P0 = WCAG fail that prevents access entirely. P1 = fail that hinders. P2 = polish.

Output also as JIRA / GitHub Issues import CSV.

VALIDATION: Every finding from phases 1-4 appears in the plan. P0 items have effort estimates.

============================================================

=== SELF-REVIEW ===

============================================================

Score 1–5:

Common gap: VPAT with vague "Supports" remarks. Each must reference specific testing evidence.

============================================================

=== LEARNINGS CAPTURE ===

============================================================

Append to ~/.claude/skills/508-audit/LEARNINGS.md:

<YYYY-MM-DD> — <site, framework, scope>

============================================================

=== STRICT RULES ===

============================================================

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.