Skip to main content
Glama
README.md
# Allyward – WCAG 2.2 Accessibility Checker

[![Install in VS Code](https://img.shields.io/visual-studio-marketplace/v/aisu.allyward?label=VS%20Code%20Marketplace&logo=visualstudiocode&color=007ACC)](https://marketplace.visualstudio.com/items?itemName=aisu.allyward)
[![Install MCP in VS Code](https://img.shields.io/badge/VS_Code-Install_MCP-0098FF?logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=allyward&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22allyward%401.0.0%22%2C%22mcp%22%5D%7D)
[![Install MCP in Cursor](https://img.shields.io/badge/Cursor-Install_MCP-000000?logo=cursor&logoColor=white)](https://cursor.com/en/install-mcp?name=allyward&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImFsbHl3YXJkQDEuMC4wIiwibWNwIl19)
[![npm](https://img.shields.io/npm/v/allyward?logo=npm&color=CB3837)](https://www.npmjs.com/package/allyward)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![Website](https://img.shields.io/badge/website-allyward-1b2a4a)](https://notaisu.github.io/allyward/)
[![Glama MCP server](https://img.shields.io/badge/Glama-MCP_server-4b5563)](https://glama.ai/mcp/servers/NotAisu/allyward)

**Find accessibility barriers in your frontend code while you write it: in VS Code, in your commit hook and CI, and in your AI coding agent.**

![VS Code with an HTML file open: the hover on an icon-only button names the barrier (WCAG 4.1.2), explains why it matters and how to fix it, with a bad and a good example; the Problems panel lists four Findings with their WCAG criteria.](media/screenshot-editor.png)

Allyward checks HTML, React (JSX/TSX), Vue, Svelte, Angular and Astro source code against WCAG 2.2 Level A and AA. It reports a barrier only when the rule behind it has proven itself on real, labelled code. What source code alone cannot decide is listed as Needs Review, never guessed.

**No telemetry, no account.** The Check runs offline and free. Your code leaves your machine only when you start an AI Review, and only to the provider you chose.

Formerly Allyproof; the [CHANGELOG](CHANGELOG.md) lists the old and new names of settings and commands.

## Why Allyward

- **Findings you can trust.** A rule reports Findings only once it is a Proven rule: at least 95 % precision (95 % confidence) on independently labelled real code. Every Finding names its WCAG 2.2 success criterion and explains how to fix it.
- **Honest about its limits.** Contrast from stylesheets, target size and other things only the rendered page decides are listed as Needs Review, so a clean Check never pretends to be a clean audit.
- **One Check everywhere.** The editor, the command line, the GitHub Action and the MCP server for coding agents run the same engines and rules with the same settings, so your agent, your CI and you see the same result.
- **Safe for any codebase.** Your files are parsed, never executed, and your workspace's own lint config is never loaded.

## Quick start

### In your editor

1. Install **Allyward** from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=aisu.allyward), or from [Open VSX](https://open-vsx.org/extension/aisu/allyward) in Cursor, Windsurf or VSCodium.
2. Open an HTML, JSX, TSX, Vue, Svelte, Astro or Angular file.
3. Findings appear in the Problems panel and as squiggles. Hover one for the WCAG criterion, why it matters and how to fix it; the lightbulb offers a fix where exactly one edit is right.

```html
<!-- Finding: this button has no accessible name (WCAG 2.2 SC 4.1.2 Name, Role, Value) -->
<button><svg aria-hidden="true">…</svg></button>

<!-- Fixed -->
<button aria-label="Close dialog"><svg aria-hidden="true">…</svg></button>
```

Run **Allyward: Check Workspace** to check the whole project, or **Allyward: Export Check Report** for a Markdown report.

![The Allyward Findings view groups a React component's results by WCAG criterion: one Finding for an image without alt text, and Needs Review items for contrast and target size that only the rendered page can decide.](media/screenshot-findings.png)

### On the command line and in CI

```sh
npx allyward check                 # check the repository (needs Node 24.15+)
npx allyward check --staged        # only what is about to be committed
```

In GitHub Actions, the Allyward action fails a pull request that adds Findings and shows them as code scanning alerts on the changed lines:

```yaml
permissions:
  contents: read
  security-events: write
steps:
  - uses: actions/checkout@v7
    with:
      fetch-depth: 0
  - uses: NotAisu/allyward@v1.0.0
```

**Allyward: Set Up Commit Check** in the editor adds the check to lefthook, Husky, lint-staged, pre-commit or a plain Git hook for you. Details: [Block inaccessible commits](#block-inaccessible-commits).

### In your AI coding agent

Give your agent the Check as an MCP server, so it verifies its own fixes before writing them:

```sh
npx -y allyward@1.0.0 mcp
```

Use the install badges above for VS Code and Cursor, or see [Use the Skill and MCP server in your own agent](#use-the-skill-and-mcp-server-in-your-own-agent) for Claude Code, Codex, Windsurf, Cline, Roo Code, Zed and Gemini CLI.

## What Allyward checks, and what it does not

Automated checking covers only part of WCAG 2.2. Allyward says exactly which part, and assigns every criterion to the layer that can verify it:

| Layer | What it covers | Where you see it |
| --- | --- | --- |
| **Check** | Failures the source decides, such as a missing `alt`, an unnamed button or an invalid ARIA attribute, reported only by Proven rules | Problems panel, CLI, CI, MCP |
| **Needs Review** | Likely failures a rule is not yet proven for, and criteria only the rendered page decides (contrast from stylesheets, target size) | Findings tree, report, CLI output |
| **AI Review** (optional) | Meaning: alt text that does not describe its image, vague link text, a custom control without a label | Information marked "AI" |
| **Browser audit / Person** | Focus visibility, reflow, keyboard traps, captions and anything that needs the running page or a human | The optional browser audit Skill, and you |

The **[WCAG 2.2 A & AA Coverage Map](https://notaisu.github.io/allyward/#coverage)** lists all 55 criteria with their layer and the evidence per language. Details are under [Coverage](#coverage) below.

Allyward helps you find accessibility barriers early. It is not a WCAG conformance audit or certification and gives no legal assurance: test the rendered page with people and assistive technology before you claim conformance.

## Features

- **Check while you type**: Findings appear in the Problems panel for HTML, Vue, Svelte, JSX, TSX and Astro files and Angular component templates (`*.component.html` or an inline `template`). Each language runs its own accessibility linter. Only Proven rules report Findings: rules whose precision on labelled real code is at least 95 % at 95 % confidence; the others list their matches as likely failures under Needs Review. Every Finding names its WCAG 2.2 success criterion, and a hover explains why it is a problem and how to fix it, with links to the criterion. Your file is parsed, never executed, and your workspace's own lint config is never loaded.
- **Needs Review instead of silent passes**: criteria the Check cannot decide from source, such as text contrast or target size, are listed per file in the Findings tree, not guessed.
- **Static contrast**: where both colors are certain from literal values (inline styles, Tailwind's default palette and arbitrary values), a contrast below the WCAG 2.x ratio is reported with the measured ratio, under Needs Review until the rule is a Proven rule.
- **Quick fixes**: deterministic fixes for problems with exactly one right edit, such as removing `aria-hidden` from `<body>`. Fix on save is opt-in (`allyward.check.fixOnSave`, off by default).
- **Findings tree**: an Activity Bar view grouped by file and criterion, filtered by Check, AI and Needs Review, plus a status bar summary of the current file. **Check Workspace** checks every supported file in the project.
- **Ignore and configure**: ignore one Finding with a comment (`<!-- allyward-ignore image-alt -->`, in JSX `{/* allyward-ignore … */}`), turn rules off or change their severity in `allyward.rules`, and map your components to the native elements they render in `allyward.components`. Ignoring a Finding and disabling its rule are offered in the lightbulb.
- **AI Review** (optional): reviews the current file or selection for semantic problems with GitHub Copilot (including models you added to Copilot with your own key) or a local model through LM Studio or Ollama. With Copilot it uses the cheapest capable model your plan offers: Claude Haiku 5.5, then GPT-6 Luna, GPT-5.6 Luna or GPT-5 mini. A Relevance Gate sends only regions with markup that changed since the last review. Its Findings appear as information marked "AI".
- **AI fixes**: every Finding has a "Fix with AI" quick fix, never the preferred one. The Check re-runs on the proposed edit and discards a fix that adds Findings; the fix is then shown as a diff you apply or discard.
- **Skill for your own agent**: the same review instructions the AI Review uses, plus the `a11y_check` tool, ready for Copilot chat and agent mode and as a file for Claude Code, Cursor and other agents.

## Supported languages and editors

| File | Language id |
| --- | --- |
| HTML | `html` |
| React (JSX, TSX) | `javascriptreact`, `typescriptreact` |
| Vue single-file components | `vue` |
| Svelte | `svelte` |
| Astro | `astro` |
| Angular component templates | `*.component.html`, inline `template` in `*.ts` |

Allyward needs **VS Code 1.123** or later, or an editor built on it. Releases go to two registries:

- **VS Code**: the VS Code Marketplace.
- **Cursor** (3.x), **Windsurf** and **VSCodium**: Open VSX, the registry these editors install extensions from.

Editors without the language model API (some VS Code forks) run the Check and hide AI Review, the Skill and the tool. It runs in remote setups (SSH, WSL, dev containers, Codespaces) as well as locally.

## Use the Skill and MCP server in your own agent

The AI Review and your own agent use the same Skill, [`skills/allyward/SKILL.md`](skills/allyward/SKILL.md), and the same deterministic Check.

For coding agents with browser automation tools (Playwright, preview tools or DevTools), this repository also includes an optional rendered browser audit Skill, [`skills/allyward-browser-audit/SKILL.md`](skills/allyward-browser-audit/SKILL.md) (`allyward-browser-audit`). It runs the static Check first and fixes Proven Findings before auditing the running app, separating deterministic DOM/style measurements (1.4.3/1.4.11 contrast, 2.5.8 target size, 2.4.7/2.4.11 focus visible and not obscured, 1.4.10 reflow at 320px, computed accessibility tree, modal focus traps and live regions) from visual AI judgment. Copy `skills/allyward-browser-audit` alongside `skills/allyward` in your agent's skills folder; Claude Code installs both with the plugin.

- **MCP server (`npx allyward mcp`)**: runs over stdio with no network requests, no AI and no file writes. It exposes `check` (files, folders with summary + `limit`, or proposed `code`), `explain_rule`, `list_rules`, each rule's docs as `allyward://rules/<ruleId>` and the Skill as the `allyward_review` prompt. Paths stay inside the client's MCP roots (or the project root when the client sends none); symlinks leaving a root are rejected.
- **Claude Code**: this repository is a Claude Code plugin and its own marketplace (`.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json`, `.mcp.json` and `skills/`) that installs the pinned MCP server and both Skills together. Each release copies it to the small [NotAisu/allyward-plugin](https://github.com/NotAisu/allyward-plugin), which installs faster:
  ```
  /plugin install allyward --marketplace NotAisu/allyward-plugin
  ```
  Or copy `skills/allyward` into `.claude/skills/allyward/`.
- **Codex**: add the MCP server in `~/.codex/config.toml` (or `.codex/config.toml`) and copy `skills/allyward` into `.agents/skills/allyward/`:
  ```toml
  [mcp_servers.allyward]
  command = "npx"
  args = ["-y", "allyward@1.0.0", "mcp"]
  ```
- **Cursor**: this repository is a Cursor plugin (`.cursor-plugin/plugin.json`, `.cursor/rules/allyward.mdc` and `skills/allyward/SKILL.md`) that bundles the pinned MCP server, the Skill and the check-first rule. Or use the one-click **Install MCP in Cursor** badge above, or add to `.cursor/mcp.json`:
  ```json
  {
    "mcpServers": {
      "allyward": {
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **Windsurf**: add to `~/.codeium/windsurf/mcp_config.json` and copy `skills/allyward` into `.windsurf/skills/allyward/`:
  ```json
  {
    "mcpServers": {
      "allyward": {
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **Cline / Roo Code**: add to Cline's `cline_mcp_settings.json` or Roo Code's `.roo/mcp.json`, and copy `skills/allyward/SKILL.md` into `.clinerules/` or `.roo/rules/`:
  ```json
  {
    "mcpServers": {
      "allyward": {
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **Zed**: add to `settings.json`:
  ```json
  {
    "context_servers": {
      "allyward": {
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **VS Code**: the extension contributes the Skill and `a11y_check` automatically for Copilot chat and agent mode. To connect the MCP server directly (for any agent in VS Code), use the **Install MCP in VS Code** badge above or add to `.vscode/mcp.json`:
  ```json
  {
    "servers": {
      "allyward": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **Gemini CLI**: add to `~/.gemini/settings.json` (or `.gemini/settings.json`) and copy `skills/allyward` into `.gemini/skills/allyward/`:
  ```json
  {
    "mcpServers": {
      "allyward": {
        "command": "npx",
        "args": ["-y", "allyward@1.0.0", "mcp"]
      }
    }
  }
  ```
- **Your repository**: **Allyward: Add Skill to Repository** writes the Skill to `.github/skills/allyward/SKILL.md` (and optionally `.claude/skills` and `.agents/skills`), carrying the extension version in its `metadata`; an existing Skill file is only replaced after you confirm.

`a11y_check` (in VS Code) and `check` (over MCP) run the Check on files or proposed code so an agent can verify its fix before writing it. Outside MCP and VS Code, the agent runs the same Check from the command line (`allyward check <file> --format json`, or `--stdin --stdin-filename <file>`).

## Block inaccessible commits

The command line runs the editor's Check, with the same engines, the rule settings and Component Mapping from `.vscode/settings.json`, and the same ignore comments. It needs Node 24.15, makes no network requests, runs no AI and never executes your code.

```sh
npx allyward check                    # the repository, or the paths you name
npx allyward check --staged           # what is about to be committed, from Git's index
npx allyward check --changed origin/main --format sarif > allyward.sarif
npx allyward check --format markdown > allyward-check-report.md
npx allyward baseline                 # accept today's Findings; only new ones block
npx allyward explain image-alt        # what a rule checks, why, how to fix it, and its proof
npx allyward rules --format json      # every rule, its criteria and its proof status
```

Only Findings block; Needs Review is listed and never blocks. `--fail-on error|warning|information` sets the lowest severity that blocks (`warning`, so every Finding, by default). Exit codes: **0** no blocking Findings, **1** blocking Findings, **2** a usage or configuration error, **3** a file could not be checked (a parse error, an engine crash or a deadline), so a commit never passes with a file left unchecked. `--format json` follows the JSON Schema in [`schema/check-result.v1.json`](schema/check-result.v1.json) and carries each Finding's fix edits and proof status. `--format markdown` writes a report of the Check: the Findings grouped by WCAG criterion, Needs Review in its own section, the count of ignored Findings and every WCAG 2.2 A and AA criterion with the Layer that verifies it and its proof status per language. It states what automated checking covers and claims no conformance; `SOURCE_DATE_EPOCH` fixes its date. The baseline (`.allyward-baseline.json`) records each Finding by rule, file and start tag, so it survives lines moving, and the summary counts how many baselined Findings were fixed. Git's own `--no-verify` is the only way to skip a hook.

- **Set it up**: **Allyward: Set Up Commit Check** adds the check to lefthook, to lint-staged under Husky, to Husky's `pre-commit` hook or to the pre-commit framework (as a local hook), or writes a plain Git hook, and can add a GitHub Actions workflow. It shows every file it will create or change and writes only after you confirm; existing entries are kept.
- **GitHub Actions**: the `NotAisu/allyward` action checks the files a pull request changes, fails the job on blocking Findings, and uploads SARIF, so Findings appear as code scanning alerts on the changed lines. Check out with `fetch-depth: 0`, grant `security-events: write`, and make the job a required status check to enforce it. Inputs: `base`, `paths`, `baseline`, `fail-on`, `upload-sarif`.
- **Other CI**: run `npx allyward check --changed <base>` and use the exit code; SARIF and JSON work with any code scanning or report tool.

## Commands

All commands are in the Command Palette under **Allyward**:

- Check Workspace: checks every supported file that `files.exclude` and `.gitignore` leave and lists the Findings in the Findings tree; files that are not open get no diagnostics in the editor. Running it again re-checks only the files that changed.
- Export Check Report: checks every supported file of the workspace, open files with their unsaved changes, and opens the Allyward Check report of `allyward check --format markdown` as a new untitled document.
- Filter Findings
- Start AI Review, Cancel AI Review, Clear AI Review Cache
- Add Skill to Repository
- Set Up Commit Check
- Show Log
- Report Issue

## Settings

| Setting | Default | What it does |
| --- | --- | --- |
| `allyward.rules` | `{}` | Turn rules off or change their severity by rule id, for example `{ "image-alt": "off" }` |
| `allyward.components` | `{}` | Component Mapping: the native element each of your components renders, so `<Button>` is checked like a `<button>` |
| `allyward.polymorphicPropName` | `""` | The prop that names the rendered element, such as `as` for `<Link as="a">` |
| `allyward.check.fixOnSave` | `false` | Apply deterministic fixes that guess nothing when a file is saved |
| `allyward.aiReview.provider` | `copilot` | Where AI Review sends code: GitHub Copilot or a local model |
| `allyward.aiReview.auto` | `false` | Also start an AI Review when a file is saved |
| `allyward.aiReview.localEndpoint` | `http://localhost:1234/v1` | The local model server: LM Studio, or `http://localhost:11434/v1` for Ollama |
| `allyward.aiReview.localModel` | `""` | The local model to use; empty uses the first one the server lists |

The command line reads the same `allyward.*` settings from `.vscode/settings.json`.

## Privacy

- **No telemetry, no account.** Allyward collects nothing and sends nothing about you or your usage.
- The Check runs locally and offline. Your project's code and lint config are never executed.
- AI Review sends code only when you start it (`allyward.aiReview.auto` also starts it on save and is off by default). Before the first review Allyward tells you which provider will see your code. With a local model your code stays on your machine.
- In an untrusted workspace AI Review uses only GitHub Copilot, so a repository cannot redirect your code to another endpoint through workspace settings.
- **Allyward: Report Issue** opens a prefilled issue with your environment and no code.

## Coverage

See the full **[WCAG 2.2 A & AA Coverage Map](https://notaisu.github.io/allyward/#coverage)** (and machine-readable [`site/llms.txt`](site/llms.txt)) for all 55 WCAG 2.2 Level A and AA criteria assigned to their primary layer (`Check`, `AI Review`, `Browser audit`, or `Person`), with Proven rule evidence per language and Best-practice rules marked clearly.

The Check reports only what the source decides. Each language runs its own static accessibility linter; these are the WCAG 2.2 A/AA criteria they check:

| Language | Engine | Criteria |
| --- | --- | --- |
| HTML | axe-core (layout rules off), @html-eslint | 1.1.1, 1.2.1, 1.2.2, 1.3.1, 1.3.4, 1.3.5, 1.4.2, 1.4.4, 1.4.12, 2.1.1, 2.2.1, 2.2.2, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.3, 3.1.1, 3.1.2, 3.3.2, 4.1.2 |
| JSX, TSX, Astro | eslint-plugin-jsx-a11y-x (Astro through eslint-plugin-astro) | 1.1.1, 1.2.2, 1.3.1, 1.3.5, 2.1.1, 2.2.2, 2.4.3, 2.4.4, 2.4.6, 3.1.1, 4.1.2 |
| Vue | eslint-plugin-vuejs-accessibility | 1.1.1, 1.2.2, 1.3.1, 2.1.1, 2.2.2, 2.4.3, 2.4.4, 2.4.6, 4.1.2 |
| Svelte | Svelte compiler a11y warnings | 1.1.1, 1.2.2, 1.3.1, 1.3.5, 2.1.1, 2.2.2, 2.4.3, 2.4.4, 2.4.6, 3.1.1, 4.1.2 |
| Angular | @angular-eslint/eslint-plugin-template | 1.1.1, 1.3.1, 2.1.1, 2.2.2, 2.4.3, 2.4.4, 2.4.6, 4.1.2 |

A listed criterion means the engine has rules for some of its failures, not that it decides the whole criterion: "every image has an `alt`" is checked, "the `alt` text describes the image" is not.

### Proven rules

A rule reports Findings only once it has proven its precision on real code: on independently labelled files (the W3C ACT Rules test cases, real pages and components from open-source projects, and real files with one known failure inserted), the 95 % lower confidence bound of its precision is at least 95 %. Until then its matches are listed as Needs Review, as likely failures to verify. A rule proves itself per language, because each language has its own engine. These rules are Proven rules today:

| Language | Rule | Criteria | Correct | Precision at least |
| --- | --- | --- | --- | --- |
| Angular | `@angular-eslint/template/alt-text` | 1.1.1 | 108 of 108 | 97.2 % |
| Angular | `@angular-eslint/template/elements-content` | 2.4.4, 4.1.2, 2.4.6, 1.3.1 | 166 of 166 | 98.2 % |
| Angular | `@angular-eslint/template/role-has-required-aria` | 4.1.2 | 80 of 80 | 96.3 % |
| Angular | `allyward/autocomplete-valid` | 1.3.5 | 78 of 78 | 96.2 % |
| Astro | `allyward/button-name` | 4.1.2 | 88 of 88 | 96.6 % |
| Astro | `astro/jsx-a11y/alt-text` | 1.1.1 | 109 of 109 | 97.2 % |
| Astro | `astro/jsx-a11y/anchor-has-content` | 2.4.4, 4.1.2 | 105 of 105 | 97.1 % |
| Astro | `astro/jsx-a11y/aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| Astro | `astro/jsx-a11y/aria-proptypes` | 4.1.2 | 80 of 80 | 96.3 % |
| Astro | `astro/jsx-a11y/aria-role` | 4.1.2 | 80 of 80 | 96.3 % |
| Astro | `astro/jsx-a11y/heading-has-content` | 2.4.6, 1.3.1 | 78 of 78 | 96.2 % |
| Astro | `astro/jsx-a11y/role-has-required-aria-props` | 4.1.2 | 81 of 81 | 96.3 % |
| Astro | `astro/jsx-a11y/role-supports-aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| HTML | `aria-allowed-attr` | 4.1.2 | 78 of 78 | 96.2 % |
| HTML | `aria-hidden-body` | 1.3.1, 4.1.2 | 80 of 80 | 96.3 % |
| HTML | `aria-valid-attr` | 4.1.2 | 77 of 77 | 96.1 % |
| HTML | `autocomplete-valid` | 1.3.5 | 85 of 85 | 96.5 % |
| HTML | `button-name` | 4.1.2 | 74 of 74 | 96.0 % |
| HTML | `html-lang-valid` | 3.1.1 | 85 of 85 | 96.5 % |
| HTML | `image-alt` | 1.1.1 | 205 of 205 | 98.5 % |
| HTML | `label` | 4.1.2 | 85 of 85 | 96.5 % |
| HTML | `link-name` | 2.4.4, 4.1.2 | 108 of 108 | 97.2 % |
| HTML | `valid-lang` | 3.1.2 | 80 of 80 | 96.3 % |
| JSX | `allyward/button-name` | 4.1.2 | 86 of 86 | 96.5 % |
| JSX | `jsx-a11y-x/alt-text` | 1.1.1 | 89 of 89 | 96.6 % |
| JSX | `jsx-a11y-x/anchor-has-content` | 2.4.4, 4.1.2 | 84 of 84 | 96.4 % |
| JSX | `jsx-a11y-x/aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| JSX | `jsx-a11y-x/aria-proptypes` | 4.1.2 | 80 of 80 | 96.3 % |
| JSX | `jsx-a11y-x/aria-role` | 4.1.2 | 80 of 80 | 96.3 % |
| JSX | `jsx-a11y-x/autocomplete-valid` | 1.3.5 | 80 of 80 | 96.3 % |
| JSX | `jsx-a11y-x/heading-has-content` | 2.4.6, 1.3.1 | 76 of 76 | 96.1 % |
| JSX | `jsx-a11y-x/role-has-required-aria-props` | 4.1.2 | 81 of 81 | 96.3 % |
| JSX | `jsx-a11y-x/role-supports-aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| Svelte | `svelte/a11y_consider_explicit_label` | 4.1.2, 2.4.4 | 119 of 119 | 97.5 % |
| Svelte | `svelte/a11y_incorrect_aria_attribute_type_token` | 4.1.2 | 80 of 80 | 96.3 % |
| Svelte | `svelte/a11y_missing_attribute` | 1.1.1, 2.1.1, 3.1.1, 4.1.2 | 81 of 81 | 96.3 % |
| Svelte | `svelte/a11y_missing_content` | 2.4.6, 1.3.1 | 80 of 80 | 96.3 % |
| Svelte | `svelte/a11y_role_has_required_aria_props` | 4.1.2 | 80 of 80 | 96.3 % |
| Svelte | `svelte/a11y_role_supports_aria_props_implicit` | 4.1.2 | 79 of 79 | 96.2 % |
| Svelte | `svelte/a11y_unknown_aria_attribute` | 4.1.2 | 80 of 80 | 96.3 % |
| Svelte | `svelte/a11y_unknown_role` | 4.1.2 | 80 of 80 | 96.3 % |
| TSX | `jsx-a11y-x/alt-text` | 1.1.1 | 103 of 103 | 97.1 % |
| TSX | `jsx-a11y-x/aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| TSX | `jsx-a11y-x/aria-proptypes` | 4.1.2 | 80 of 80 | 96.3 % |
| TSX | `jsx-a11y-x/aria-role` | 4.1.2 | 80 of 80 | 96.3 % |
| TSX | `jsx-a11y-x/autocomplete-valid` | 1.3.5 | 65 of 65 | 95.4 % |
| TSX | `jsx-a11y-x/heading-has-content` | 2.4.6, 1.3.1 | 63 of 63 | 95.3 % |
| TSX | `jsx-a11y-x/role-has-required-aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| TSX | `jsx-a11y-x/role-supports-aria-props` | 4.1.2 | 81 of 81 | 96.3 % |
| Vue | `vuejs-accessibility/alt-text` | 1.1.1 | 134 of 134 | 97.7 % |
| Vue | `vuejs-accessibility/anchor-has-content` | 2.4.4, 4.1.2 | 86 of 86 | 96.5 % |
| Vue | `vuejs-accessibility/aria-props` | 4.1.2 | 80 of 80 | 96.3 % |
| Vue | `vuejs-accessibility/aria-role` | 4.1.2 | 80 of 80 | 96.3 % |
| Vue | `vuejs-accessibility/heading-has-content` | 2.4.6, 1.3.1 | 79 of 79 | 96.2 % |
| Vue | `vuejs-accessibility/iframe-has-title` | 4.1.2 | 69 of 69 | 95.7 % |
| Vue | `vuejs-accessibility/no-aria-hidden-on-focusable` | 4.1.2 | 82 of 82 | 96.4 % |
| Vue | `vuejs-accessibility/role-has-required-aria-props` | 4.1.2 | 80 of 80 | 96.3 % |

The evidence of every rule, proven or not, is in [`src/core/proof-status.json`](src/core/proof-status.json), and the labelled files are in [`test/ground-truth`](test/ground-truth).

Allyward's own rules add what the engines miss, in every language and from literal values only (a bound value such as `:autocomplete="mode"` or `style={{ width: 16 }}` is never guessed):

| Criterion | Allyward |
| --- | --- |
| 1.3.5 Identify Input Purpose (Vue, Angular) | `allyward/autocomplete-valid`: an `autocomplete` value that is not an HTML autofill token sequence, such as `autocomplete="emal"`; the other languages' engines check 1.3.5 themselves |
| 1.4.3 Contrast (Minimum) | `allyward/text-contrast`: text whose color and background are both certain from inline styles or Tailwind classes, on the element or a static ancestor, and fail 4.5:1 (3:1 for large text) |
| 1.4.11 Non-text Contrast | `allyward/non-text-contrast`: a text field whose border and background are both certain and neither reaches 3:1 against its surroundings |
| 3.3.8 Accessible Authentication (Minimum) | `allyward/password-autocomplete`: a password field with `autocomplete="off"` |
| 4.1.2 Name, Role, Value (JSX, TSX, Astro) | `allyward/button-name`: a `<button>` with no visible text, accessible name attribute or potentially naming child |

### Needs Review

What only the rendered page can decide is listed per file as **Needs Review** in the Findings tree (not in the editor), with the reason:

| Criterion | When |
| --- | --- |
| 1.4.3 Contrast (Minimum) | The file renders text whose contrast static contrast could not decide, for example because a class comes from a stylesheet or a color is bound to an expression |
| 1.4.11 Non-text Contrast | A text field declares a border whose contrast is not certain from source |
| Any criterion of a rule that is not yet a Proven rule | The rule matched an element: a likely failure pointing at the element, to verify |
| 2.5.8 Target Size (Minimum) | The file renders controls. A control whose inline style or Tailwind classes (`w-4`, `size-5`, `w-[20px]`) declare less than 24×24 CSS px is listed as a likely failure pointing at the element |

### Not checked

The Check does not decide criteria that depend on meaning, behaviour or other pages, such as meaningful alt text (1.1.1), link purpose (2.4.4), focus visible (2.4.7), focus not obscured (2.4.11), dragging movements (2.5.7), consistent help (3.2.6), redundant entry (3.3.7) or status messages (4.1.3). The semantic ones are what AI Review is for; the rest need testing in the browser.

### AI Review

AI Review sees only source code. It looks for semantic problems the Check cannot detect, such as alt text that does not describe its image, vague link text or a missing label for a custom control. Its Findings are probable, not certain, and are reported as information marked "AI". It never reports contrast (1.4.3, 1.4.11) or target size (2.5.8): from source those would be guesses, so they stay with the Check and Needs Review.

## FAQ

**Does a clean Check mean my site is WCAG compliant?** No. It means the Check found no failure it can prove from source. Many criteria need the rendered page or a person; the [Coverage](#coverage) section and every Check report say which.

**Why does a rule list Needs Review instead of an error?** It has not yet reached 95 % precision on labelled real code in that language, so its matches are likely failures for you to verify rather than Findings that block a commit.

**Does my code leave my machine?** Not for the Check, the command line, the GitHub Action or the MCP server. Only AI Review sends code, only when you start it, and only to the provider you chose.

**Which frameworks are supported?** HTML, React (JSX/TSX), Vue, Svelte, Angular templates and Astro. See [Supported languages and editors](#supported-languages-and-editors).

## Feedback

Found a false positive, a missed problem or a bug? [Report Issue](https://github.com/NotAisu/allyward/issues), or run **Allyward: Report Issue** to open one prefilled with your environment.

## Development

```sh
npm install         # on Node 24.15, the lowest supported runtime
npm run verify      # everything CI runs: lint, typecheck, unit tests, gate on source and bundle
npm run bundle      # dist/extension.mjs, dist/worker.mjs (the analysis worker) and one chunk per language engine
npm run test:unit
npm run test:gate   # Check precision/recall per language against ground truth
npm run test:bundle-gate  # the same gate against the packaged VSIX, unpacked without node_modules
npm run package     # allyward-<version>.vsix
npm run icon        # media/icon.png from media/icon.svg
```

After an intended change in Check quality, store the new scores with `npm run test:gate -- --update` and commit the changed files in `test/ground-truth/baseline/`.

### AI benchmark

The Skill that ships is chosen by a local benchmark that never runs in CI, because it sends code to models and costs tokens. It reviews the AccessGuru semantic subset (fetched at bench time) and the W3C ACT cases that need judgment, wrapped into Vue and Svelte components and marked synthetic, with every Skill Variant (the shipped `skills/allyward/SKILL.md` and each `test/bench/variants/*.md`) on every model, and reports recall, precision and tokens per Variant and model.

```sh
# Local models: load them in LM Studio, or pull them with Ollama
npm run bench -- --local qwen2.5-coder-7b-instruct --local llama3.1:8b@http://localhost:11434/v1
# Add Copilot: opens a VS Code window with its own profile; sign in to Copilot there on the first run
npm run bench -- --local qwen2.5-coder-7b-instruct --copilot
npm run bench -- --help
```

The winner has the highest recall over all models among the Variants with a precision of at least 0.8; fewer tokens break a tie. The benchmark prints the command that ships it (`cp test/bench/variants/<name>.md skills/allyward/SKILL.md`), and writes the full results to `out/bench/results.json` for the PR that ships it.

### Agent eval

A second local evaluation, also never in CI and not part of `npm run verify`, measures whether a coding agent with the Allyward MCP server and the Skill fixes accessibility problems. Each task is a whole file from the `field` or `injection` ground truth whose labelled Findings the Check reports, given to the agent with "Fix the accessibility problems in this file" in an empty folder holding only that file, the Skill Variant as the project's Skill and `allyward mcp` as its only MCP server (no shell, no web). The agent ends with the Findings it claims fixed, and the Check scores every run:

- fixed: labelled Findings the Check no longer reports;
- added: Findings reported after but not before; a run with any fails;
- integrity: the file still parses and keeps the words of its text and its interactive and embedded elements (an element may change its tag, a clickable `div` may become a `button`); deleting content to remove a Finding fails the run;
- honesty: every claimed fix is a Finding the Check reported before and no longer reports; a false claim fails the run;
- cost: tool calls, tokens and wall time per fixed Finding.

Findings are matched by rule, since a fix moves lines. Only passed runs count their fixes. The Skill Variant with the most fixes over all agents and models wins, fewer tokens per fix breaking a tie.

```sh
npm run bundle                                  # the agent's MCP server and the scorer run the bundled command line
npm run eval:agent -- --dry-run --limit 1       # list the tasks, no agent runs
npm run eval:agent -- --claude sonnet --limit 1 # Claude Code (claude -p, signed in) with each Skill Variant
npm run eval:agent -- --help
```

It costs tokens: every run is one agent session per task, Skill Variant and model. Results are printed and written per agent, model and Skill Variant to `out/agent-eval/<agent>--<model>--<variant>.json`, with the summary and winner in `out/agent-eval/report.json`. Claude Code is the first agent; another (Codex, a local model in an MCP-capable harness) is an `AgentPort` in `test/agent-eval/`.

Press F5 to launch an Extension Development Host. See `test/ground-truth/` for the ground truth the Check is measured against.

## License

MIT