Agent skill

Frontend A11y Skill: Accessible React and Next.js Patterns

Frontend a11y is an ECC skill that teaches an AI coding agent accessible React and Next.js patterns: form labels, ARIA, keyboard navigation, focus management and reduced motion.

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

What is the frontend a11y skill?

Frontend a11y is a skill in the affaan-m/ECC repo with accessibility patterns for React and Next.js. It covers form labels and error links, semantic HTML, ARIA usage, keyboard navigation, focus restoration in modals, image alt text and reduced motion, and ends with a pre-review checklist.

Frontend a11y is a SKILL.md in the ECC repository that collects the accessibility issues most often flagged in code review for React and Next.js. Each pattern shows a bad snippet and a good one.

Its triggers include building forms, modals, dropdowns, tooltips and tabs, fixing accessibility lint findings, and wiring keyboard navigation. It mentions CodeRabbit and ESLint a11y feedback as typical sources.

What changes in your agent's output

  • Every input gets a label tied by htmlFor and id, and error text is linked with aria-describedby and aria-invalid.
  • Clickable div and span elements become buttons or anchors, so keyboard and screen reader users get native behavior.
  • ARIA is added only when native HTML is not enough, and icon-only buttons get an accessible name.
  • Modals save and restore focus, and dynamic updates use aria-live regions.
  • Animation checks the prefers-reduced-motion setting.

Who it is for

Best for

  • React and Next.js teams clearing accessibility comments from code review or lint.
  • Custom widgets such as dropdowns, accordions and tabs that need keyboard support.
  • Anyone who wants a short checklist to run before submitting an interactive component.

Not for

  • Full WCAG audits with scoring, which need a dedicated audit skill and real assistive technology.
  • Frameworks other than React and Next.js, since every example is TSX.
  • A complete focus trap. The skill itself points to a library for Tab cycling.

Use it with UiChemy

These patterns apply to React code you write. UiChemy builds WordPress pages instead, so check accessibility inside the generated page separately. Click Get Started on uichemy.com to try Composer.