Skip to content
Skill

Wcag keyboard navigation

Checks and tests keyboard operability, focus order and focus visibility against WCAG 2.2

Wcag keyboard navigation is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
18
Last commit
License
MIT
Listing updated

Similar skills

About Wcag keyboard navigation

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).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 13 files (88 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Wcag keyboard navigation 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.

More from testland/qa

  1. Builds a CI ratchet that fails PRs only on new accessibility violations

    • Open source
    • 18 GitHub stars
    • Developer tools
  2. Guides an agent through W3C ARIA Authoring Practices patterns for custom widgets

    • Open source
    • 18 GitHub stars
    • Developer tools
  3. Adds automated axe-core accessibility scans to Playwright, Cypress and CI pipelines

    • Open source
    • 18 GitHub stars
    • Developer tools
  4. Builds manual screen-reader test scripts and signed sign-off reports for a feature

    • Open source
    • 18 GitHub stars
    • Developer tools
  5. Checks color pairs and design tokens against WCAG contrast ratios for text and UI

    • Open source
    • 18 GitHub stars
    • Design and media
  6. Aggregates multi-page accessibility scans into a WCAG 2.2 conformance report

    • Open source
    • 18 GitHub stars
    • Documentation review