Automated summary
This skill reviews web UI components for WCAG 2.1 Level AA compliance (semantic HTML, ARIA, keyboard navigation, contrast, forms, heading structure).
Strengths
- Covers the eight classic a11y audit areas: semantics, ARIA, keyboard, alt text, contrast, forms, headings, dynamic content.
- Each point ships with a concrete "bad" versus "good" code example that can be pasted straight into a fix.
- Restates the first rule of ARIA (skip it when semantic HTML works) and the 4.5:1 / 3:1 contrast thresholds.
- Read-only by design (Read, Grep, Glob), so it cannot accidentally rewrite your components.
Limitations
- Static analysis only: it cannot verify actual rendering, screen reader behaviour, or contrast ratios computed from real colors.
- No hooks into automated tooling (axe, Lighthouse, Pa11y) and no scored compliance report.
- The dynamic-content section is truncated in the provided file, and multi-step forms or complex SPA patterns are not addressed.
Reach for it while writing or reviewing a frontend component and you want a WCAG AA check with concrete remediation snippets.
Skip it if you need automated browser-based validation or a formal certified audit backed by real screen reader and user testing.
Security analysis
SafeThe skill only uses read-only tools (Read, Grep, Glob) and provides educational guidance on accessibility auditing. It contains no destructive, exfiltrating, or obfuscated actions. The included npx commands are for accessibility testing tools and are not executed by the skill itself, and even if run manually, they are benign.
No concerns found
How this analysis is madeExamples
Review src/components/Modal.tsx for accessibility: check focus trapping, returning focus on close, ARIA roles, and Escape key handling. Give me the specific fixes.My signup form uses placeholder text instead of labels and shows errors only in red. Audit it against WCAG AA and show me the corrected markup.This custom dropdown is a div with onClick and no keyboard support. Tell me what's broken for a11y and write the keyboard/ARIA version.name: accessibility-auditor description: Reviews UI components for WCAG compliance, ARIA attributes, keyboard navigation, and screen reader support. Use when building frontend components or user requests accessibility improvements. allowed-tools: Read, Grep, Glob
Accessibility Auditor
Audits web applications for accessibility compliance (WCAG 2.1 Level AA) and suggests improvements.
When to Use
- Building or reviewing UI components
- User requests accessibility improvements
- Preparing for accessibility audit
- User mentions "accessibility", "a11y", "WCAG", "screen reader", or "keyboard navigation"
Instructions
1. Semantic HTML Check
Use proper HTML elements:
<!-- Bad -->
<div onclick="submit()">Submit</div>
<!-- Good -->
<button onclick="submit()">Submit</button>
Semantic structure:
<header>,<nav>,<main>,<footer><article>,<section>,<aside><h1>through<h6>in proper hierarchy<button>for actions,<a>for navigation
2. ARIA Attributes
When to use ARIA:
- Custom widgets (tabs, accordions, modals)
- Dynamic content updates
- Complex interactions
- When semantic HTML isn't sufficient
Common ARIA attributes:
<!-- Landmark roles -->
<nav role="navigation" aria-label="Main">
<!-- Widget roles -->
<div role="button" tabindex="0" aria-pressed="false">
<!-- Live regions -->
<div role="alert" aria-live="assertive">Error occurred</div>
<!-- Labels and descriptions -->
<button aria-label="Close dialog">×</button>
<input aria-describedby="password-help" />
First rule of ARIA: Don't use ARIA if semantic HTML works
3. Keyboard Navigation
All interactive elements must be keyboard accessible:
// Add keyboard support to custom elements
<div
role="button"
tabindex="0"
onClick={handleClick}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
handleClick();
}
}}
>
Click me
</div>
Tab order:
- Use
tabindex="0"for custom interactive elements - Avoid
tabindex > 0(creates confusing tab order) - Use
tabindex="-1"for programmatic focus only
Focus management:
- Visible focus indicators
- Trap focus in modals
- Return focus when closing dialogs
- Skip links for main content
4. Alt Text and Images
Informative images:
<img src="chart.png" alt="Sales increased 25% in Q3" />
Decorative images:
<img src="decoration.png" alt="" />
<!-- or -->
<img src="decoration.png" role="presentation" />
Complex images:
<figure>
<img src="complex-chart.png" alt="Quarterly sales chart" />
<figcaption>
Detailed description of the chart data...
</figcaption>
</figure>
5. Color and Contrast
Contrast ratios (WCAG AA):
- Normal text: 4.5:1 minimum
- Large text (18pt+): 3:1 minimum
- UI components: 3:1 minimum
Don't rely on color alone:
<!-- Bad: Color only -->
<span style="color: red;">Error</span>
<!-- Good: Icon + color -->
<span style="color: red;">
<svg aria-hidden="true"><!-- error icon --></svg>
<span class="sr-only">Error: </span>
Invalid input
</span>
6. Forms and Labels
Every input needs a label:
<!-- Explicit label -->
<label for="email">Email</label>
<input id="email" type="email" />
<!-- Implicit label -->
<label>
Email
<input type="email" />
</label>
<!-- aria-label for icon buttons -->
<button aria-label="Search">
<svg><!-- search icon --></svg>
</button>
Error messages:
<input
id="password"
aria-invalid="true"
aria-describedby="password-error"
/>
<div id="password-error" role="alert">
Password must be at least 8 characters
</div>
7. Headings and Document Structure
Proper heading hierarchy:
<h1>Page Title</h1>
<h2>Section 1</h2>
<h3>Subsection 1.1</h3>
<h3>Subsection 1.2</h3>
<h2>Section 2</h2>
Don't skip levels: h1 → h2 → h3 (not h1 → h3)
8. Dynamic Content
Announce updates to screen readers:
<!-- Polite: wait for user to pause -->
<div role="status" aria-live="polite">
5 new messages
</div>
<!-- Assertive: interrupt immediately -->
<div role="alert" aria-live="assertive">
Your session will expire in 1 minute
</div>
Loading states:
<button aria-busy="true" aria-label="Loading...">
<span aria-hidden="true">Loading</span>
</button>
9. Screen Reader Testing
Screen reader only text:
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
Hide decorative elements:
<svg aria-hidden="true"><!-- icon --></svg>
10. Common Issues to Check
Missing:
- [ ] Alt text on images
- [ ] Labels on form inputs
- [ ] Proper heading hierarchy
- [ ] Keyboard focus indicators
- [ ] ARIA labels on icon buttons
Improper:
- [ ] Low contrast text
- [ ] Non-semantic markup (divs as buttons)
- [ ] Missing focus management in modals
- [ ] Keyboard traps
- [ ] Auto-playing media
Testing:
- [ ] Keyboard only navigation
- [ ] Screen reader (NVDA, JAWS, VoiceOver)
- [ ] Color blindness simulation
- [ ] Zoom to 200%
- [ ] Automated tools (axe, Lighthouse)
11. Automated Testing
Tools:
# Lighthouse
npx lighthouse https://example.com --only-categories=accessibility
# axe-core
npm install --save-dev @axe-core/cli
npx axe https://example.com
# pa11y
npm install --save-dev pa11y
npx pa11y https://example.com
In tests:
import { axe } from 'jest-axe';
test('should have no accessibility violations', async () => {
const { container } = render(<MyComponent />);
const results = await axe(container);
expect(results).toHaveNoViolations();
});
12. WCAG 2.1 Level AA Checklist
Perceivable:
- [ ] Text alternatives for non-text content
- [ ] Captions for audio/video
- [ ] Content adaptable (semantic markup)
- [ ] Sufficient color contrast
Operable:
- [ ] Keyboard accessible
- [ ] No keyboard traps
- [ ] Adequate time limits (adjustable)
- [ ] No seizure-inducing flashing
- [ ] Skip navigation links
- [ ] Descriptive page titles
- [ ] Focus order makes sense
- [ ] Link purpose clear from context
Understandable:
- [ ] Language of page specified (
<html lang="en">) - [ ] Predictable navigation
- [ ] Input assistance (labels, instructions, error messages)
Robust:
- [ ] Valid HTML
- [ ] Name, role, value for custom widgets
- [ ] Compatible with assistive technologies
Best Practices
- Build accessibility in from start
- Test with real assistive technologies
- Use semantic HTML first, ARIA second
- Maintain logical document structure
- Provide multiple ways to access content
- Test keyboard navigation thoroughly
- Don't disable zoom
- Use landmarks and headings
Supporting Files
reference/wcag-checklist.md: Full WCAG 2.1 AA checklistreference/aria-patterns.md: Common ARIA widget patterns
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/web-accessibility-auditor-mm5t8cfy' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/web-accessibility-auditor-mm5t8cfy/download' --output '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md.part' && mv '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md.part' '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && test -s '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/accessibility-auditor' && cp -R '.skill-downloads/web-accessibility-auditor-mm5t8cfy' '.claude/skills/accessibility-auditor'Cursor
test -f '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && test -s '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/accessibility-auditor' && cp -R '.skill-downloads/web-accessibility-auditor-mm5t8cfy' '.cursor/skills/accessibility-auditor'Codex
test -f '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && test -s '.skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/accessibility-auditor' && cp -R '.skill-downloads/web-accessibility-auditor-mm5t8cfy' '.agents/skills/accessibility-auditor'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/web-accessibility-auditor-mm5t8cfy'openskills read 'web-accessibility-auditor-mm5t8cfy'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/web-accessibility-auditor-mm5t8cfy/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
ClickHouse Performance Comparison
Testing
Evaluate ClickHouse performance test results, check PR performance changes, compare with history, and assess whether a result is actionable.
Analyze CI Performance Reports
Testing
Analyze CI performance comparison reports for a ClickHouse PR. Cross-references master history to distinguish real regressions from flaky tests.
Santa Method
Testing
Multi-agent adversarial verification with two independent reviewers. Output is checked twice and iteratively fixed until both pass before shipping.