New to Claude Skills? Learn how to install them →

Fibelick on GitHub

Fixing Accessibility

Free

Audit and enhance HTML accessibility effortlessly.

by ibelick7.1k stars on ibelick/ui-skills
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Fixing Accessibility does

The Fixing Accessibility skill provides developers and designers with a structured approach to identify and resolve common accessibility issues in HTML. It focuses on critical elements such as ARIA labels, keyboard navigation, focus management, and color contrast, ensuring that web applications are usable for individuals with disabilities. By utilizing this skill, users can ensure compliance with WCAG standards while enhancing the overall user experience for all users.

To use the skill, simply invoke the command /fixing-accessibility to apply accessibility constraints to your UI work. If you have a specific file, you can review it by using /fixing-accessibility <file>, which will analyze the file for accessibility violations. The skill will provide detailed feedback, including the exact line of code that violates accessibility standards, a brief explanation of why it matters, and a concrete code-level fix suggestion. This targeted approach helps maintain the integrity of the UI while addressing accessibility concerns.

This skill is particularly useful when adding or modifying interactive controls, forms, and dialogs. It provides guidance on implementing keyboard shortcuts, managing focus states, and ensuring that all interactive elements are accessible. By following the structured rules outlined in the skill, users can prioritize critical accessibility issues and make informed decisions about their UI design and development practices.

Overall, Fixing Accessibility is an essential tool for any developer or designer looking to create inclusive web applications that adhere to accessibility standards. With its clear guidelines and actionable insights, it empowers users to make meaningful improvements to their projects.

When to use it

Use this skill when adding or modifying interactive elements, forms, and dialogs to ensure they are accessible to all users.

When not to use it

This skill may not be suitable for projects that do not require accessibility considerations or for static content that does not involve user interaction.

What you can build with it

Reviewing a Form

Use the skill to audit a form for accessibility issues, ensuring all inputs have proper labels and error messages.

Adding Interactive Controls

When adding buttons or links, apply the skill to ensure they have accessible names and keyboard navigation support.

Auditing Existing UI Components

Run the skill on existing UI components to identify and fix any accessibility violations before deployment.

How to install Fixing Accessibility

View source

1. Install with the skills CLI

npx skills add ibelick/ui-skills/fixing-accessibility --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by ibelick

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 apply

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

prioritycategoryimpact
1accessible namescritical
2keyboard accesscritical
3focus and dialogscritical
4semanticshigh
5forms and errorshigh
6announcementsmedium-high
7contrast and statesmedium
8media and motionlow-medium
9tool boundariescritical

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

<!-- 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

Frequently asked questions about Fixing Accessibility

Similar skills