Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Keyboard Navigation and Focus Order Audit

    by Saizul Amin

    1

    Audit and fix keyboard accessibility, focus indicators, and navigation traps to meet WCAG standards.

    $4

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Keyboard Navigation and Focus Order Audit

    Keyboard Navigation and Focus Order Audit

    Example session with this skill installed

    Run the Keyboard Navigation and Focus Order Audit skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the keyboard navigation

    Here is what the Keyboard Navigation and Focus Order Audit skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    keyboard-and-focus: -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/accessibility-a11y-skills/tests/fixtures/html/focus_bad.html - 3 high, 6 medium, 4 low, 3 info
      HIGH   css.focus_outline_removed [WCAG 2.4.7] (line 2 inline <style>: *:focus): focus outline removed with no visible replacement
             fix: keep the outline, or replace it in :focus-visible with outline: 3px solid <colour with 3:1 contrast>
      HIGH   link.fragment_target_missing [WCAG 2.4.1] (line 18 a): in-page link #content points at no element
             fix: add id="content" to the target (e.g. <main id="content">)
      HIGH   click.not_keyboard_accessible [WCAG 2.1.1, 4.1.2] (line 22 div.card): <div> has a click handler (onclick) but no role or tabindex: mouse-only
             fix: use <button type='button'> (or <a href> for navigation); a div needs role, tabindex=0 and Enter/Space handlers
      MEDIUM click.no_role [WCAG 4.1.2] (line 23 div.card): focusable <div> with a click handler has no role
             fix: add role='button' and Enter/Space key handling, or better, use <button>
      MEDIUM tabindex.removed_from_order [WCAG 2.1.1] (line 25 a): tabindex=-1 removes a visible a from the keyboard order
             fix: remove tabindex unless it is part of a roving-tabindex widget or is also hidden
      MEDIUM tabindex.positive [WCAG 2.4.3] (line 27 button): tabindex=5 jumps ahead of the page order
             fix: use tabindex="0" and put the element where it belongs in the DOM
      MEDIUM bypass.no_skip_link [WCAG 2.4.1] (line 27 button): 7 focusable elements before <main> and no skip link
             fix: add <a class="skip-link" href="#main">Skip to main content</a> as the first focusable element
      MEDIUM mouse.dblclick [WCAG 2.1.1] (line 29 li): double-click action has no keyboard equivalent in markup
             fix: provide a button or key shortcut for the same action
      MEDIUM focus.inline_outline_none [WCAG 2.4.7] (line 30 button): inline style removes the focus outline
             fix: remove outline:none or provide a visible :focus-visible style
      LOW    click.no_key_handler [WCAG 2.1.1] (line 24 span): custom role="button" has a click handler but no key handler in markup
             fix: make sure Enter (and Space for buttons) triggers it; a native <button> does this for free
      LOW    focus.autofocus [WCAG 2.4.3, 3.2.1] (line 26 input): autofocus moves focus on page load; screen reader users miss the content before it
             fix: remove autofocus except on single-purpose pages (search, login) or inside dialogs
      LOW    mouse.hover_only [WCAG 2.1.1, 1.4.13] (line 28 div): hover handler without a matching focus handler
             fix: show the same content on focus (onfocus/onfocusin) and let Escape dismiss it
      LOW    target.too_small [WCAG 2.5.8] (line 30 button): target is smaller than 24x24 CSS px (inline style)
             fix: make it at least 24x24px, or leave 24px spacing around it
      INFO   css.sticky_may_obscure_focus [WCAG 2.4.11] (line 3 inline <style>: .header): fixed/sticky element and no scroll-padding: focused items may hide underneath it
             fix: add html { scroll-padding-top: <header height> } (and bottom for sticky footers); tab through to verify
      INFO   focus.accesskey [WCAG 2.1.4] (line 31 a): accesskey='h' may clash with browser and screen reader shortcuts
             fix: document it, or offer remappable shortcuts (2.1.4)
      INFO   dialog.manual_check [WCAG 2.1.2, 2.4.3] (line 32 div): custom dialog without aria-modal: verify focus moves in, stays in, Escape closes, focus returns
             fix: prefer <dialog> with showModal(); see accessible-components
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Accessibility failures often hide in plain sight until a keyboard user tries to navigate your site. This skill identifies missing focus indicators, keyboard traps, and mouse-only event handlers that break WCAG compliance.

    What it does

    • Static code analysis scans HTML and CSS for outline: none, positive tabindex, and mouse-only click handlers on non-interactive elements.
    • Tab order prediction maps out the expected sequence of focusable elements to detect illogical navigation flows.
    • Sticky header detection flags instances where fixed navigation bars might obscure focused elements during scrolling.
    • Pattern remediation provides code snippets for skip links, :focus-visible styles, and inert attribute implementation for modals.
    • Manual walkthrough guidance generates step-by-step checklists to verify focus traps, dialog behavior, and SPA route changes.

    How it works

    1. Analyze source: Provide rendered HTML and CSS files to the static audit script to scan for high-risk accessibility violations.
    2. Review findings: Triage reported issues such as click.not_keyboard_accessible or css.focus_outline_removed.
    3. Execute walkthrough: Follow the generated keyboard-only checklist to test modals, carousels, and dynamic content updates.
    4. Apply fixes: Implement recommended patterns for focus management, roving tabindex, and skip-to-content links.

    Frameworks & tools

    Built with a Python 3.8+ static analysis engine. Compatible with standard HTML/CSS, React, Vue, Angular, and legacy jQuery projects.

    Why this beats prompting it yourself

    Generic prompts often miss the nuances of focus management in SPAs or the specific CSS resets that kill accessibility. This skill uses a specialized audit script and a structured reference library to ensure no interactive element is left unreachable or invisible.

    Use cases

    • Audit a production landing page for WCAG 2.1.1 and 2.4.7 compliance.
    • Fix "lost focus" bugs occurring after closing modals or switching routes in a React app.
    • Identify and replace div click handlers with accessible button patterns.
    • Resolve issues where fixed headers cover focused inputs during keyboard navigation.

    Known limitations

    Static analysis requires rendered DOM for SPAs. Manual walkthrough steps require a browser and physical keyboard interaction.


    Open source: saizul/accessibility-a11y-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.

    Static analysis requires rendered DOM for SPAs. Manual walkthrough steps require a browser and physical keyboard interaction.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill identifies critical keyboard accessibility issues like focus traps, missing focus indicators, and non-semantic interactive elements, helping you meet WCAG 2.1.1 and 2.4.7 compliance standards.

    It is compatible with any AI agent capable of executing Python 3.8+ scripts and can analyze code from modern frameworks like React and Vue as well as legacy jQuery projects.

    You receive the specialized static analysis engine, a comprehensive library of remediation code snippets (like focus-visible styles and skip links), and structured manual testing checklists.

    Unlike generic prompts, this skill uses a specialized audit script to catch hidden CSS resets and SPA-specific focus bugs that standard LLMs often overlook during a simple code review.

    The skill requires the rendered HTML and CSS files for analysis; for Single Page Applications (SPAs), you should provide the DOM output from the browser to ensure the audit captures dynamically generated elements.

    Updates are released periodically to include new remediation patterns and to align with the latest WCAG success criteria as web accessibility standards evolve.

    New in UX & UI Design