Fixing accessibility

From kursku/skills · View interactive version

Fixing accessibility is an AI agent skill from the GitHub repository kursku/skills. 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.

How to use this skill

Skill file

fixing-accessibility

Fix accessibility issues.

how to use

Apply these constraints to any UI work in this conversation.

Review the file against all rules below and report:

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

when to apply

Reference these guidelines when:

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)

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)

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.