Agent skill · software engineering · sickn33

accesslint-diff

Diff a live page's accessibility violations against a baseline — by default compares uncommitted changes (stash-based), or pass --branch [<name>] to diff against a branch. Reports only new violations introduced, violations fixed, and pre-existing count. Use `scan` for a full audit with no diffing.

Why this skill is useful

Adds specific commands and workflows for diffing accessibility violations that the AI wouldn't reliably generate on its own.

What it needs

Requires @accesslint/chrome, @accesslint/cli, npx installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

Default branch: !git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null sed 's ./ ' echo main Report only what changed. Locate; don't fix. If no URL in $ARGUMENTS, ask for one. Parse $ARGUMENTS: strip --branch <name> if present → branch mode. If --branch has no value, use the default branch above. Remainder is the URL. When to Use Use this skill when the task matches this description: Diff a live page's accessibility violations against a baseline — by default compares uncommitted changes (stash-based), or pass --branch [<name>] to diff against a branch. Reports only new violations introduced, violations fixed, and pre-existing count. Use scan for a full audit with no diffing. 1. Audit Stash mode (default — uncommitted changes). Tell the user first: "Running in diff mode — stashing your changes to capture a baseline, then restoring. Your working tree will be fully restored." If git stash push fails, warn and exit. Branch mode (--branch <name>). Tell the user first: "Diffing against <name> — checking out that branch to capture a baseline, then restoring. Your working tree will be fully restored." Branch switching triggers a rebuild but not a browser reload — the CLI opens a fresh tab each time so it always reads the current build. Use --wait-for "<selector>" to gate the audit until the rebuild is ready; without it, warn the user that a slow build may yield a stale baseline. Keep the branch value in the quoted branch variable below; never paste or evaluate a branch name as shell syntax. Pass --selector, --include-aaa to both runs. 2. Report Each new violation: where (selector verbatim + file:line (symbol) if source present — never fabricate), evidence, fix (mechanical change or NEEDS HUMAN). Don't edit. For fixes: apply mechanical ones then re-run accesslint:diff to verify; for bulk work hand off to accesslint:audit. 3. Tear down Gotchas ensure always determines the port — never hardcode 9222. CLI exit 2 = bad URL or page never loaded; check the dev server. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/accesslint-diff

View the source on GitHub

Browse the @skills marketplace