AccessLint: Accessibility Scan

AccessLint/skills

Locate mechanically detectable accessibility issues on one rendered page, with DOM selectors, evidence and source locations when available.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 88/100
npx skills add AccessLint/skills
120Stelle15ForkUltimo push del repository

Informazioni sullo Skill

Locate mechanically detectable accessibility issues on one rendered page, with DOM selectors, evidence and source locations when available.

SKILL.md

Autore: AccessLint · AccessLint/skills · Nessuna licenza indicata · SKILL.md @ 2e9d733

---
name: accessibility-scan
description: "One page, automated tier — run the web accessibility (a11y) rule engine against a live page and locate every violation it can detect mechanically. Pass a URL, a config target name (e.g. `accesslint:accessibility-scan dev`), or nothing to use the default target from `accesslint.config.json`. Ensures a debuggable Chrome, runs the @accesslint/core engine over CDP, and returns a worklist of live-DOM WCAG 2.2 violations, each grounded to its DOM selector and source `file:line`. Locates; doesn't edit. Use it for 'is this page accessible', 'check a11y on this URL', 'find contrast and alt-text issues', or to verify a UI change. For hands-on keyboard and screen-reader checks use `accessibility-inspect`; for a whole site or product use `accessibility-audit`; to diff against uncommitted changes or a branch use `accessibility-diff`."
argument-hint: "[target|url]"
allowed-tools: Bash, Read, Glob, Grep, Skill, Task
---

Audit a live page and report each violation and where it is. Locate; don't fix.

Shared grounding and honesty conventions: [`../shared/methodology.md`](../shared/methodology.md).

`$ARGUMENTS` is a URL, a config target name (`dev`, `storybook`, …), or empty to audit the default target from `accesslint.config.json`. If it's empty and no config exists, ask for a URL or suggest `npx @accesslint/cli init`.

## 1. Audit

```bash
PORT=$(npx -y @accesslint/chrome@latest ensure | node -e 'process.stdin.on("data",d=>process.stdout.write(""+JSON.parse(d).port))')
npx -y @accesslint/cli@latest scan <target> --port "$PORT" --format json
```

`<target>` is the URL or config target name from `$ARGUMENTS`. Omit it (don't pass `""`) to audit the config's default target. Add flags as needed: `--selector`, `--wait-for "<selector>"`, `--include-aaa`, `--disable <rules>`, or pin them per-target in `accesslint.config.json`.

## 2. Report

Counts by impact, then one entry per violation:

- where: selector verbatim, plus `file:line (symbol)` if `source` is present. Don't fabricate. If no violation has `source`, note "source mapping unavailable; located by selector only".
- evidence: contrast ratio, missing attribute, empty name.
- fix: mechanical change, or `NEEDS HUMAN`.

Don't edit. For fixes, apply the mechanical ones and re-run to verify; for bulk work hand off to `accesslint:accessibility-fix`.

## 3. Tear down

```bash
npx -y @accesslint/chrome@latest stop --all  # skip if ensure reported "managed":false
```

## Notes

- `ensure` determines the port; don't hardcode 9222.
- CLI exit 2 means a bad URL or target, or the page never loaded; check the dev server. An unknown target name makes the CLI list the available targets from `accesslint.config.json`.

Perché lo abbiamo scelto

Scan a live page and produce a worklist without editing source.

A cosa serve

  • Scan a live page and produce a worklist without editing source.
  • Retain evidence and distinguish automated findings from checks needing a person.

Workflow and expected result

  1. Step 1

    Resolve the target URL, scope and relevant baseline or assessment inputs.

  2. Step 2

    Scan a live page and produce a worklist without editing source.

  3. Step 3

    Record findings, verification limits and the next action for each unresolved issue.

Reviewed upstream task instructions

Source review

Reviewed the task instructions and repository inventory at commit 2e9d73366783. This listing describes the upstream workflow; it does not claim that a full product implementation or accessibility audit was executed during intake.

Reviewed upstream task instructionsOfficial repository and installation guide

Prima di usarlo

  • A coding assistant with local file access and Node.js for the upstream installer. Review the installed instructions before use.
  • Node.js, network access and Chrome are needed by @accesslint/cli and @accesslint/chrome. The page must be running; source mapping depends on available framework metadata.
  • A successful automated check does not certify full accessibility conformance.

Agenti supportati

Claude CodeCodex CLICursorGitHub CopilotDeepSeek HarnessGemini CLIGrok BuildHermes AgentOpenCodePiKiroRovo DevQoderMistral VibeGoogle Antigravity

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.