/vibe:ghcopilot-instr-a11yfrom vibe
Provides WCAG 2.2 AA accessibility standards with 38+ anti-patterns, WAI-ARIA patterns, and framework-specific fixes. Use when writing or reviewing accessible code.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Comprehensive accessibility rules for web application development. Every anti-pattern includes a severity classification, detection method, WCAG 2.2 reference, and corrective code examples.
Severity levels:
| Criterion | Level | Summary |
|---|---|---|
| 1.1.1 Non-text Content | A | All non-text content has a text alternative. Decorative images use alt="". |
| 1.2.1 Audio/Video-only | A | Provide transcript (audio) or text alternative (video). |
| 1.2.2 Captions (Prerecorded) | A | All prerecorded video has synchronized captions. |
| 1.3.1 Info and Relationships | A | Structure (headings, lists, tables, labels, landmarks) programmatically conveyed. |
| 1.3.2 Meaningful Sequence | A | When the sequence that content is presented affects its meaning, the visual and programmatic ordering of content should align. |
| 1.3.3 Sensory Characteristics | A | Instructions don't rely solely on shape, size, position, or sound. |
| 1.3.4 Orientation | AA | Content is not restricted to single orientation unless essential. |
| 1.3.5 Identify Input Purpose | AA | Input fields have autocomplete attributes when collecting information about the user. |
| 1.4.1 Use of Color | A | Color is not the only means of conveying info. |
| 1.4.3 Contrast (Minimum) | AA | Text: 4.5:1 normal, 3:1 large (18pt / 14pt bold). |
| 1.4.4 Resize Text | AA | Text resizable to 200% without loss of content or functionality. |
| 1.4.10 Reflow | AA | Sections of content can fit within 320px CSS width viewports without needing to scroll in two dimensions to read. |
| 1.4.11 Non-text Contrast | AA | UI components and graphics: 3:1 against adjacent colors. |
| 1.4.12 Text Spacing | AA | No loss of content or functionality with user-overridden line-height (1.5x), or specified paragraph spacing, letter spacing, and word spacing adjustments. |
| 1.4.13 Content on Hover/Focus | AA | Popup content that appears on hover or focus is: dismissible, hoverable, persistent. |
| Criterion | Level | Summary |
|---|---|---|
| 2.1.1 Keyboard | A | All functionality operable via keyboard. |
| 2.1.2 No Keyboard Trap | A | User can navigate away from any component using keyboard. |
| 2.2.1 Timing Adjustable | A | Time limits can be extended or disabled. |
| 2.2.2 Pause, Stop, Hide | A | Auto-updating content can be paused. |
| 2.3.1 Three Flashes | A | No content flashes more than 3 times per second. |
| 2.4.1 Bypass Blocks | A | Skip link to bypass repeated navigation. |
| 2.4.2 Page Titled | A | Pages have descriptive <title>. |
| 2.4.3 Focus Order | A | Focus order preserves meaning and operability. |
| 2.4.4 Link Purpose | A | Link purpose determinable from text or context. |
| 2.4.6 Headings and Labels | AA | Headings and labels describe topic or purpose. |
| 2.4.7 Focus Visible | AA | Keyboard focus indicator is visible. |
| 2.4.11 Focus Not Obscured | AA | Focused element not entirely hidden by other overlaying elements (such as sticky headers or footers). (New in 2.2) |
| 2.5.1 Pointer Gestures | A | Multi-point gestures have single-pointer alternative. |
| 2.5.2 Pointer Cancellation | A | Activation on up-event, unless activation can be aborted, reversed, or down-event activation is essential. |
| 2.5.3 Label in Name | A | Accessible name contains the label text as it is visually presented. |
| 2.5.4 Motion Actuation | A | Device motion has UI alternative and can be disabled. |
| 2.5.7 Dragging Movements | AA | Drag-and-drop has click/tap alternative. (New in 2.2) |
| 2.5.8 Target Size (Minimum) | AA | Interactive controls have a target size, or spacing of at least 24x24 CSS px. (New in 2.2) |
| Criterion | Level | Summary |
|---|---|---|
| 3.1.1 Language of Page | A | <html lang="..."> set correctly. |
| 3.1.2 Language of Parts | AA | Content in different language marked with lang attribute. |
| 3.2.1 On Focus | A | Focus doesn't trigger unexpected context change. |
| 3.2.2 On Input | A | Changing input doesn't auto-trigger unexpected context change. |
| 3.2.6 Consistent Help | A | Help mechanisms in same relative order across pages. (New in 2.2) |
| 3.3.1 Error Identification | A | Errors described to user in text. |
| 3.3.2 Labels or Instructions | A | Labels or instructions provided for user input. |
| 3.3.3 Error Suggestion | AA | Suggest corrections for detected errors. |
| 3.3.4 Error Prevention | AA | Submissions are reversible, checked, or confirmed. |
| 3.3.7 Redundant Entry | A | Don't re-ask for info already provided in same process. (New in 2.2) |
| 3.3.8 Accessible Authentication (Minimum) | AA | No cognitive function test (puzzle CAPTCHA). Allow paste and autofill. (New in 2.2) |
| Criterion | Level | Summary |
|---|---|---|
| 4.1.2 Name, Role, Value | A | All UI components have accessible name, role, and state. |
| 4.1.3 Status Messages | AA | Status messages announced by screen readers without receiving focus. |
Note: 4.1.1 Parsing is obsolete in WCAG 2.2 (always satisfied). Issues it covered are now addressed by 1.3.1 and 4.1.2.
New AAA criteria in 2.2 (not required for AA, but recommended): 2.4.12 Focus Not Obscured (Enhanced), 2.4.13 Focus Appearance, 3.3.9 Accessible Authentication (Enhanced).
Looking ahead: WCAG 3.0 (W3C Accessibility Guidelines) is in Working Draft (March 2026). It replaces pass/fail with Bronze/Silver/Gold conformance and "Outcomes" instead of "Success Criteria." It is NOT yet a standard — continue targeting WCAG 2.2 AA.
Target: WCAG 2.2 AA covers all current legal requirements (superset of 2.1 AA and 2.0 AA).
<button> not <div role="button">. Native elements have built-in keyboard, focus, and semantics.role="heading" to a <button>. Use the correct element.role="button", handle Enter and Space key events.aria-hidden="true" on focusable elements — Hidden from assistive tech but still focusable creates a "ghost" element.aria-label, aria-labelledby, or visible text content.lang Attribute on <html><html without lang=<!-- BAD -->
<html>
<!-- GOOD -->
<html lang="en">
Next.js: Set in app/layout.tsx. Angular: Set in src/index.html. Vue/Nuxt: Set in app.vue or nuxt.config.
<h1> Per Page<h1> elements that make the page heading structure unclearPrefer one <h1> per page representing the main topic. Use <h2> for sections. Multiple <h1> elements are not a strict WCAG violation but can confuse screen reader navigation.
<h1> followed by <h3> (skipping <h2>)Maintain logical nesting: h1 > h2 > h3 > h4. Style headings with CSS, not by choosing a different heading level.
<div> without <nav>, <main>, <header>, <footer><!-- GOOD -->
<header>...</header>
<nav aria-label="Main">...</nav>
<main>...</main>
<footer>...</footer>
role="presentation"<table> without <th>, <caption>, or role="presentation"Use CSS Grid/Flexbox for layout. If table must be used for layout, add role="presentation".
<table> with data rows but no <th> elements<!-- GOOD -->
<table>
<caption>User list</caption>
<thead>
<tr><th scope="col">Name</th><th scope="col">Email</th></tr>
</thead>
<tbody>
<tr><td>Alice</td><td>[email protected]</td></tr>
</tbody>
</table>
>click here<|>read more<|>learn more<|>here<|>more<|>link<<!-- BAD -->
<a href="/pricing">Click here</a>
<!-- GOOD -->
<a href="/pricing">View pricing plans</a>
<div.*(?:onClick|@click|\(click\))// BAD — not focusable, no role, no keyboard support
<div onClick={handleClick}>Submit</div>
// GOOD
<button onClick={handleClick}>Submit</button>
<button.*role="button"|<nav.*role="navigation"|<a.*role="link"Remove redundant ARIA. <button> already has role="button".
aria-hidden="true" on Focusable Elementaria-hidden="true" on focusable elements (button, input, a, [tabindex])Do not leave focusable elements inside aria-hidden="true" content or use aria-hidden="true" on focusable elements. Rather, for native controls that support it, such as <button> or <input>, use disabled if disabling the control is the intended behavior. For <a> elements or arbitrary elements made focusable with [tabindex], remove focusability instead (for example, remove href or tabindex). If the content should be completely non-interactive and hidden from assistive technology, use inert, hidden, or remove it from the DOM.
role="tab" without aria-selected, role="checkbox" without aria-checkedRequired per role: tab needs aria-selected; combobox needs aria-expanded/aria-controls; slider needs aria-valuemin/aria-valuemax/aria-valuenow; checkbox needs aria-checked.
role="[^"]*" with non-existent valuesInvalid roles are ignored by assistive technology. Common mistakes: role="input", role="text", misspellings.
role="button" on <div>, role="checkbox" on <div><!-- BAD — requires manual keyboard, focus, and state management -->
<div role="checkbox" aria-checked="false" tabindex="0">Accept terms</div>
<!-- GOOD — all behavior built-in -->
<label><input type="checkbox" /> Accept terms</label>
aria-label on Icon-Only Buttons<button with SVG/icon child and no text or aria-label<!-- GOOD -->
<button aria-label="Close dialog"><svg aria-hidden="true">...</svg></button>
role="presentation" on Focusable Elementsrole="presentation" on interactive elementsBrowsers will ignore the presentation role on focusable elements.
role="alert", role="status", or aria-live<!-- GOOD — content announced when content is injected into a preexisting live region element in the DOM -->
<div role="status" aria-live="polite">Item saved successfully</div>
<!-- Use role="alert" (assertive) for errors -->
<div role="alert">Failed to save. Please try again.</div>
onClick Without onKeyDown on Non-Native Elements(?:onClick|@click|\(click\)) on <div> or <span> without keyboard handlerUse <button> instead. If a div is required: add role="button", tabIndex={0}, handle Enter and Space key activation.
tabindex Values(?:tabindex="[1-9]\d*"|tabIndex=\{[1-9]\d*\})Only use tabindex="0" (add to tab order) and tabindex="-1" (programmatic focus only).
Use native <dialog> with showModal() — it prevents keyboard focus from moving to the inert non-dialog content. Additionally, it has built in Escape key to dismiss, and focus will automatically return to the invoking element (if available). If a custom modal dialog implementation is needed: trap Tab within the dialog or use the inert attribute for non-dialog content (do not use inert on an element that contains the dialog), dismiss on Escape (unless user confirmation of an action is essential), return focus to the trigger element on close, or to best logical location if triggering element is no longer present upon dismissal.
<a href="#main-content" class="skip-link">Skip to main content</a>
<nav>...</nav>
<main id="main-content" tabindex="-1">...</main>
.skip-link { position: absolute; top: -40px; left: 0; padding: 8px 16px; background: #000; color: #fff; z-index: 100; }
.skip-link:focus { top: 0; }
outline: none Without Replacementoutline:\s*none|outline:\s*0\b without :focus-visible replacement/* GOOD */
button:focus-visible { outline: 2px solid #005fcc; outline-offset: 2px; }
onMouseOver|onMouseEnter|@mouseenter without keyboard equivalentPair hover with focus events. Use onFocus/onBlur alongside onMouseEnter/onMouseLeave.
Store reference to trigger element or to best logical location if triggering element is no longer present upon close. On modal close, call triggerElement.focus().
<input|<select|<textarea without <label>, aria-label, or aria-labelledby<!-- GOOD -->
<label for="email">Email address</label>
<input id="email" type="email" placeholder="[email protected]" />
aria-describedby<input id="email" type="email" aria-describedby="email-error" aria-invalid="true" />
<span id="email-error" class="error">Invalid email format</span>
*required or * without aria-required="true" or HTML required<label for="name">Name <span aria-hidden="true">*</span></label>
<input id="name" type="text" required />
<p class="form-note">Fields marked * are required</p>
On submit failure, focus the first invalid field or show and focus an error summary.
autocomplete='off' or paste-blocking JavaScriptUse reCAPTCHA v3 (invisible), hCaptcha accessibility mode, or alternative authentication. Never block paste or autofill on password fields — this violates WCAG 3.3.8.
placeholder= without accompanying <label>, aria-label, or aria-labelledbyAlways pair placeholder with a visible <label>. Placeholder is a hint, not a label.
/* BAD — #999 on #fff is ~2.5:1 */
.text { color: #999; background: #fff; }
/* GOOD — #595959 on #fff is 7.0:1 */
.text { color: #595959; background: #fff; }
Add a secondary indicator: icon, text, pattern, underline, or border.
font-size:\s*[0-9]*px (excluding root/base)Use rem or em for font sizes. Base font can be px, but content fonts should be relative.
Use responsive layouts (Grid, Flexbox). Test at 320px CSS width. Avoid fixed-width containers.
prefers-reduced-motionanimation:|transition: without prefers-reduced-motion media queryBest practice and AAA enhancement. Gate non-essential animations behind prefers-reduced-motion so users who request less motion are not forced to experience interaction-triggered effects.
@media (prefers-reduced-motion: no-preference) {
.card { transition: transform 0.3s ease; }
.card:hover { transform: scale(1.05); }
}
<img|<Image without alt= attributeAlt text decision tree: decorative = alt=""; contains text = include that text; functional = describe action; informational = describe content.
Use alt="" for decorative images. Add aria-hidden="true" for decorative SVGs.
<video without <track kind="captions"><video src="/tutorial.mp4" controls>
<track kind="captions" src="/tutorial-en.vtt" srclang="en" label="English" default />
</video>
autoplay attribute without mutedNever autoplay audio. If video autoplays, start muted with controls.
htmlFor on <label><label.*for=" in JSX (should be htmlFor)After route change, focus the main heading or announce the new page title via a live region. Next.js includes a built-in route announcer (since v13) that reads document.title, then <h1>, then pathname. Ensure every page has a unique <title>.
<>...</> root with conditional rendering causing DOM restructuringUse key prop to preserve DOM identity, or manually restore focus with useRef + useEffect.
Sanitize and validate injected HTML for heading hierarchy, alt text, and ARIA structure.
(click) on <div> Without Role and Keyboard Support(click) on <div> or <span> without role=, tabindex, (keydown)Use <button>. If div required: add role="button", tabindex="0", (keydown.enter), (keydown.space).
cdkTrapFocus in Modal ComponentscdkTrapFocus<div class="modal" cdkTrapFocus [cdkTrapFocusAutoCapture]="true">...</div>
Angular CDK's Dialog service handles focus trapping and restoration automatically.
LiveAnnouncerrouter.events.pipe(filter(e => e instanceof NavigationEnd)).subscribe(() => {
liveAnnouncer.announce(titleService.getTitle(), 'polite');
});
[attr.aria-invalid] or [attr.aria-describedby]Bind [attr.aria-invalid] and [attr.aria-describedby] to form control state.
@click on Non-Interactive Element Without Role and Keyboard@click on <div> or <span> without role=, tabindex, @keydownUse <button>. Or add role="button", tabindex="0", @keydown.enter, @keydown.space.prevent.
v-if Toggle Without Focus Managementv-if toggling without managing focus via nextTick<script setup>
import { ref, watch, nextTick } from 'vue';
const showPanel = ref(false);
const panel = ref(null);
watch(showPanel, async (val) => {
if (val) { await nextTick(); panel.value?.focus(); }
});
</script>
v-html Injecting Content Without Accessible Structurev-html rendering user or CMS contentSanitize and validate HTML for heading hierarchy, alt text, and ARIA structure before injection.
| Key | Expected Behavior |
|---|---|
Tab | Move focus to next focusable element in DOM order |
Shift+Tab | Move focus to previous focusable element |
Enter | Activate buttons and links |
Space | Activate buttons, toggle checkboxes, select radio buttons |
Escape | Close modals, dialogs, popovers, dropdowns |
Arrow Up/Down | Navigate within menus, listboxes, radio groups, tabs |
Arrow Left/Right | Navigate within tab bars, sliders, radio groups |
Home | Move to first item in list, menu, or tab bar |
End | Move to last item in list, menu, or tab bar |
| Widget | Tab enters | Internal nav | Activate | Exit |
|---|---|---|---|---|
| Tab bar | Focus active tab | Arrow Left/Right | automatic or Enter | Tab out |
| Menu | Focus first item | Arrow Up/Down | Enter | Escape |
| Dialog | Focus first element | Tab cycles within | Enter on buttons | Escape |
| Combobox | Focus input | Arrow Up/Down | Enter selects | Escape closes |
| Tree view | Focus first node | Arrow keys | Enter/Space | Tab out |
| Text Type | Minimum Ratio |
|---|---|
| Normal text (< 18pt / < 14pt bold) | 4.5:1 |
| Large text (>= 18pt / >= 14pt bold) | 3:1 |
| Incidental (disabled, decorative) | No requirement |
| Element | Minimum Ratio |
|---|---|
| UI components (borders, icons) | 3:1 against adjacent |
| Graphical objects | 3:1 against adjacent |
| Focus indicators | 3:1 against background |
<header>, <nav>, <main>, <footer><html lang="..."> is set correctlyprefers-reduced-motion<label> or aria-labelaria-describedbyrequired or aria-requiredaria-hidden="true" on focusable elementsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job