Claude Skill

web-accessibility

Design, build, and review accessible web interfaces with native semantics, keyboard and focus behavior, forms and recovery, responsive input, motion, assistive-technology testing, and WCAG 2.2-informed evidence. Use for a11y, WCAG, ARIA, screen-reader, keyboard, focus, dialog, fo

LLM Mart · 0 points · 11 views 0 listing impressions 0 install-command copies
Download magnus919-agent-skills-web-accessibility-d0edebb.zip · 19 KB

Install

skills CLI npx skills add https://github.com/magnus919/agent-skills/tree/main/web-accessibility
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart
Git git clone https://github.com/magnus919/agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole magnus919/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

README

Web Accessibility

Build web interfaces people can operate, understand, and recover from across keyboard, pointer, zoom, motion, and assistive technologies.

Why Install This Skill

Visually polished interfaces can still strand people in a modal, hide focus behind sticky UI, make errors impossible to fix, or announce the wrong thing to a screen reader. This skill helps turn a feature's user flow into explicit accessibility requirements before code is written.

It gives your agent a framework-neutral way to choose native controls, define custom-widget contracts only when needed, and collect evidence from automated checks and real manual tasks. It treats passing a scanner as useful but limited evidence, not a promise of accessibility or WCAG conformance.

What You Get

Path What it provides
SKILL.md Workflow, decision rules, routing, and reference guide.
references/source-index.md Primary sources with status, version, URL, and decision use.
references/ Focused guidance for semantics, focus, forms, widgets, adaptive UI, testing, routing, and outcome probes.
assets/ Reusable acceptance-criteria, design-review, implementation-review, and release-evidence templates.

Quick Start

Ask your agent to turn a feature flow into accessibility acceptance criteria before implementation. For example:

Design an accessible profile editor modal. Define keyboard, focus, form recovery,
and browser/AT verification requirements before writing code.

No API key, package, or framework is required.

Triggers

  • Accessibility, a11y, WCAG, ARIA, accessible name, screen reader, or assistive technology.
  • Keyboard navigation, focus order, focus trap, focus restoration, dialog, modal, disclosure, or responsive navigation.
  • Form labels, validation, errors, accessible authentication, live regions, or recovery.
  • Comboboxes, tabs, listboxes, menus, grids, target size, drag alternatives, zoom, reflow, contrast, or reduced motion.
  • Accessibility testing, axe, manual testing, accessibility review, or release evidence.

Requirements

  • Access to the interface and its supported browser/AT environment for meaningful verification.
  • Optional automated testing tools may provide bounded rule-level evidence; manual keyboard, accessibility-tree, and selected screen-reader testing remain required for interaction risk.

Skill manifest

Web Accessibility

Accessibility is successful task completion and recovery for disabled people, not a tool score. Define observable requirements before implementation, prefer native platform behavior where it fits, and gather bounded evidence in the supported browser and assistive-technology (AT) environment.

Workflow

  1. Define the task, users, supported browsers/AT, input methods, and failure recovery. Start with assets/acceptance-criteria-template.md.
  2. Choose native HTML first. Load references/semantics-and-names.md for structure, native controls, accessible names, descriptions, and dynamic updates.
  3. Specify every interactive state: trigger, role/name/state/value, keyboard commands, focus entry/exit/return, pointer alternative, errors, and visible feedback. Load the focused pattern reference.
  4. Design for visual and input adaptation using references/visual-input-and-motion.md; distinguish WCAG requirements from product goals and exceptions.
  5. Implement only after the contract is defined. For custom composite widgets, first evaluate a proven native or maintained component in the chosen stack; APG examples are informative guidance, not production proof.
  6. Verify with references/testing-and-evidence.md and the design, implementation, and release templates. Record tool, version, scope, manual tasks, actual browser/AT combinations, failures, and blocked or not-applicable items.
  7. Do not issue a WCAG conformance or general accessibility verdict from an automated scan. A conformance claim needs a complete, scoped evaluation outside this skill's automatic verdict.

Load On Demand

Need Load
Standards status, source authority, or exact links references/source-index.md
Native semantics, labels, accessible names, landmarks, live updates references/semantics-and-names.md
Tab order, focus visibility, traps, restoration, route changes references/keyboard-focus-and-routing.md
Labels, validation, recoverable errors, authentication references/forms-errors-authentication.md
Modal dialogs, disclosure, responsive navigation references/dialogs-disclosures-navigation.md
Tabs, comboboxes, listboxes, grids, menus, other composites references/composite-widgets.md
Contrast, reflow, zoom, targets, drag, motion, media references/visual-input-and-motion.md
Automated checks, manual protocols, AT matrix, evidence references/testing-and-evidence.md
Framework or skill boundary references/routing.md
Validate common outcomes without claiming conformance references/outcome-probes.md

