Skip to main content
skill CX Codex

frontend-accessibility — Claude Code skill: how to install and use

This skill adds WCAG guidelines to your coding workflow. It instructs agents to write semantic HTML, configure ARIA attributes, and support keyboard navigation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill frontend-accessibility -a claude-code
Open on GitHub

What frontend-accessibility does

The skill instructs the coding agent to apply WCAG accessibility criteria to web components. Instead of generic div structures, the agent selects semantic HTML tags like nav, main, or article. It also attaches appropriate ARIA roles so screen readers interpret the interface accurately.

Five standalone documents live in the references/ directory. They cover semantic HTML with ARIA, keyboard navigation routines, visual contrast, screen reader announcements, and testing procedures. Each guide enforces clean, well-documented code.

The rules explicitly prohibit skipping validation and ignoring error handling. You cannot hard-code configuration values either. Because of these constraints, the assistant must verify accessibility before marking a task complete.

What it helps with

  • structure interfaces with semantic HTML and ARIA attributes
  • implement keyboard navigation and focus management
  • fix color contrast and visual accessibility issues
  • configure live announcements for screen readers
  • test frontend components against WCAG requirements

Example prompts for the agent

  • Review this navigation bar for WCAG compliance and add ARIA attributes
  • Enable keyboard navigation and focus trapping for the dialog modal
  • Adjust color contrast for buttons and add hidden screen reader text

How to install frontend-accessibility

1Skills CLI (Vercel)

npx skills add aj-geddes/useful-ai-prompts --skill frontend-accessibility -a claude-code

2Manually: put the files in place

~/.claude/skills/frontend-accessibility/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/frontend-accessibility/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about frontend-accessibility

How do I install frontend-accessibility in Claude Code?

Run npx skills add aj-geddes/useful-ai-prompts --skill frontend-accessibility -a claude-code in your terminal. You can also place the skill file directly at ~/.claude/skills/frontend-accessibility/SKILL.md.

What does the frontend-accessibility skill do?

It provides instructions for building web interfaces that meet WCAG standards. The agent writes semantic markup, adds ARIA attributes, ensures keyboard navigation, and verifies visual contrast.

What reference guides are included with this skill?

The skill references dedicated files for semantic HTML and ARIA, keyboard navigation, color contrast, screen reader announcements, and accessibility testing.

Source text

SKILL.md · MIT
---
name: frontend-accessibility
description: >
  Implement WCAG compliance using semantic HTML, ARIA, keyboard navigation, and
  screen reader support. Use when building inclusive applications for all users.
---

# Frontend Accessibility

## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)

## Overview

Build accessible web applications following WCAG guidelines with semantic HTML, ARIA attributes, keyboard navigation, and screen reader support for inclusive user experiences.

## When to Use

- Compliance with accessibility standards
- Inclusive design requirements
- Screen reader support
- Keyboard navigation
- Color contrast issues

## Quick Start

Minimal working example:

```html
<!-- Good semantic structure -->
<nav aria-label="Main navigation">
  <ul>
    <li><a href="/">Home</a></li>
    <li><a href="/about">About</a></li>
    <li><a href="/contact">Contact</a></li>
  </ul>
</nav>

<main>
  <article>
    <header>
      <h1>Article Title</h1>
      <time datetime="2024-01-15">January 15, 2024</time>
    </header>
    <p>Article content...</p>
  </article>

  <aside aria-label="Related articles">
    <h2>Related Articles</h2>
    <ul>
      <li><a href="/article1">Article 1</a></li>
      <li><a href="/article2">Article 2</a></li>
    </ul>
  </aside>
// ... (see reference guides for full implementation)
```

## Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents |
|---|---|
| [Semantic HTML and ARIA](references/semantic-html-and-aria.md) | Semantic HTML and ARIA |
| [Keyboard Navigation](references/keyboard-navigation.md) | Keyboard Navigation |
| [Color Contrast and Visual Accessibility](references/color-contrast-and-visual-accessibility.md) | Color Contrast and Visual Accessibility |
| [Screen Reader Announcements](references/screen-reader-announcements.md) | Screen Reader Announcements |
| [Accessibility Testing](references/accessibility-testing.md) | Accessibility Testing |

## Best Practices

### ✅ DO

- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying

### ❌ DON'T

- Skip testing or validation
- Ignore error handling
- Hard-code configuration values

© aj-geddes · MIT · aj-geddes/useful-ai-prompts

Similar skills

Everything for Frontend and UI →

From the same set143

refactor-legacy-code Guides systematic legacy code refactoring without breaking features. Built for paying down technical debt and replacing deprecated patterns. CX Codex +1 603installs performance-testing A skill that walks your agent through designing load tests and benchmarks: response times, throughput, resource use. CX Codex +1 603installs competitor-analysis A skill that walks the agent through competitor research: direct and indirect players, a comparison matrix, SWOT, and a findings report. Useful before pricing or positioning calls. CX Codex +1 603installs security-testing Flags security flaws in code and dependencies, tests against OWASP Top 10 risks, and guides DAST scanning via OWASP ZAP. CX Codex +1 601installs design-patterns-implementation Guides the agent toward the right pattern for an architectural problem: Singleton, Factory, Observer, Strategy and more. Useful during refactoring or code review. CX Codex +1 595installs unit-testing-framework A skill that gives the agent rules for writing unit tests: Arrange-Act-Assert structure, mocks, edge cases. Useful when a function or class needs coverage. CX Codex +1 593installs database-schema-design Designs relational database schemas with normalization, constraints, and table relationships. Built for modeling data in PostgreSQL and MySQL. CX Codex +1 591installs Data Cleaning Pipeline Generates structured Python data preprocessing routines to clean missing values, strip invalid text, handle outliers, and validate data quality. CX Codex +1 589installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor