# a11y-audit

Adopt this skill: https://proskills.md/skills/other/plugin87-ux-ui-agent-skills-claude-skills-a11y-audit

Page: https://proskills.md/skills/other/plugin87-ux-ui-agent-skills-claude-skills-a11y-audit
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .claude/skills/a11y-audit/SKILL.md
size: 2182
upstream: https://github.com/plugin87/ux-ui-agent-skills/blob/main/.claude/skills/a11y-audit/SKILL.md

```text
---
name: a11y-audit
description: Audit a UI or design against WCAG 2.2 AA/AAA and ARIA patterns, returning criterion-referenced findings with severity and specific fixes. Use when the user wants an accessibility check, contrast verification, keyboard/screen-reader review, or wants to confirm a component meets POUR.
---

# Skill: Accessibility Audit

> **Step 0 — is the kit here?** This skill reads files from the kit. Check once:
> `ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING`
> On `KIT_MISSING` only the skill folders were installed, which is what
> `npx skills add` does. Say so plainly, point the user at
> `npx ux-ui-agent-skills init` or the plugin install, and stop. Do not guess the
> contents of a file you could not open.

Evaluate against WCAG 2.2 and the project's ARIA patterns.

## Steps
1. Read `${CLAUDE_SKILL_DIR}/../../../accessibility/wcag-checklist.md` (POUR-organized, P0/P1/P2) and `${CLAUDE_SKILL_DIR}/../../../accessibility/aria-patterns.md`.
2. Check the mandatory P0 set per component: keyboard navigable, focus visible (≥3:1), screen-reader name/role/state, contrast (4.5:1 text / 3:1 UI), target size ≥24×24, no color-only signaling.
3. Verify WCAG 2.2 additions: Focus Not Obscured (2.4.11), Target Size (2.5.8), Accessible Authentication (3.3.8).
4. **Contrast — measure, don't eyeball.** For rendered HTML, RUN the real-render gates and report their actual output (CLAUDE.md → Verification Protocol): `node ${CLAUDE_SKILL_DIR}/../../../scripts/measure_render.mjs <file> [--dark]` (every text element) AND `node ${CLAUDE_SKILL_DIR}/../../../scripts/verify_states.mjs <file> [--dark]` (every interactive element in default/hover/focus — catches hover-state failures). For loose color pairs, `python3 ${CLAUDE_SKILL_DIR}/../../../scripts/contrast.py "<fg>" "<bg>"`. Never state a ratio you did not measure.
5. Check reduced-motion handling (`${CLAUDE_SKILL_DIR}/../../../taste/motion-choreography.md`).

## Output
A findings table: WCAG criterion (e.g. 1.4.3) · severity (P0/P1/P2) · what fails · specific fix. Confirm passes explicitly. Accessibility may never be traded for aesthetics.
```

## File: README.md
upstream: https://github.com/plugin87/ux-ui-agent-skills/blob/main/README.md

