A11y

From aladicf/better-web-ui · View interactive version

A11y is an AI agent skill from the GitHub repository aladicf/better-web-ui. Systematically audit and remediate accessibility issues in UI, focusing on keyboard navigation, screen reader support, color contrast, semantic HTML, ARIA usage, and motion sensitivity. Use when the user wants to improve accessibility, make a component accessible, fix WCAG violations, add keyboard s

How to use this skill

Skill file

Systematically improve accessibility so the interface works for users with disabilities, temporary impairments, and assistive technology.

This skill focuses on remediation and implementation, not just scoring. It complements audit (which measures across dimensions) and harden (which handles edge cases broadly). Use this when accessibility is the primary goal.

MANDATORY PREPARATION

Users start this workflow with /a11y. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.

Consult the accessibility testing reference for automated tool integration (axe, WAVE, Pa11y) and CI workflow guidance.

Consult the colorblindness UX reference when color is carrying meaning in states, charts, or validation.

Consult the component accessibility reference for keyboard support, focus handling, skip links, and hidden content patterns.

Consult the interaction design reference for focus, loading, transitions, and feedback states.

Consult the semantic color reference when checking whether color communicates state or just decoration.

Consult the responsive design reference when accessibility needs to adapt across small screens, touch contexts, or zoom levels.

Assess Accessibility

Identify what is broken and who it affects:

  1. Run automated checks first:
  1. Test keyboard navigation manually:
  1. Test with a screen reader:
  1. Check visual accessibility:
  1. Check motion and animation:

Remediate by Area

Semantic HTML

Use the right element for the job. Native HTML elements come with built-in accessibility.

Fixes:

Anti-patterns to remove:

Keyboard Navigation

Every interactive element must be reachable and operable without a mouse.

Fixes:

Focus Management

Focus must be intentional, visible, and predictable.

Fixes:

ARIA

Use ARIA only when native HTML is insufficient. ARIA does not change behavior, only semantics.

When to use ARIA:

Common ARIA fixes:

ARIA anti-patterns:

Color and Contrast

Ensure information is perceivable regardless of visual ability.

Fixes:

Screen Reader Support

Ensure assistive technology users receive equivalent information.

Fixes:

Motion and Animation

Respect users who cannot tolerate or do not want motion.

Fixes:

Verify Improvements

After remediation, verify that fixes work:

Practical Checklist

NEVER:

Remember: accessible design is usable design. Fixing accessibility issues usually improves the experience for everyone.

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.