.claude/skills/ts-accessibility-auditor/SKILL.md
Audit web pages and components for WCAG 2.2 accessibility compliance. Use when a user asks to check accessibility, find a11y issues, audit for WCAG compliance, fix screen reader problems, check color contrast, ensure keyboard navigation works, or prepare for accessibility regulations like the European Accessibility Act or ADA.
npx skillsauth add eliferjunior/Claude accessibility-auditorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audits web pages and UI components against WCAG 2.2 (Level AA) success criteria. Identifies violations in color contrast, keyboard navigation, ARIA usage, semantic HTML, form labeling, focus management, and dynamic content updates. Produces actionable fixes with exact code changes.
When asked to audit accessibility:
Determine the scope:
Check semantic structure (WCAG 1.3.1, 1.3.2):
<nav>, <main>, <header>, <footer>, <aside><ul>/<ol>/<dl>, not styled <div>s<th> with scope, and <caption> where appropriateCheck text alternatives (WCAG 1.1.1):
<img> have meaningful alt text (not "image", "photo", or filename)alt="" or role="presentation"<title> or aria-labelCheck color and contrast (WCAG 1.4.3, 1.4.11):
Check keyboard accessibility (WCAG 2.1.1, 2.1.2, 2.4.7):
outline: none without replacement)Check ARIA usage (WCAG 4.1.2):
aria-expanded on toggles)aria-live regions for dynamic content updatesrole="button" on <button>)aria-label/aria-labelledby on elements without visible textCheck forms (WCAG 1.3.5, 3.3.1, 3.3.2):
<label> elements (not just placeholder text)autocomplete attributes on common fields (name, email, address)Output format for each violation:
Input:
Audit this React login form for accessibility:
<form onSubmit={handleLogin}>
<input type="email" placeholder="Email" value={email} onChange={setEmail} />
<input type="password" placeholder="Password" value={pw} onChange={setPw} />
<div className="error" style={{color: 'red'}}>{error}</div>
<div className="submit-btn" onClick={handleLogin}>Log In</div>
</form>
Output:
Accessibility Audit: Login Form
=================================
6 violations found (3 Critical, 2 Major, 1 Minor)
CRITICAL [WCAG 1.3.5] — Missing autocomplete attributes
Elements: email input, password input
Fix: Add autocomplete="email" and autocomplete="current-password"
Affected: Users relying on autofill, password managers, and assistive tech
CRITICAL [WCAG 3.3.2] — Inputs have no accessible labels
Elements: both <input> fields
Problem: Placeholder text disappears on focus and is not a label.
Fix: Add <label htmlFor="email">Email</label> before each input,
or use aria-label="Email address" as minimum.
CRITICAL [WCAG 2.1.1] — Submit button is not keyboard accessible
Element: <div className="submit-btn">
Problem: <div> is not focusable and onClick doesn't fire on Enter key.
Fix: Replace with <button type="submit">Log In</button>
MAJOR [WCAG 3.3.1] — Error message not associated with input
Element: <div className="error">
Fix: Add role="alert" and aria-live="polite" to announce errors.
Associate with input: aria-describedby="login-error" on the relevant input.
MAJOR [WCAG 1.4.1] — Error indicated by color alone
Element: error div with color: red
Fix: Add an icon (⚠) or prefix "Error:" to the text.
MINOR [WCAG 1.4.3] — Verify error text contrast
Red (#FF0000) on white (#FFFFFF) = 4.0:1 — fails for normal text.
Fix: Use #D32F2F (darker red) for 5.9:1 ratio.
Input:
Check keyboard accessibility of our dropdown menu component in src/components/Dropdown.tsx
Output:
Keyboard Audit: Dropdown Component
====================================
3 violations found.
CRITICAL [WCAG 2.1.2] — Keyboard trap in open dropdown
When dropdown is open, Tab moves focus into the list but pressing Escape
does nothing. User is trapped.
Fix: Add onKeyDown handler:
if (e.key === 'Escape') { setOpen(false); triggerRef.current.focus(); }
MAJOR [WCAG 2.1.1] — Arrow key navigation missing
Dropdown items are only reachable via Tab. Standard pattern requires
ArrowDown/ArrowUp to move between options.
Fix: Add roving tabIndex pattern — active item gets tabIndex={0},
others get tabIndex={-1}. ArrowDown moves focus to next item.
MAJOR [WCAG 4.1.2] — Missing ARIA attributes
The trigger button lacks aria-expanded and aria-haspopup.
Fix: <button aria-expanded={isOpen} aria-haspopup="listbox">
The list needs role="listbox" and items need role="option".
tabIndex values greater than 0 as an anti-pattern (disrupts natural tab order).development
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.