Decision Rules

  • Treat WCAG 2.2 success criteria, HTML/ARIA specifications, and informative tutorials/patterns as separate layers. See references/source-index.md.
  • Use WAI-ARIA 1.2 only when native host-language semantics do not provide the required behavior. ARIA changes semantics; it does not create keyboard behavior or visual presentation.
  • Use the Accessible Name and Description Computation 1.2 algorithm for edge cases. Do not substitute a priority mnemonic; inspect the computed accessibility tree and name.
  • For a modal, prefer <dialog>.showModal() when it supports the target environment. Keep background content unavailable/inert, choose initial focus for the content and task, provide a visible close path, and return focus logically. Do not hide a backdrop with aria-hidden or hide an ancestor of the dialog.
  • Treat ordinary responsive navigation as a disclosure over ordinary links, not an ARIA menu. Use menu semantics only with the application-menu keyboard contract.
  • Target Size (Minimum) is 24 by 24 CSS pixels at WCAG 2.2 AA, subject to its spacing, equivalent, inline, user-agent, and essential exceptions. A larger target may be a product goal.

Completion

Stop when each acceptance criterion has direct evidence or a recorded failed, blocked, or not-applicable result. Report residual risk and the exact evidence boundary; do not turn absent testing into a pass.

When Not To Use

  • For Hugo template architecture, theme-wide layout, or CMS rendering concerns, use hugo-theme and its design/accessibility reference.
  • For evidence gathering, scope decisions, or user-facing behavior outside accessibility, use product-discovery, product-methodology, or product-design-and-ux. Keep this skill responsible for accessibility interaction and conformance depth.
  • For framework or library APIs, consult the current official documentation after defining this skill's semantic and interaction contract. React implementation details route to react; Vite configuration routes to vite.
