Web accessibility audit tool#1979
Open
sudeepghatak wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new web-accessibility-audit skill with supporting references and a runnable Node script to execute axe-core scans against live URLs and produce a summarized + JSON report.
Changes:
- Added
axe-audit.mjsPlaywright + axe-core runner script with CLI flags and CI-friendly exit codes. - Added a WCAG 2.2 AA checklist/remediation reference document for manual auditing.
- Registered the new skill in
docs/README.skills.mdand provided a detailedSKILL.mdworkflow.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| skills/web-accessibility-audit/scripts/axe-audit.mjs | New CLI script to run axe-core via Playwright and emit summary/JSON output. |
| skills/web-accessibility-audit/references/wcag-2.2-checklist.md | New WCAG 2.2 checklist + remediation guidance reference. |
| skills/web-accessibility-audit/SKILL.md | New skill definition and end-to-end audit workflow documentation. |
| docs/README.skills.md | Adds the new skill to the skills index table. |
Comment on lines
+28
to
+40
| function parseArgs(argv) { | ||
| const args = { url: null, tags: ['wcag2a', 'wcag2aa', 'wcag22aa'], json: null, full: false }; | ||
| const rest = argv.slice(2); | ||
| for (let i = 0; i < rest.length; i++) { | ||
| const a = rest[i]; | ||
| if (a === '--tags') args.tags = rest[++i].split(',').map((t) => t.trim()).filter(Boolean); | ||
| else if (a === '--json') args.json = rest[++i]; | ||
| else if (a === '--full') args.full = true; | ||
| else if (a === '--help' || a === '-h') args.help = true; | ||
| else if (!a.startsWith('--')) args.url = a; | ||
| } | ||
| return args; | ||
| } |
Comment on lines
+49
to
+52
| if (args.help || !args.url) { | ||
| usage(); | ||
| process.exit(args.url ? 0 : 1); | ||
| } |
Comment on lines
+131
to
+134
| process.exit(Math.min(violations.length, 250)); | ||
| } finally { | ||
| await browser.close(); | ||
| } |
Comment on lines
+23
to
+26
| | Criterion | Check | Common failure | | ||
| |-----------|-------|----------------| | ||
| | 1.1.1 Non-text Content — A | All images/icons/controls have a text alternative; decorative images use `alt=""` | Icon-only buttons with no `aria-label`; `alt` repeating adjacent text | | ||
| | 1.2.x Time-based Media — A/AA | Video has captions; audio has transcripts | Auto-playing video, no captions | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.stagedbranch for this pull request.Description
A self-contained Agent Skill that takes accessibility work beyond a passing scanner score. It pairs automated scanning with the manual checks that tools can't do, triages findings by real user impact, and remediates in the source rather than patching the rendered DOM.
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.