fixing-accessibility

Audit and fix HTML accessibility issues including ARIA labels, keyboard navigation, focus management, color contrast, and form errors. Use when adding interactive controls, forms, dialogs, or reviewing WCAG compliance.

31,392 stars
Complexity: easy

About this skill

The `fixing-accessibility` skill empowers AI agents to perform comprehensive audits and suggest targeted fixes for HTML accessibility concerns. It meticulously examines web content for violations related to ARIA labels, ensuring proper semantic context for assistive technologies; validates keyboard navigation and focus management for users who don't rely on a mouse; assesses color contrast to meet visual accessibility standards; and identifies common form errors that hinder usability. Designed to assist in achieving WCAG compliance, this skill provides line-by-line violation reports, explains their impact, and offers concrete, minimal code-level suggestions for remediation, avoiding large-scale UI rewrites. It's an essential tool for developers aiming to build inclusive web experiences.

Best use case

Ensuring new interactive controls, forms, or dialogs are accessible from inception. Performing pre-deployment audits to guarantee WCAG compliance. Reviewing existing HTML files or UI components for accessibility best practices. Applying accessibility constraints consistently across ongoing UI development projects.

Audit and fix HTML accessibility issues including ARIA labels, keyboard navigation, focus management, color contrast, and form errors. Use when adding interactive controls, forms, dialogs, or reviewing WCAG compliance.

Users can expect a detailed report outlining specific HTML accessibility violations, clear explanations of why each issue matters, and precise, actionable code suggestions for remediation. The outcome is improved WCAG compliance, enhanced usability for all users, particularly those with disabilities, and a more accessible web interface.

Practical example

Example input

Review the `user-profile.html` file for any accessibility issues and provide fixes.

Example output

Reviewing 'user-profile.html' for accessibility issues...

---
Violation 1: Missing ARIA label for search input
Line: `<input type="search" placeholder="Search...">`
Why it matters: Screen reader users may not understand the purpose of this input field without an explicit label.
Concrete fix:
```html
<input type="search" placeholder="Search..." aria-label="Search site">
```

---
Violation 2: Insufficient color contrast for button text
Snippet: `<button style="background-color: #f0f0f0; color: #aaaaaa;">Submit</button>`
Why it matters: Users with low vision or color blindness may struggle to read text against a low-contrast background, failing WCAG 2.1 AA.
Concrete fix:
```html
<button style="background-color: #007bff; color: #ffffff;">Submit</button>
```

---
Violation 3: Form field without associated label
Line: `<input type="text" id="username">`
Why it matters: Assistive technologies cannot programmatically associate the input with its description, making it inaccessible.
Concrete fix:
```html
<label for="username">Username:</label>
<input type="text" id="username">
```

---
Summary: Found 3 accessibility issues. Applying suggested fixes will significantly improve WCAG compliance.

When to use this skill

  • When adding or modifying any UI elements like forms, buttons, modals, or navigation menus.
  • During code review processes to catch accessibility regressions or oversights.
  • Prior to releasing web features or applications to ensure they meet accessibility standards.
  • When an initial accessibility assessment of an existing webpage or component is needed.

When not to use this skill

  • When extensive architectural redesigns are required rather than targeted code fixes.
  • For auditing non-HTML content (e.g., PDFs, native mobile apps, video captions beyond their HTML integration).
  • When the primary goal is a comprehensive manual accessibility review by a human expert.
  • When the desired outcome is a complete rewrite of large sections of UI, as the skill prioritizes minimal, targeted fixes.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/fixing-accessibility/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/fixing-accessibility/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/fixing-accessibility/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fixing-accessibility Compares

Feature / Agentfixing-accessibilityStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Audit and fix HTML accessibility issues including ARIA labels, keyboard navigation, focus management, color contrast, and form errors. Use when adding interactive controls, forms, dialogs, or reviewing WCAG compliance.

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# fixing-accessibility

Fix accessibility issues.

## how to use

- `/fixing-accessibility`
  Apply these constraints to any UI work in this conversation.

- `/fixing-accessibility <file>`
  Review the file against all rules below and report:
  - violations (quote the exact line or snippet)
  - why it matters (one short sentence)
  - a concrete fix (code-level suggestion)

Do not rewrite large parts of the UI. Prefer minimal, targeted fixes.

## When to Use
Reference these guidelines when:
- adding or changing buttons, links, inputs, menus, dialogs, tabs, dropdowns
- building forms, validation, error states, helper text
- implementing keyboard shortcuts or custom interactions
- working on focus states, focus trapping, or modal behavior
- rendering icon-only controls
- adding hover-only interactions or hidden content

## rule categories by priority

| priority | category | impact |
|----------|----------|--------|
| 1 | accessible names | critical |
| 2 | keyboard access | critical |
| 3 | focus and dialogs | critical |
| 4 | semantics | high |
| 5 | forms and errors | high |
| 6 | announcements | medium-high |
| 7 | contrast and states | medium |
| 8 | media and motion | low-medium |
| 9 | tool boundaries | critical |