```text
<div align="center">

# UX/UI Agent Skills

*aka **XIAS***

### Design-system doctrine for coding agents, and **52 gates** that check what they build instead of taking their word for it.

Instructions, design tokens, 26 runnable skills and 2,144 design systems (2,087 of them measured from the live site) that make a coding agent design to a senior standard, in **any framework** and against **any design system**. Then the gates measure what it built.

<br>

<picture>
  <source media="(prefers-color-scheme: dark)" srcset=".github/brand/xias-cover-dark.png">
  <source media="(prefers-color-scheme: light)" srcset=".github/brand/xias-cover-light.png">
  <img src=".github/images/hero.png" alt="XIAS: design-system doctrine for coding agents. 52 objective gates, 34 of which open a real browser: WCAG contrast in every state, axe roles and landmarks, keyboard, target size, reduced motion, no horizontal overflow at 280, token by intent, screen economy. 2,144 design systems, 52 component specs, 26 runnable skills, 14 DTCG token files, 16 framework adapters. Claude Code, Codex, Cursor, Copilot, Gemini CLI, Antigravity, Aider, MCP." width="900">
</picture>

<br>
<br>

<a href="https://trendshift.io/repositories/24406" target="_blank"><img src="https://trendshift.io/api/badge/repositories/24406" alt="plugin87/ux-ui-agent-skills | Trendshift" width="250" height="55"></a>

<br>
<br>

[![Version](https://img.shields.io/badge/version-3.1.1-6366f1?style=for-the-badge)](https://github.com/plugin87/ux-ui-agent-skills/releases)
[![License: MIT](https://img.shields.io/badge/license-MIT-22c55e?style=for-the-badge)](#license)
[![WCAG 2.2 AA→AAA](https://img.shields.io/badge/WCAG-2.2_AA→AAA-a855f7?style=for-the-badge)](#-accessibility-standards)

<br>

[![npm](https://img.shields.io/npm/v/ux-ui-agent-skills?style=flat-square&logo=npm&logoColor=white&color=cb3837)](https://www.npmjs.com/package/ux-ui-agent-skills)
[![npm downloads](https://img.shields.io/npm/dt/ux-ui-agent-skills?style=flat-square&logo=npm&logoColor=white&color=cb3837)](https://www.npmjs.com/package/ux-ui-agent-skills)
![Tokens](https://img.shields.io/badge/Design_Tokens-DTCG-fbbf24?style=flat-square)
![Skills](https://img.shields.io/badge/runnable_skills-26-14b8a6?style=flat-square)
![Gates](https://img.shields.io/badge/objective_gates-52-16a34a?style=flat-square)
[![Live demo](https://img.shields.io/badge/live_demo-open-0ea5e9?style=flat-square)](https://plugin87.github.io/ux-ui-agent-skills/)
![Design Systems](https://img.shields.io/badge/design_systems-2144-f97316?style=flat-square)
![Frameworks](https://img.shields.io/badge/frameworks-any-8b5cf6?style=flat-square)
![Adapters](https://img.shields.io/badge/framework_adapters-16-22d3ee?style=flat-square)
![React 19](https://img.shields.io/badge/React-19-60a5fa?style=flat-square&logo=react)
![Next.js 15](https://img.shields.io/badge/Next.js-15-000000?style=flat-square&logo=nextdotjs)
![SwiftUI 6](https://img.shields.io/badge/SwiftUI-6-f472b6?style=flat-square&logo=swift)
![Tailwind v4](https://img.shields.io/badge/Tailwind-v4-38bdf8?style=flat-square&logo=tailwindcss)

</div>

**Current release [`v3.1.1`](https://github.com/plugin87/ux-ui-agent-skills/releases)** · [Changelog](CHANGELOG.md) · No build tools, dependencies, or runtime: a pure instruction and knowledge layer for AI agents.

---

## The output, rendered

Not a mockup. These are screenshots of the files in `examples/`, taken by
`node scripts/screenshot_docs.mjs` from the same HTML the 52 gates measure, so
what you see below is what the gate run passed, in both themes.

**Click through them yourself: [plugin87.github.io/ux-ui-agent-skills](https://plugin87.github.io/ux-ui-agent-skills/).**
There are 56 live pages (twenty whole-product screens, five websites from a
product launch to a Thai public service page, every component harness, both
reference screens and an iPhone Duo simulator), with a theme toggle. No install,
no clone.

<img src=".github/images/dashboard-light.png" alt="Atlas revenue console in light theme: sidebar navigation, a hero net-recurring-revenue figure at 2.48 million with a weekly bar chart, retention and churn cards, a donut of revenue by plan, an account ranking, regional sparklines, a sortable renewals table and an activity feed" />

<img src=".github/images/dashboard-dark.png" alt="The same Atlas console in dark theme, rendered from the same token theme with no per-page palette" />

<img src=".github/images/terminal-dark.png" alt="Meridian Terminal: a trading desk screen with a market ticker, candlestick chart with volume and moving average, order book with depth bars, cumulative depth curve, time and sales tape, watchlist sparklines, stacked area allocation, waterfall attribution, bubble chart and a correlation matrix" />

**Meridian Terminal** is the density test: **ten chart types on one screen**:
candlestick, volume, moving average, depth, order book, tape, sparklines,
stacked area, waterfall, bubble and a correlation matrix. Every one of them is
inline SVG drawn from the same tokens, with no chart library.
[Open it live.](https://plugin87.github.io/ux-ui-agent-skills/terminal/)
Build one yourself with **`/data-dashboard`**.

**Atlas** is one HTML file in `examples/showcase/`, built only from the kit's
tokens and rules: the hero figure leads at 3x the body size, the three
breakdowns are deliberately three different shapes rather than three identical
cards, the range tabs move the numbers, and the table headers really sort.
[Open it live.](https://plugin87.github.io/ux-ui-agent-skills/showcase/)

<table>
<tr>
<td width="50%"><img src=".github/images/reference-app-light.png" alt="Reference app in light theme: an Analytics screen led by one hero revenue metric, three smaller stats beneath it, a settings form, and a red Delete account action" /></td>
<td width="50%"><img src=".github/images/reference-app-dark.png" alt="The same Analytics screen in dark theme, rendered from the same token theme with no per-page palette" /></td>
</tr>
<tr>
<td><img src=".github/images/button-states-light.png" alt="Button harness in light theme showing primary, disabled, loading, secondary, danger and toggle states side by side" /></td>
<td><img src=".github/images/button-states-dark.png" alt="The same button states in dark theme, with the destructive action still wearing the danger variant" /></td>
</tr>
</table>

One theme, two modes, no per-page palette. The destructive action wears the
danger variant in both. Loading keeps full strength and swaps in a spinner
instead of borrowing the disabled dimming. Every one of those is a rule in
`CLAUDE.md` that a gate or a critic enforces.

---

## What the gates actually catch

Left: the same dashboard written the way a model writes it when nothing stops it:
the indigo-to-purple gradient, four equal cards with no focal point, emoji as
icons, one radius and one shadow everywhere, grey-on-white body text, and a blue
Delete Account. Right: the reference app in this repo.

<table>
<tr>
<td width="50%"><img src=".github/images/before-slop.png" alt="A generated-looking analytics dashboard: purple gradient header with emoji, four identical stat cards, grey low-contrast labels, tiny icon buttons, and a blue Delete Account button" /><br><b>Statistical defaults</b></td>
<td width="50%"><img src=".github/images/reference-app-light.png" alt="The same dashboard built to the kit's rules: one hero revenue metric leading, three smaller stats, a settings panel, and a red Delete account action" /><br><b>Built to the rules</b></td>
</tr>
</table>

The difference is not a matter of opinion, and that is the point. The page on the
left is `tests/fixtures/bad/slop-screen.html`; here is what the gates say about it:

| Gate | Verdict on the left-hand page |
|---|---|
| REAL-render WCAG | `x <h1> "Analytics Dashboard" 1.00:1 (need 3)`: white text on a gradient has no measurable background |
| State-aware WCAG | `x default "Save Changes" 1.00:1 (need 4.5) [rgb(255,255,255) on
```
