# Wcag keyboard navigation

> Wcag keyboard navigation is an open-source agent skill for developer tools. Checks and tests keyboard operability, focus order and focus visibility against WCAG 2.2. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/testland/qa/tree/main/plugins/qa-accessibility/skills/wcag-keyboard-navigation
- **Repository:** https://github.com/testland/qa
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** wcag-keyboard-navigation
- **Collection:** https://github.com/testland/qa
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a reference for verifying keyboard navigation conformance under WCAG 2.2, covering the Operable success criteria for keyboard access, keyboard traps, character-key shortcuts, focus order, visible focus and focus not being obscured. It walks through per-component checks for forms, modal dialogs, menus and tabs, along with a list of common anti-patterns and their fixes.

For modal and popover work it documents the focus-trap pattern: moving focus on open, keeping Tab cycling inside the dialog, closing on Escape and restoring focus to the trigger. A separate reference file covers the intentional trap used by modals, including a native dialog approach and test scripts, so it is not flagged as a violation.

The skill includes Playwright test examples written in TypeScript. It is meant to be used alongside scanner tools such as axe-core and pa11y, and it points to related skills for color contrast and ARIA authoring patterns.

## When your agent uses it

> Use when building or reviewing keyboard-only support or a modal, drawer or popover's focus handling: WCAG 2.2 keyboard access, no keyboard traps, shortcuts, focus order, visible and unobscured focus, with test scripts and the focus-trap pattern (focus on open, Escape, restore).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/testland/qa/tree/HEAD/plugins/qa-accessibility/skills/wcag-keyboard-navigation)
- [License: MIT](https://github.com/testland/qa/tree/HEAD/plugins/qa-accessibility/skills/wcag-keyboard-navigation)

## Features

- **Keyboard operability checks:** Covers which elements are natively keyboard-accessible and how custom widgets should respond to Enter and Space.
- **Focus trap pattern:** Describes focus on open, cycling inside modals, Escape handling and focus restoration.
- **Focus visibility guidance:** Explains focus indicator styling, contrast expectations and avoiding removed outlines.
- **Focus not obscured rules:** Addresses sticky headers, banners and overlays that hide focused elements under WCAG 2.2.
- **Character shortcut safeguards:** Lists off, remap and focus-only options for single-key shortcuts.
- **Per-component test patterns:** Gives step lists for forms, dialogs, menus and tabs.
- **Playwright test examples:** Includes TypeScript test scripts for keyboard interaction assertions.

## Good for

- Review a modal dialog for focus trapping and Escape handling
- Write keyboard navigation tests for a new form
- Check that a custom dropdown menu works with arrow keys
- Audit a site for invisible focus indicators
- Find sticky headers that cover focused inputs

## Install

### Claude Code

This skill ships in the `qa-accessibility` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add testland/qa
/plugin install qa-accessibility@testland-qa
```

Or copy only this skill to `~/.claude/skills/wcag-keyboard-navigation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/wcag-keyboard-navigation &&
cp -R "$tmp/plugins/qa-accessibility/skills/wcag-keyboard-navigation" ~/.claude/skills/wcag-keyboard-navigation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/wcag-keyboard-navigation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/wcag-keyboard-navigation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/wcag-keyboard-navigation &&
cp -R "$tmp/plugins/qa-accessibility/skills/wcag-keyboard-navigation" ~/.agents/skills/wcag-keyboard-navigation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/wcag-keyboard-navigation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/wcag-keyboard-navigation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/wcag-keyboard-navigation &&
cp -R "$tmp/plugins/qa-accessibility/skills/wcag-keyboard-navigation" ~/.cursor/skills/wcag-keyboard-navigation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/wcag-keyboard-navigation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/testland/qa.git --path plugins/qa-accessibility/skills/wcag-keyboard-navigation
```

Or copy the folder to `~/.gemini/skills/wcag-keyboard-navigation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/wcag-keyboard-navigation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/wcag-keyboard-navigation &&
cp -R "$tmp/plugins/qa-accessibility/skills/wcag-keyboard-navigation" ~/.copilot/skills/wcag-keyboard-navigation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/wcag-keyboard-navigation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/testland/qa.git
```

Then copy `qa/plugins/qa-accessibility/skills/wcag-keyboard-navigation` into your agent's skills folder as `wcag-keyboard-navigation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which WCAG criteria does Wcag keyboard navigation cover?

It covers SC 2.1.1 Keyboard, 2.1.2 No Keyboard Trap, 2.1.4 Character Key Shortcuts, 2.4.3 Focus Order, 2.4.7 Focus Visible, and 2.4.11 and 2.4.12 Focus Not Obscured.

### Does Wcag keyboard navigation include runnable tests?

It includes a Playwright test script in TypeScript as an example for keyboard operability, and per-component test steps for forms, dialogs, menus and tabs.

### Does Wcag keyboard navigation run scanners or scripts itself?

No scripts are included. It is a reference catalog that points to axe-a11y for automated scanning.

### How do I install Wcag keyboard navigation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/wcag-keyboard-navigation to use it in all your projects, or to .claude/skills/wcag-keyboard-navigation in one project. Or install the qa-accessibility plugin, which includes it: /plugin marketplace add testland/qa, then /plugin install qa-accessibility@testland-qa.

### Does Wcag keyboard navigation run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Wcag keyboard navigation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Wcag keyboard navigation?

The closest alternatives to Wcag keyboard navigation are Accessibility review, Vue a11y, Accessibility, Accessibility engineering and Aria authoring patterns.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Accessibility review](https://ai-powered.com/skills/accessibility-review): Accessibility review is an open-source agent skill for developer tools.
- [Vue a11y](https://ai-powered.com/skills/vue-a11y): Vue a11y is an open-source agent skill for developer tools.
- [Accessibility](https://ai-powered.com/skills/accessibility): Accessibility is an open-source agent skill for developer tools.
- [Accessibility engineering](https://ai-powered.com/skills/accessibility-engineering): Accessibility engineering is an open-source agent skill for developer tools.
- [Aria authoring patterns](https://ai-powered.com/skills/aria-authoring-patterns): Aria authoring patterns is an open-source agent skill for developer tools.
- [Frontend a11y](https://ai-powered.com/skills/frontend-a11y): Frontend a11y is an open-source agent skill for developer tools.
- [A11y audit](https://ai-powered.com/skills/a11y-audit): A11y audit is an open-source agent skill for developer tools.
- [Antislop human](https://ai-powered.com/skills/antislop-human): Antislop human is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/wcag-keyboard-navigation
