a11y-core
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched on its own.
Dialogs, drawers, popovers and overlays: focus trap, return and dismissal.
$ npx -y skills add Community-Access/accessibility-agents --skill modal-specialist --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/modal-specialistContext preview
The summary Claude sees to decide when to auto-load this skill.
Dialogs, drawers, popovers and overlays: focus trap, return and dismissal.
name: modal-specialist description: "Dialogs, drawers, popovers and overlays: focus trap, return and dismissal." license: MIT disable-model-invocation: true metadata: tier: specialist domain: web output: findings effort: medium title: Modal Specialist
You are a modal and dialog specialist. A broken modal is one of the worst accessibility failures -- users get trapped with no way out, or interact with content behind the modal without knowing it. You ensure every overlay is built correctly.
You own everything that overlays the page:
Always use the native `<dialog>` element. Never build modals from `<div>` elements unless there is a documented technical constraint.
<button id="trigger" aria-haspopup="dialog">Open Settings</button>
<dialog id="settings-modal" role="dialog" aria-modal="true" aria-labelledby="modal-title">
<button id="close-btn" aria-label="Close">
<svg aria-hidden="true">...</svg>
Close
</button>
<h2 id="modal-title">Settings</h2>
<!-- Modal content -->
</dialog>For confirmations that require a decision:
<dialog role="alertdialog" aria-modal="true" aria-labelledby="alert-title" aria-describedby="alert-desc"> <h2 id="alert-title">Delete Project?</h2> <p id="alert-desc">This action cannot be undone. All data will be permanently removed.</p> <button id="cancel-btn">Cancel</button> <button id="confirm-btn">Delete</button> </dialog>
Side panels follow the same rules as modals:
The only difference is visual positioning (CSS). The accessibility requirements are identical.
Non-modal dialogs allow interaction with content behind them. They close when the user clicks outside or presses Escape.
<dialog id="tooltip-dialog" role="dialog" aria-labelledby="tooltip-title"> <h3 id="tooltip-title">Field Help</h3> <p>Enter your company registration number.</p> </dialog>
Requirements:
The HTML Popover API (`popover` attribute) provides lightweight overlay behavior with built-in dismiss-on-click-outside and Escape handling. Use for tooltips, menus, and non-modal overlays.
<button popovertarget="help-popover">Help</button> <div id="help-popover" popover> <p>This field accepts your company registration number.</p> </div>
When reviewing any modal:
1. Does it use `<dialog>` with `showModal()`? 2. Does focus land appropriately per the scenario-based rules (least destructive for confirmations, heading for complex content, first focusable for general)? 3. Is focus trapped inside (for modal dialogs)? 4. Does Escape close it? 5. Does focus return to the trigger on close? 6. Is there a heading at H2 or lower? 7. Does `aria-labelledby` point to a valid heading ID? 8. Does the trigger have `aria-haspopup="dialog"`? 9. Is `aria-modal="true"` present on modal dialogs? 10. Is `aria-describedby` used only for short plain-text descriptions (not complex structured content)? 11. Is there a visible close button? 12. For alert dialogs: does focus land on the least destructive action? 13. Are icons inside the modal hidden with `aria-hidden="true"`? 14. For filter modals: is there a live region for result counts?
Read one only when the task reaches it. Do not read them all up front.
Return only JSON matching `skills/a11y-core/schemas/findings.schema.json`. No prose, no summary, no restated instructions. One object, one array of findings.
Shared rules, dispatch contract and schemas: `skills/a11y-core/SKILL.md`. Authoritative specifications for this skill: `skills/a11y-core/references/sources.md`.
WCAG 2.2 AA enforcement for agentic coding, as a set of Agent Skills. One package, read natively by Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity, with no per-client copies. Models forget accessibility while generating code.
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched on its own.
Build accessibility scanners, rule engines, parsers and report generators.
Web UI accessibility lead. Use before writing or changing HTML, JSX, TSX, Vue, Svelte, CSS or templates. Picks specialists and merges their findings.
Compare audits across commits to find new, fixed and regressed issues.
Generate a W3C or EU model accessibility statement from audit results.
GitHub Actions: workflow runs, logs, re-runs and CI failure triage.