## quick reference

### 1. accessible names (critical)

- every interactive control must have an accessible name
- icon-only buttons must have aria-label or aria-labelledby
- every input, select, and textarea must be labeled
- links must have meaningful text (no “click here”)
- decorative icons must be aria-hidden

### 2. keyboard access (critical)

- do not use div or span as buttons without full keyboard support
- all interactive elements must be reachable by Tab
- focus must be visible for keyboard users
- do not use tabindex greater than 0
- Escape must close dialogs or overlays when applicable

### 3. focus and dialogs (critical)

- modals must trap focus while open
- restore focus to the trigger on close
- set initial focus inside dialogs
- opening a dialog should not scroll the page unexpectedly

### 4. semantics (high)

- prefer native elements (button, a, input) over role-based hacks
- if a role is used, required aria attributes must be present
- lists must use ul or ol with li
- do not skip heading levels
- tables must use th for headers when applicable

### 5. forms and errors (high)

- errors must be linked to fields using aria-describedby
- required fields must be announced
- invalid fields must set aria-invalid
- helper text must be associated with inputs
- disabled submit actions must explain why

### 6. announcements (medium-high)

- critical form errors should use aria-live
- loading states should use aria-busy or status text
- toasts must not be the only way to convey critical information
- expandable controls must use aria-expanded and aria-controls

### 7. contrast and states (medium)

- ensure sufficient contrast for text and icons
- hover-only interactions must have keyboard equivalents
- disabled states must not rely on color alone
- do not remove focus outlines without a visible replacement

### 8. media and motion (low-medium)

- images must have correct alt text (meaningful or empty)
- videos with speech should provide captions when relevant
- respect prefers-reduced-motion for non-essential motion
- avoid autoplaying media with sound

### 9. tool boundaries (critical)

- prefer minimal changes, do not refactor unrelated code
- do not add aria when native semantics already solve the problem
- do not migrate UI libraries unless requested

## common fixes

```html
<!-- icon-only button: add aria-label -->
<!-- before --> <button><svg>...</svg></button>
<!-- after -->  <button aria-label="Close"><svg aria-hidden="true">...</svg></button>

<!-- div as button: use native element -->
<!-- before --> <div onclick="save()">Save</div>
<!-- after -->  <button onclick="save()">Save</button>

<!-- form error: link with aria-describedby -->
<!-- before --> <input id="email" /> <span>Invalid email</span>
<!-- after -->  <input id="email" aria-describedby="email-err" aria-invalid="true" /> <span id="email-err">Invalid email</span>
```

## review guidance

- fix critical issues first (names, keyboard, focus, tool boundaries)
- prefer native HTML before adding aria
- quote the exact snippet, state the failure, propose a small fix
- for complex widgets (menu, dialog, combobox), prefer established accessible primitives over custom behavior

Related Skills

fixing-motion-performance

31355
from sickn33/antigravity-awesome-skills

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

Performance OptimizationClaude

fixing-metadata

31355
from sickn33/antigravity-awesome-skills

Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding or reviewing SEO and social metadata.

SEO & Web OptimizationClaude

nft-standards

31392
from sickn33/antigravity-awesome-skills

Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.

Web3 & BlockchainClaude

nextjs-app-router-patterns

31392
from sickn33/antigravity-awesome-skills

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Web FrameworksClaude

new-rails-project

31392
from sickn33/antigravity-awesome-skills

Create a new Rails project

Code GenerationClaude

networkx

31392
from sickn33/antigravity-awesome-skills

NetworkX is a Python package for creating, manipulating, and analyzing complex networks and graphs.

Network AnalysisClaude

network-engineer

31392
from sickn33/antigravity-awesome-skills

Expert network engineer specializing in modern cloud networking, security architectures, and performance optimization.

Network EngineeringClaude

nestjs-expert

31392
from sickn33/antigravity-awesome-skills

You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.

Frameworks & LibrariesClaude

nerdzao-elite

31392
from sickn33/antigravity-awesome-skills

Senior Elite Software Engineer (15+) and Senior Product Designer. Full workflow with planning, architecture, TDD, clean code, and pixel-perfect UX validation.

Software DevelopmentClaude

nerdzao-elite-gemini-high

31392
from sickn33/antigravity-awesome-skills

Modo Elite Coder + UX Pixel-Perfect otimizado especificamente para Gemini 3.1 Pro High. Workflow completo com foco em qualidade máxima e eficiência de tokens.

Software DevelopmentClaudeGemini

native-data-fetching

31392
from sickn33/antigravity-awesome-skills

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching, offline support, and Expo Router data loaders (useLoaderData).

API IntegrationClaude

n8n-workflow-patterns

31392
from sickn33/antigravity-awesome-skills

Proven architectural patterns for building n8n workflows.

Workflow AutomationClaude