Agent skill

Web Accessibility Skill: WCAG 2.2 Audits for AI Agents

The web accessibility skill gives an AI coding agent a WCAG 2.2 audit workflow with Lighthouse evidence, code patterns for keyboard, contrast and ARIA, and a ranked list of common issues.

Install
git clone https://github.com/addyosmani/web-quality-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the web accessibility skill?

The web accessibility skill is a SKILL.md in Addy Osmani's web-quality-skills repository. It makes an AI coding agent audit a rendered page with Lighthouse and the accessibility tree, then fix source code against WCAG 2.2 using written patterns for text alternatives, contrast, keyboard use, forms and ARIA. It also says a score of 100 is not conformance.

The skill is the accessibility folder of web-quality-skills, an unofficial collection of Agent Skills for Lighthouse-driven work on web projects. It targets WCAG 2.2 and the Lighthouse accessibility audits, and the README describes the collection as stack-agnostic.

Its workflow is evidence first. The agent runs a live Lighthouse accessibility audit when it can, uses failed nodes to find the component, inspects the rendered accessibility tree, fixes the source and re-runs the same audit.

What changes in your agent's output

  • Icon buttons get an accessible name through aria-label or visually hidden text, and decorative images get an empty alt.
  • Focus outlines are never removed. The skill shows :focus-visible with a 2px outline and 3:1 contrast against the background.
  • Click-only div elements are replaced by a native button, and the skill warns against adding key handlers to a native button.
  • Form errors carry more than color: an icon, text, aria-invalid and aria-describedby.
  • Sticky headers get scroll-margin so a focused element is not hidden, which is the new WCAG 2.2 criterion 2.4.11.

What the skill covers

Sections follow the four WCAG principles: perceivable, operable, understandable and reliable. The 2.2 additions are marked, including target size at 24 by 24 CSS pixels, dragging alternatives, consistent help, redundant entry and accessible authentication. Two reference files hold the WCAG criteria and reusable code patterns.

Who the web accessibility skill is for

Best for

  • Teams that need a repeatable a11y pass on pages an agent writes or edits.
  • Projects that want a prioritized fix list: critical, serious and moderate issues are listed in order.
  • Pairing with a rules-style skill such as fixing-accessibility or web-design-guidelines.

Not for

  • Legal sign-off. The skill states that automated tools find only a subset of barriers and a Lighthouse score of 100 is not WCAG conformance.
  • Visual direction or copy. It audits and repairs, it does not design.
  • Replacing a manual screen reader pass. The checklist still asks for VoiceOver, NVDA or TalkBack testing.

Use it with UiChemy

Pages built with UiChemy Composer or AI to WordPress end up as editable markup inside Elementor or Gutenberg, which is the code an accessibility audit reads. Run this skill on the published result and fix what it finds. Click Get Started on uichemy.com.