a11y-debugging
Skill3.9k starsChanged 13 days agoMITView on GitHub
Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.
5 other projects use a version of this, 5 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- MorningStar0709/trae-agent-enhancementsedited, first seen Nov 29, 2026
- ChromeDevTools/chrome-devtools-mcpedited, first seen Nov 25, 2026
- jaakkokorhonen/claude-skillsedited, first seen Nov 22, 2026
- oivanfelipe/claude-skillsedited, first seen Nov 8, 2026
- kschiavo-beep/claude-skillsedited, first seen Oct 11, 2026
Who's talking about primer/react
- vercel/next.js“Turbopack Sass loader does not resolve imports correctly”GitHub · Jan 1, 2024 · 7 reactions
- mui/mui-design-kits“[figma] Support Figma Code Connect ”GitHub · Jun 28, 2024 · 5 reactions
- filipedeschamps/tabnews.com.br“feat(primer/react): update version”GitHub · Dec 20, 2023 · 2 reactions
- github/docs“Fix theme mismatch”GitHub · May 18, 2023 · 2 reactions
- primer/view_components“Component status page”GitHub · Nov 29, 2021 · 2 reactions
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub (34 times).
On GitHub · 34
- Jan 1, 2024Turbopack Sass loader does not resolve imports correctly — vercel/next.js7 reactions · 11 comments
- Jun 28, 2024[figma] Support Figma Code Connect — mui/mui-design-kits5 reactions · 5 comments
- Dec 20, 2023feat(primer/react): update version — filipedeschamps/tabnews.com.br2 reactions · 10 comments
- May 18, 2023Fix theme mismatch — github/docs2 reactions · 13 comments
- Nov 29, 2021Component status page — primer/view_components2 reactions · 7 comments
29 more on GitHub
- Mar 9, 2026Bump the app group with 8 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Feb 12, 2026Add `AGENTS.md` — carbon-design-system/carbon1 reaction · 1 comment
- Feb 2, 2026Bump the app group with 13 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Nov 10, 2025deps: bump @primer/react from 37.31.0 to 38.1.0 — npm/documentation1 reaction · 4 comments
- Mar 3, 2025Update release_conductor.yml — primer/.github1 reaction
- Oct 17, 2024Docs: add a11y guidance regarding required fields — primer/design1 reaction · 2 comments
- Oct 15, 2024Fix bug where checkboxes were broken with prefers-reduced-motion — primer/view_components1 reaction · 1 comment
- Aug 30, 2024Atualiza as propriedades do componente `Tooltip` para serem compatíveis com a nova versão (`Tooltip v2`) — filipedeschamps/tabnews.com.br1 reaction · 1 comment
- Mar 28, 2024Tooltip: Update the threshold value to match with the offset — primer/view_components1 reaction · 1 comment
- Feb 28, 2023Show source code in React component examples — primer/design1 reaction
- Dec 13, 2022Add a treatment for consistent appearance of content on focus — primer/design1 reaction · 1 comment
- Nov 9, 2022Using playwright to generate snapshots — primer/view_components1 reaction · 2 comments
- Oct 19, 2022Focus zone calls error in vitest + jsdom — primer/behaviors1 reaction · 2 comments
- Aug 19, 2022Add a CommonJS build to the package — github/combobox-nav1 reaction · 6 comments
- Feb 16, 2022ModuleNotFoundError: Could not find module in path "" relative to "" — codesandbox/codesandbox-client1 reaction · 9 comments
- Nov 8, 2026Refatorações e Ajustes finais da milestone 3 — danrlleimiranda/clone-tabnews0 reactions
- Nov 7, 2026Refactorings and final adjustments for Milestone 3 — kazluBR/clone-tabnews0 reactions
- Oct 29, 2026Create: Timeline in Figma — deboramoratalla-lab/ds-lab0 reactions
- Oct 26, 2026🐛 cheatcode_install registers an MCP server with its repo URL as the command and reports success — trustmybot/plugin0 reactions
- Oct 19, 2026Add named capture modes with mode-keyed baselines (bet) — ravidsrk/frontguard0 reactions · 1 comment
- Sep 26, 2026Refatorações e ajustes finais da Milestone 3 — jeancarlier/clone-tabnews0 reactions
- Jun 24, 2026This project is not maintained anymore 😢 — github/command0 reactions · 1 comment
- Jun 11, 2026WS2 · Regenerate primer-react through the corrected registry-scoped meta-skill (HITL) — vercel-labs/ds-skill-extraction-workshop0 reactions · 3 comments
- Nov 21, 2025User interface — panodata/suraya0 reactions · 4 comments
- Apr 11, 2025✨ 이슈 상세 페이지 UI 개선 — Seono-Na/demo-issue-api-playground0 reactions
- Mar 21, 2024Improve SSR by removing Webpack dependency — github-community-projects/org-metrics-dashboard0 reactions
- Jan 11, 2024Other relevant component libraries/frameworks — crate/crate-ui-components0 reactions
- Jan 5, 2024Add a pull request template — deven-org/boiler0 reactions
- Sep 23, 2022Element should not auto-register itself unless a browser context is found — github/markdown-toolbar-element0 reactions · 8 comments
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- ChromeDevTools/chrome-devtools-mcp★ 60k99% same
- MorningStar0709/trae-agent-enhancements★ 1764% same
- jaakkokorhonen/claude-skills★ 086% same
- kschiavo-beep/claude-skills★ 086% same
- oivanfelipe/claude-skills★ 086% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- changesetsSkill
- chrome-devtools-cliSkill
- chrome-devtoolsSkill
- component-testingSkill
- create-adr-migratorSkill
- debug-optimize-lcpSkill
- deprecationsSkill
- feature-flagsSkill
- memory-leak-debuggingSkill
- modular-ds-accessibility-contractSkill
- modular-ds-base-componentsSkill
- modular-ds-config-componentsSkill
- modular-ds-presentational-componentsSkill
- modular-ds-spectrum-modelSkill
- modular-ds-utilitiesSkill
- performanceSkill
- pull-request-descriptionSkill
- skillSkill
- slotsSkill
- storybookSkill
- style-guideSkill
- turborepoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 4 are common, 0 are distinctive, and 12 are very specific to this project.
4
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Reading web.dev documentation: If you need to research specific accessibility guidelines (like …
- Common: line 23
Start by running a Lighthouse accessibility audit to get a comprehensive baseline.
- Very specific: line 30
If the server was started with --experimentalStructuredContent, inspect summary.scores[].score (0-1 scale) and summary.audits.failed in the …
- Very specific: line 32
Parsing: Do not read the entire file line-by-line.
- Very specific: line 53
Use take_snapshot to capture the accessibility tree.
- Very specific: line 54
Check Heading Levels: Ensure heading levels (h1, h2, h3, etc.) are logical and do not skip levels.
- Common: line 55
Content Reordering: Verify that the DOM order (which drives the accessibility tree) matches the visual reading order.
- Very specific: line 60
Ensure interactive elements have an accessible name (e.g., a button should not just say "" if it only contains an icon).
- Very specific: line 61
Orphaned Inputs: Verify that all form inputs have associated labels.
- Very specific: line 62
Check images for alt text.
- Very specific: line 68
Use the press_key tool with "Tab" or "Shift+Tab" to move focus.
- Very specific: line 69
Use take_snapshot to capture the updated accessibility tree.
- Common: line 71
If a modal opens, focus must move into the modal and "trap" within it until closed.
- Common: line 85
Verify document-level accessibility settings often missed in component testing using the "Global Page Checks" snippet found in …
- Very specific: line 89
If standard a11y queries fail or the evaluate_script snippets return unexpected results:
- Very specific: line 91
Visual Inspection: If automated scripts cannot determine contrast (e.g., text over gradient images or complex backgrounds), use …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Core Concepts
Page Targeting: Page-scoped tools (take_snapshot, list_console_messages, evaluate_script, press_key, take_screenshot, lighthouse_audit, etc.) require a pageId parameter. Retrieve available page IDs using list_pages or from new_page.
Accessibility Tree vs DOM: Visually hiding an element (e.g., CSS opacity: 0) behaves differently for screen readers than display: none or aria-hidden="true". The take_snapshot tool returns the accessibility tree of the page, which represents what assistive technologies "see", making it the most reliable source of truth for semantic structure.
Reading web.dev documentation: If you need to research specific accessibility guidelines (like https://web.dev/articles/accessible-tap-targets), you can append .md.txt to the URL (e.g., https://web.dev/articles/accessible-tap-targets.md.txt) to fetch the clean, raw markdown version. This is much easier to read!
Workflow Patterns
1. Automated Audit (Lighthouse)
Start by running a Lighthouse accessibility audit to get a comprehensive baseline. This tool provides a high-level score and lists specific failing elements with remediation advice.
- Run the audit:
- Set
modeto"navigation"to refresh the page and capture load issues. - Omit
outputDirPathto save reports to the default temporary directory (the exact path toreport.jsonis returned underReports), or setoutputDirPathto a directory within the workspace.
- Set
- Analyze the Summary:
- In the default text output, category scores use a 0-100 scale (100 is a perfect score), followed by
Passed: NandFailed: Naudit counts. - If the server was started with
--experimentalStructuredContent, inspectsummary.scores[].score(0-1 scale) andsummary.audits.failedin the structured content instead.
- In the default text output, category scores use a 0-100 scale (100 is a perfect score), followed by
- Review the Report (CRITICAL):
- Parsing: Do not read the entire file line-by-line. Use a CLI tool like
jqor a Node.js one-liner to filter for failures from the report path returned bylighthouse_audit:# Extract failing audits with their details (replace with report.json path from tool response) node -e "const r=require('<path/to/report.json>'); Object.values(r.audits).filter(a=>a.score!==null && a.score<1).forEach(a=>console.log(JSON.stringify({id:a.id, title:a.title, items:a.details?.items})))" - This efficiently extracts the
selectorandsnippetof failing elements without loading the full report into context.
- Parsing: Do not read the entire file line-by-line. Use a CLI tool like
2. Browser Issues & Audits
Chrome automatically checks for common accessibility problems. Use list_console_messages to check for these native audits:
types:["issue"]includePreservedMessages:true(to catch issues that occurred during page load)
This often reveals missing labels, invalid ARIA attributes, and other critical errors without manual investigation.
3. Semantics & Structure
The accessibility tree exposes the heading hierarchy and semantic landmarks.
- Navigate to the page.
- Use
take_snapshotto capture the accessibility tree. - Check Heading Levels: Ensure heading levels (
h1,h2,h3, etc.) are logical and do not skip levels. The snapshot will include heading roles. - Content Reordering: Verify that the DOM order (which drives the accessibility tree) matches the visual reading order. Use
take_screenshotto inspect the visual layout and compare it against the snapshot structure to catch CSS floats or absolute positioning that jumbles the logical flow.
4. Labels, Forms & Text Alternatives
- Locate buttons, inputs, and images in the
take_snapshotoutput. - Ensure interactive elements have an accessible name (e.g., a button should not just say
""if it only contains an icon). - Orphaned Inputs: Verify that all form inputs have associated labels. Use
evaluate_scriptwith the "Find Orphaned Form Inputs" snippet found in references/a11y-snippets.md. - Check images for
alttext.
5. Focus & Keyboard Navigation
Testing "keyboard traps" and proper focus management without visual feedback relies on tracking the focused element.
- Use the
press_keytool with"Tab"or"Shift+Tab"to move focus. - Use
take_snapshotto capture the updated accessibility tree. - Locate the element marked as focused in the snapshot to verify focus moved to the expected interactive element.
- If a modal opens, focus must move into the modal and "trap" within it until closed.
6. Tap Targets and Visuals
According to web.dev, tap targets should be at least 48x48 pixels with sufficient spacing. Since the accessibility tree doesn't show sizes, use evaluate_script with the "Measure Tap Target Size" snippet found in references/a11y-snippets.md.
Pass the element's uid from the snapshot as an argument to evaluate_script.
7. Color Contrast
To verify color contrast ratios, use the "Check Color Contrast" snippet found in references/a11y-snippets.md with evaluate_script.
8. Global Page Checks
Verify document-level accessibility settings often missed in component testing using the "Global Page Checks" snippet found in references/a11y-snippets.md.
Troubleshooting
If standard a11y queries fail or the evaluate_script snippets return unexpected results:
- Visual Inspection: If automated scripts cannot determine contrast (e.g., text over gradient images or complex backgrounds), use
take_screenshotto capture the element. While models cannot measure exact contrast ratios from images, they can visually assess legibility and identify obvious issues.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

