hoodini avatar

Web Accessibility

Here's a solid reference for implementing WCAG 2.1 accessibility patterns. You get working examples for common ARIA patterns like modals and navigation menus, a focus trap implementation that handles Tab and Escape keys properly, and form validation with aria-invalid and role="alert". The color contrast section includes actual functions to calculate luminance ratios, which is helpful when you need to programmatically check if colors meet AA standards. It also shows you how to set up axe-core for automated testing. The examples are React/TypeScript heavy, so if you're working in vanilla JS or another framework you'll need to adapt the patterns, but the ARIA attributes and keyboard handling logic translate directly.

skills.sh installs
459
GitHub stars
296
last updated
Aug 21, 2026

Install

$ npx -y skills add hoodini/ai-agents-skills --skill web-accessibility --agent claude-code

Installs into .claude/skills of the current project.

Files

Web Accessibility (WCAG 2.1)

Build accessible web applications that work for everyone.

ARIA Patterns

Button

<button
  type="button"
  aria-pressed={isPressed}
  aria-disabled={isDisabled}
  onClick={handleClick}
>
  Toggle Feature
</button>

Modal Dialog

<div
  role="dialog"
  aria-modal="true"
  aria-labelledby="modal-title"
  aria-describedby="modal-description"
>
  <h2 id="modal-title">Confirm Action</h2>
  <p id="modal-description">Are you sure you want to proceed?</p>
  <button onClick={onConfirm}>Confirm</button>
  <button onClick={onCancel}>Cancel</button>
</div>

Navigation Menu

<nav aria-label="Main navigation">
  <ul role="menubar">
    <li role="none">
      <a role="menuitem" href="/home">Home</a>
    </li>
    <li role="none">
      <button
        role="menuitem"
        aria-haspopup="true"
        aria-expanded={isOpen}
      >
        Products
      </button>
      {isOpen && (
        <ul role="menu" aria-label="Products submenu">
          <li role="none">
            <a role="menuitem" href="/products/new">New</a>
          </li>
        </ul>
      )}
    </li>
  </ul>
</nav>

Keyboard Navigation

Sponsors

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
DevOps & CI/CD, AI & Agent Building, Design & UI/UX, CLI & Terminal
First seen
Jun 3, 2026

More from hoodini/ai-agents-skills

All 37
1aj-geddes avatarrunbook-creationaj-geddes/useful-ai-promptsCreate operational runbooks, playbooks, standard operating procedures (SOPs), and incident response guides. Use when documenting operational procedures, on-call458skills.sh installs
2bobmatnyc avatargolang-testing-strategiesbobmatnyc/claude-mpm-skillsComprehensive Go testing strategies including table-driven tests, testify assertions, gomock interface mocking, benchmark testing, and CI/CD integration458skills.sh installs
3martinholovsky avatarcelery-expertmartinholovsky/claude-skills-generatorExpert Celery distributed task queue engineer specializing in async task processing, workflow orchestration, broker configuration (Redis/RabbitMQ), Celery Beat 458skills.sh installs
4openclaudia avatarproduct-marketingopenclaudia/openclaudia-skillsBuild product marketing strategy including positioning, messaging, and go-to-market. Use when the user says "positioning", "messaging framework", "go-to-market"456skills.sh installs
5onewave-ai avatarcontact-hunteronewave-ai/claude-skillsSearch and extract contact information for people or companies including names, phone numbers, emails, job titles, and LinkedIn profiles. Aggregates data from m455skills.sh installs
6useai-pro avatarnetwork-watcheruseai-pro/openclaw-skills-securityAudit and monitor network requests made by OpenClaw skills. Detects data exfiltration, unauthorized API calls, and suspicious outbound connections.455skills.sh installs