Repository avatar
AI Tools
v1.0.0
active

allyward

io.github.NotAisu/allyward

WCAG 2.2 AA accessibility checker for HTML, React, Vue, Svelte, Angular and Astro code.

Documentation

Allyward – WCAG 2.2 Accessibility Checker

Install in VS Code Install MCP in VS Code Install MCP in Cursor npm License: MIT Website Glama MCP server

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.

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 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, or from Open VSX 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.
<!-- 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.

On the command line and in CI

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:

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.

In your AI coding agent

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

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 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:

LayerWhat it coversWhere you see it
CheckFailures the source decides, such as a missing alt, an unnamed button or an invalid ARIA attribute, reported only by Proven rulesProblems panel, CLI, CI, MCP
Needs ReviewLikely 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 labelInformation marked "AI"
Browser audit / PersonFocus visibility, reflow, keyboard traps, captions and anything that needs the running page or a humanThe optional browser audit Skill, and you

The WCAG 2.2 A & AA Coverage Map lists all 55 criteria with their layer and the evidence per language. Details are under 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

FileLanguage id
HTMLhtml
React (JSX, TSX)javascriptreact, typescriptreact
Vue single-file componentsvue
Sveltesvelte
Astroastro
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, 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 (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, 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/:
    [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:
    {
      "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/:
    {
      "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/:
    {
      "mcpServers": {
        "allyward": {
          "command": "npx",
          "args": ["-y", "allyward@1.0.0", "mcp"]
        }
      }
    }
    
  • Zed: add to settings.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:
    {
      "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/:
    {
      "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.

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 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

SettingDefaultWhat 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.fixOnSavefalseApply deterministic fixes that guess nothing when a file is saved
allyward.aiReview.providercopilotWhere AI Review sends code: GitHub Copilot or a local model
allyward.aiReview.autofalseAlso start an AI Review when a file is saved
allyward.aiReview.localEndpointhttp://localhost:1234/v1The 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 (and machine-readable 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:

LanguageEngineCriteria
HTMLaxe-core (layout rules off), @html-eslint1.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, Astroeslint-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
Vueeslint-plugin-vuejs-accessibility1.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
SvelteSvelte compiler a11y warnings1.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-template1.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:

LanguageRuleCriteriaCorrectPrecision at least
Angular@angular-eslint/template/alt-text1.1.1108 of 10897.2 %
Angular@angular-eslint/template/elements-content2.4.4, 4.1.2, 2.4.6, 1.3.1166 of 16698.2 %
Angular@angular-eslint/template/role-has-required-aria4.1.280 of 8096.3 %
Angularallyward/autocomplete-valid1.3.578 of 7896.2 %
Astroallyward/button-name4.1.288 of 8896.6 %
Astroastro/jsx-a11y/alt-text1.1.1109 of 10997.2 %
Astroastro/jsx-a11y/anchor-has-content2.4.4, 4.1.2105 of 10597.1 %
Astroastro/jsx-a11y/aria-props4.1.280 of 8096.3 %
Astroastro/jsx-a11y/aria-proptypes4.1.280 of 8096.3 %
Astroastro/jsx-a11y/aria-role4.1.280 of 8096.3 %
Astroastro/jsx-a11y/heading-has-content2.4.6, 1.3.178 of 7896.2 %
Astroastro/jsx-a11y/role-has-required-aria-props4.1.281 of 8196.3 %
Astroastro/jsx-a11y/role-supports-aria-props4.1.280 of 8096.3 %
HTMLaria-allowed-attr4.1.278 of 7896.2 %
HTMLaria-hidden-body1.3.1, 4.1.280 of 8096.3 %
HTMLaria-valid-attr4.1.277 of 7796.1 %
HTMLautocomplete-valid1.3.585 of 8596.5 %
HTMLbutton-name4.1.274 of 7496.0 %
HTMLhtml-lang-valid3.1.185 of 8596.5 %
HTMLimage-alt1.1.1205 of 20598.5 %
HTMLlabel4.1.285 of 8596.5 %
HTMLlink-name2.4.4, 4.1.2108 of 10897.2 %
HTMLvalid-lang3.1.280 of 8096.3 %
JSXallyward/button-name4.1.286 of 8696.5 %
JSXjsx-a11y-x/alt-text1.1.189 of 8996.6 %
JSXjsx-a11y-x/anchor-has-content2.4.4, 4.1.284 of 8496.4 %
JSXjsx-a11y-x/aria-props4.1.280 of 8096.3 %
JSXjsx-a11y-x/aria-proptypes4.1.280 of 8096.3 %
JSXjsx-a11y-x/aria-role4.1.280 of 8096.3 %
JSXjsx-a11y-x/autocomplete-valid1.3.580 of 8096.3 %
JSXjsx-a11y-x/heading-has-content2.4.6, 1.3.176 of 7696.1 %
JSXjsx-a11y-x/role-has-required-aria-props4.1.281 of 8196.3 %
JSXjsx-a11y-x/role-supports-aria-props4.1.280 of 8096.3 %
Sveltesvelte/a11y_consider_explicit_label4.1.2, 2.4.4119 of 11997.5 %
Sveltesvelte/a11y_incorrect_aria_attribute_type_token4.1.280 of 8096.3 %
Sveltesvelte/a11y_missing_attribute1.1.1, 2.1.1, 3.1.1, 4.1.281 of 8196.3 %
Sveltesvelte/a11y_missing_content2.4.6, 1.3.180 of 8096.3 %
Sveltesvelte/a11y_role_has_required_aria_props4.1.280 of 8096.3 %
Sveltesvelte/a11y_role_supports_aria_props_implicit4.1.279 of 7996.2 %
Sveltesvelte/a11y_unknown_aria_attribute4.1.280 of 8096.3 %
Sveltesvelte/a11y_unknown_role4.1.280 of 8096.3 %
TSXjsx-a11y-x/alt-text1.1.1103 of 10397.1 %
TSXjsx-a11y-x/aria-props4.1.280 of 8096.3 %
TSXjsx-a11y-x/aria-proptypes4.1.280 of 8096.3 %
TSXjsx-a11y-x/aria-role4.1.280 of 8096.3 %
TSXjsx-a11y-x/autocomplete-valid1.3.565 of 6595.4 %
TSXjsx-a11y-x/heading-has-content2.4.6, 1.3.163 of 6395.3 %
TSXjsx-a11y-x/role-has-required-aria-props4.1.280 of 8096.3 %
TSXjsx-a11y-x/role-supports-aria-props4.1.281 of 8196.3 %
Vuevuejs-accessibility/alt-text1.1.1134 of 13497.7 %
Vuevuejs-accessibility/anchor-has-content2.4.4, 4.1.286 of 8696.5 %
Vuevuejs-accessibility/aria-props4.1.280 of 8096.3 %
Vuevuejs-accessibility/aria-role4.1.280 of 8096.3 %
Vuevuejs-accessibility/heading-has-content2.4.6, 1.3.179 of 7996.2 %
Vuevuejs-accessibility/iframe-has-title4.1.269 of 6995.7 %
Vuevuejs-accessibility/no-aria-hidden-on-focusable4.1.282 of 8296.4 %
Vuevuejs-accessibility/role-has-required-aria-props4.1.280 of 8096.3 %

The evidence of every rule, proven or not, is in src/core/proof-status.json, and the labelled files are in 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):

CriterionAllyward
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 Contrastallyward/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:

CriterionWhen
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 ContrastA text field declares a border whose contrast is not certain from source
Any criterion of a rule that is not yet a Proven ruleThe 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 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.

Feedback

Found a false positive, a missed problem or a bug? Report Issue, or run Allyward: Report Issue to open one prefilled with your environment.

Development

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.

# 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.

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

NPM
allyward
Install Command
npm install allyward