Files (agent-skills)
  • assets
    • acceptance-criteria-template.md 1 KB
      Loading…
    • review-checklist-design.md 755 B
      Loading…
    • review-checklist-implementation.md 929 B
      Loading…
    • review-checklist-release.md 776 B
      Loading…
  • evals
    • evals.json 2.9 KB
      Loading…
  • references
    • composite-widgets.md 2.4 KB
      Loading…
    • dialogs-disclosures-navigation.md 1.9 KB
      Loading…
    • forms-errors-authentication.md 2.3 KB
      Loading…
    • keyboard-focus-and-routing.md 1.4 KB
      Loading…
    • outcome-probes.md 1.6 KB
      Loading…
    • routing.md 1.2 KB
      Loading…
    • semantics-and-names.md 2.6 KB
      Loading…
    • source-index.md 2.5 KB
      Loading…
    • testing-and-evidence.md 3.2 KB
      Loading…
    • visual-input-and-motion.md 2.6 KB
      Loading…
  • README.md 2.3 KB
    # Web Accessibility
    
    Build web interfaces people can operate, understand, and recover from across keyboard, pointer, zoom, motion, and assistive technologies.
    
    ## Why Install This Skill
    
    Visually polished interfaces can still strand people in a modal, hide focus behind sticky UI, make errors impossible to fix, or announce the wrong thing to a screen reader. This skill helps turn a feature's user flow into explicit accessibility requirements before code is written.
    
    It gives your agent a framework-neutral way to choose native controls, define custom-widget contracts only when needed, and collect evidence from automated checks and real manual tasks. It treats passing a scanner as useful but limited evidence, not a promise of accessibility or WCAG conformance.
    
    ## What You Get
    
    | Path | What it provides |
    |---|---|
    | `SKILL.md` | Workflow, decision rules, routing, and reference guide. |
    | `references/source-index.md` | Primary sources with status, version, URL, and decision use. |
    | `references/` | Focused guidance for semantics, focus, forms, widgets, adaptive UI, testing, routing, and outcome probes. |
    | `assets/` | Reusable acceptance-criteria, design-review, implementation-review, and release-evidence templates. |
    
    ## Quick Start
    
    Ask your agent to turn a feature flow into accessibility acceptance criteria before implementation. For example:
    
    ```text
    Design an accessible profile editor modal. Define keyboard, focus, form recovery,
    and browser/AT verification requirements before writing code.
    ```
    
    No API key, package, or framework is required.
    
    ## Triggers
    
    - Accessibility, a11y, WCAG, ARIA, accessible name, screen reader, or assistive technology.
    - Keyboard navigation, focus order, focus trap, focus restoration, dialog, modal, disclosure, or responsive navigation.
    - Form labels, validation, errors, accessible authentication, live regions, or recovery.
    - Comboboxes, tabs, listboxes, menus, grids, target size, drag alternatives, zoom, reflow, contrast, or reduced motion.
    - Accessibility testing, axe, manual testing, accessibility review, or release evidence.
    
    ## Requirements
    
    - Access to the interface and its supported browser/AT environment for meaningful verification.
    - Optional automated testing tools may provide bounded rule-level evidence; manual keyboard, accessibility-tree, and selected screen-reader testing remain required for interaction risk.
    
  • SKILL.md 5.4 KB
    ---
    name: web-accessibility
    description: >-
      Design, build, and review accessible web interfaces with native semantics, keyboard and
      focus behavior, forms and recovery, responsive input, motion, assistive-technology
      testing, and WCAG 2.2-informed evidence. Use for a11y, WCAG, ARIA, screen-reader,
      keyboard, focus, dialog, form, widget, or accessibility review work across frameworks.
      Do not use this skill for unrelated requests; route to the nearest named specialist.
    license: MIT
    compatibility: Works with any agent framework supporting the Agent Skills format; no runtime dependency.
    metadata:
      wcag-status: "W3C Recommendation 2023-10-05"
      aria-version: "WAI-ARIA 1.2"
    ---
    
    # Web Accessibility
    
    Accessibility is successful task completion and recovery for disabled people, not a tool score. Define observable requirements before implementation, prefer native platform behavior where it fits, and gather bounded evidence in the supported browser and assistive-technology (AT) environment.
    
    ## Workflow
    
    1. Define the task, users, supported browsers/AT, input methods, and failure recovery. Start with `assets/acceptance-criteria-template.md`.
    2. Choose native HTML first. Load `references/semantics-and-names.md` for structure, native controls, accessible names, descriptions, and dynamic updates.
    3. Specify every interactive state: trigger, role/name/state/value, keyboard commands, focus entry/exit/return, pointer alternative, errors, and visible feedback. Load the focused pattern reference.
    4. Design for visual and input adaptation using `references/visual-input-and-motion.md`; distinguish WCAG requirements from product goals and exceptions.
    5. Implement only after the contract is defined. For custom composite widgets, first evaluate a proven native or maintained component in the chosen stack; APG examples are informative guidance, not production proof.
    6. Verify with `references/testing-and-evidence.md` and the design, implementation, and release templates. Record tool, version, scope, manual tasks, actual browser/AT combinations, failures, and blocked or not-applicable items.
    7. Do not issue a WCAG conformance or general accessibility verdict from an automated scan. A conformance claim needs a complete, scoped evaluation outside this skill's automatic verdict.
    
    ## Load On Demand
    
    | Need | Load |
    |---|---|
    | Standards status, source authority, or exact links | `references/source-index.md` |
    | Native semantics, labels, accessible names, landmarks, live updates | `references/semantics-and-names.md` |
    | Tab order, focus visibility, traps, restoration, route changes | `references/keyboard-focus-and-routing.md` |
    | Labels, validation, recoverable errors, authentication | `references/forms-errors-authentication.md` |
    | Modal dialogs, disclosure, responsive navigation | `references/dialogs-disclosures-navigation.md` |
    | Tabs, comboboxes, listboxes, grids, menus, other composites | `references/composite-widgets.md` |
    | Contrast, reflow, zoom, targets, drag, motion, media | `references/visual-input-and-motion.md` |
    | Automated checks, manual protocols, AT matrix, evidence | `references/testing-and-evidence.md` |
    | Framework or skill boundary | `references/routing.md` |
    | Validate common outcomes without claiming conformance | `references/outcome-probes.md` |
    
    ## Decision Rules
    
    - Treat WCAG 2.2 success criteria, HTML/ARIA specifications, and informative tutorials/patterns as separate layers. See `references/source-index.md`.
    - Use WAI-ARIA 1.2 only when native host-language semantics do not provide the required behavior. ARIA changes semantics; it does not create keyboard behavior or visual presentation.
    - Use the Accessible Name and Description Computation 1.2 algorithm for edge cases. Do not substitute a priority mnemonic; inspect the computed accessibility tree and name.
    - For a modal, prefer `<dialog>.showModal()` when it supports the target environment. Keep background content unavailable/inert, choose initial focus for the content and task, provide a visible close path, and return focus logically. Do not hide a backdrop with `aria-hidden` or hide an ancestor of the dialog.
    - Treat ordinary responsive navigation as a disclosure over ordinary links, not an ARIA menu. Use menu semantics only with the application-menu keyboard contract.
    - Target Size (Minimum) is 24 by 24 CSS pixels at WCAG 2.2 AA, subject to its spacing, equivalent, inline, user-agent, and essential exceptions. A larger target may be a product goal.
    
    ## Completion
    
    Stop when each acceptance criterion has direct evidence or a recorded failed, blocked, or not-applicable result. Report residual risk and the exact evidence boundary; do not turn absent testing into a pass.
    
    ## When Not To Use
    
    - For Hugo template architecture, theme-wide layout, or CMS rendering concerns, use [hugo-theme](../hugo-theme/SKILL.md) and its [design/accessibility reference](../hugo-theme/references/design-accessibility.md).
    - For evidence gathering, scope decisions, or user-facing behavior outside accessibility, use [product-discovery](../product-discovery/SKILL.md), [product-methodology](../product-methodology/SKILL.md), or [product-design-and-ux](../product-design-and-ux/SKILL.md). Keep this skill responsible for accessibility interaction and conformance depth.
    - For framework or library APIs, consult the current official documentation after defining this skill's semantic and interaction contract. React implementation details route to [react](../react/SKILL.md); Vite configuration routes to [vite](../vite/SKILL.md).
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.