# A11y violation gate

> A11y violation gate is an open-source agent skill for developer tools. Builds a CI ratchet that fails PRs only on new accessibility violations. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/testland/qa/tree/main/plugins/qa-accessibility/skills/a11y-violation-gate
- **Repository:** https://github.com/testland/qa
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** a11y-violation-gate
- **Collection:** https://github.com/testland/qa
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up a continuous integration check for web accessibility that compares each run against a checked-in baseline of known WCAG violations. Pre-existing findings are grandfathered per rule and page, so a project with accumulated debt can still merge pull requests while blocking regressions.

The workflow normalizes results from axe-core, pa11y, Lighthouse, WAVE and IBM Equal Access into one record format keyed by a stable fingerprint. Findings are then tiered by severity: critical and serious issues fail the build, moderate ones appear as warnings in the PR, and minor ones are only logged. A bundled Python example ingests axe-core output and exits non-zero on a blocking verdict.

The skill also covers a fixed-since-baseline counter that shows how many grandfathered violations have been resolved, plus guidance on updating the baseline deliberately during cleanup work rather than automatically in CI. It expects scanner reports as input and is intended for projects that already run one or more of those tools in their pipeline.

## When your agent uses it

> Use when a project has accessibility debt and a zero-violations gate would block every PR. Builds a CI ratchet that fails only on new WCAG violations a PR introduces, with pre-existing ones baselined per rule and page, from axe-core, pa11y, Lighthouse, WAVE or IBM Equal Access results.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/testland/qa/tree/HEAD/plugins/qa-accessibility/skills/a11y-violation-gate)
- [License: MIT](https://github.com/testland/qa/tree/HEAD/plugins/qa-accessibility/skills/a11y-violation-gate)

## Features

- **Ratchet-based failure gate:** Fails the build only when a pull request introduces violations absent from the stored baseline.
- **Unified multi-scanner records:** Normalizes axe-core, pa11y, Lighthouse, WAVE and IBM Equal Access output into one fingerprinted format.
- **Severity-tiered decisions:** Blocks on critical and serious findings, warns on moderate, and logs minor issues.
- **Checked-in baseline file:** Stores grandfathered fingerprints in a JSON file that changes only through deliberate commits.
- **Fixed-since-baseline counter:** Reports how many baseline entries have disappeared from the latest scan as cleanup progress.
- **PR summary template:** Renders the verdict, blockers, warnings and counts as a markdown table for PR comments or step summaries.

## Good for

- Add a CI accessibility check to a project with many existing violations
- Compare axe-core results against a baseline and fail on new issues
- Track how many legacy accessibility issues have been fixed over time
- Combine pa11y and Lighthouse reports into a single pass or fail verdict

## Install

### Claude Code

This skill ships in the `qa-accessibility` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add testland/qa
/plugin install qa-accessibility@testland-qa
```

Or copy only this skill to `~/.claude/skills/a11y-violation-gate`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/a11y-violation-gate &&
cp -R "$tmp/plugins/qa-accessibility/skills/a11y-violation-gate" ~/.claude/skills/a11y-violation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/a11y-violation-gate` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/a11y-violation-gate` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/a11y-violation-gate &&
cp -R "$tmp/plugins/qa-accessibility/skills/a11y-violation-gate" ~/.agents/skills/a11y-violation-gate &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/a11y-violation-gate` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/a11y-violation-gate` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/a11y-violation-gate &&
cp -R "$tmp/plugins/qa-accessibility/skills/a11y-violation-gate" ~/.cursor/skills/a11y-violation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/a11y-violation-gate` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/testland/qa.git --path plugins/qa-accessibility/skills/a11y-violation-gate
```

Or copy the folder to `~/.gemini/skills/a11y-violation-gate` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/a11y-violation-gate`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/a11y-violation-gate &&
cp -R "$tmp/plugins/qa-accessibility/skills/a11y-violation-gate" ~/.copilot/skills/a11y-violation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/a11y-violation-gate` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/testland/qa.git
```

Then copy `qa/plugins/qa-accessibility/skills/a11y-violation-gate` into your agent's skills folder as `a11y-violation-gate`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should A11y violation gate be used instead of a strict scanner gate?

It is meant for projects with existing accessibility debt that would be blocked by a zero-violations rule. The skill notes that a project already clean of violations can use a simpler scanner-native gate without a ratchet.

### Which scanners does the gate accept?

The described approach aggregates output from axe-core, pa11y, Lighthouse accessibility, WAVE and IBM Equal Access, though the bundled script only ingests axe-core results and the others are left to be extended.

### Does CI update the baseline automatically?

No. The skill says the baseline should be updated deliberately as part of cleanup pull requests and never auto-updated from CI.

### What does a blocking result do?

The example script prints a verdict and exits with a non-zero status when critical or serious new violations are found, which halts the CI run.

### How do I install A11y violation gate in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/a11y-violation-gate to use it in all your projects, or to .claude/skills/a11y-violation-gate in one project. Or install the qa-accessibility plugin, which includes it: /plugin marketplace add testland/qa, then /plugin install qa-accessibility@testland-qa.

### Does A11y violation gate run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use A11y violation gate?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to A11y violation gate?

The closest alternatives to A11y violation gate are Accessibility engineering, Axe a11y, Constraint driven development, Accessibility audit and Fix ci.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Accessibility engineering](https://ai-powered.com/skills/accessibility-engineering): Accessibility engineering is an open-source agent skill for developer tools.
- [Axe a11y](https://ai-powered.com/skills/axe-a11y): Axe a11y is an open-source agent skill for developer tools.
- [Constraint driven development](https://ai-powered.com/skills/constraint-driven-development): Constraint driven development is an open-source agent skill for developer tools.
- [Accessibility audit](https://ai-powered.com/skills/accessibility-audit-ivy00johns): Accessibility audit is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Enforce design ci](https://ai-powered.com/skills/enforce-design-ci): Enforce design ci is an open-source agent skill for design and media.
- [Vibe gap closure loop](https://ai-powered.com/skills/vibe-gap-closure-loop): Vibe gap closure loop is an open-source agent skill for developer tools.
- [Accessibility review](https://ai-powered.com/skills/accessibility-review): Accessibility review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/a11y-violation-gate
