a11y
Use when building or changing UI, before shipping a user-facing screen, and when something cannot be reached with a keyboard, read by a screen reader, or seen…
от crewforth★ 26 звёзд на GitHub
Установить a11y в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Accessibility (a11y)
Trigger phrases: "a11y", "accessibility", "WCAG", "screen reader", "keyboard navigation", "contrast", "ARIA", "keyboard only", "with a keyboard", "keyboard focus", "without a mouse", "focus ring", "tab order", "alt text", "color blind", "colour blind", "voiceover", "talkback", "reduced motion", "target size", "focus not obscured", "focus is hidden", "WCAG 2.2"
Goal: make the interface usable by everyone, including keyboard, screen reader, and low vision. Baseline target: WCAG 2.2 AA. Stack-agnostic (web/React/RN); do a web search when needed for framework-specific APIs.
Checklist
- Semantic HTML:
button/a/nav/main/h1..h6correct; nodiv-buttons - Keyboard: every interaction reachable via Tab, sensible order, visible focus ring
- Focus management: focus moves on modal/route change, focus trap correct
- Contrast: text ≥ 4.5:1, large text ≥ 3:1
- Alt text:
alton meaningful images;alt=""on decorative images - Forms: every input has a
label; error message programmatically linked (aria-describedby) - ARIA: only when needed; wrong ARIA is worse than no ARIA; role/name/state correct
- Motion/animation: respect
prefers-reduced-motion; anything that moves for more than 5 s can be paused (2.2.2) - Language:
<html lang>correct (coordinate with i18n)
WCAG 2.2 added these; a 2.1 checklist misses all of them:
- Focus not obscured (2.4.11): a focused element is never fully hidden under a sticky header, footer or banner
- Dragging (2.5.7): every drag has a single-pointer alternative (buttons, a menu)
- Target size (2.5.8): pointer targets ≥ 24×24 CSS px, or spaced so a 24 px circle on each does not overlap another
- Redundant entry (3.3.7): information already given in the same flow is filled in or selectable, not asked again
- Accessible authentication (3.3.8): no memory or puzzle test to sign in without an alternative; paste and password managers work
Commonly missed, all checkable in the markup:
- Autocomplete (1.3.5): personal-data inputs carry the right
autocompletetoken - No paste blocking on any input, passwords and confirmations included
- Submit stays enabled: a disabled-until-valid button hides why; validate on submit and say what is wrong
- Zoom and reflow (1.4.4, 1.4.10): usable at 200% text and at 320 CSS px wide; no
maximum-scale=1oruser-scalable=noin the viewport meta - Skip link (2.4.1): the first focusable element jumps past repeated navigation to
main - No flashing (2.3.1): nothing flashes more than three times a second
- Error summary: a form that fails lists its errors in one focusable block that links to each field
- No positive
tabindex:0and-1only; order comes from the DOM
Criteria, not conventions. A failed A or AA criterion, or a task a keyboard or screen-reader user cannot finish, is a finding. AAA, an ARIA Authoring Practices pattern, or a 44 px target where 24 px passes is a recommendation: say so, and never rank it with a finding.
Before you finish: grep for these
| Pattern in the diff | Why it fails |
|---|---|
outline: none / outline: 0 with no :focus-visible rule |
focus becomes invisible (2.4.7) |
<div onClick / <span onClick with no role and key handler |
not reachable by keyboard (2.1.1) |
tabindex="1" or higher |
breaks the reading order (2.4.3) |
disabled={!isValid} on a submit |
hides why the form cannot be sent |
| a live region rendered together with its text | many readers announce nothing: render it empty first |
maximum-scale=1, user-scalable=no |
blocks zoom (1.4.4) |
aria-hidden="true" on an element that holds something focusable |
focus lands on nothing the reader can name |
<img with no alt |
no text alternative (1.1.1) |
onDrag/draggable with no button or menu path |
no single-pointer alternative (2.5.7) |
Symptom → cause → fix
| Symptom | Usual cause | Fix |
|---|---|---|
| Reader says "button" and nothing else | icon-only button with no name | aria-label, or visually hidden text |
| Tab skips an element | a div handling clicks |
a real button / a |
| Focus lost after a modal closes | focus not returned | return it to the element that opened the modal |
| An error appears and nothing is announced | message not tied to the field or a live region | aria-describedby on the field; a status region for the summary |
| Layout breaks at 200% zoom | fixed heights or widths in px | let text boxes grow; min-width: 0 on flex and grid children |
Recipes for focus, forms and announcements (which channel says what, in order): references/recipes.md.
How
- Start with semantics — the right element solves 80%. Use
buttoninstead ofrole="button"+div. - **Na
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/recipes.md
FAQ
Что делает скилл a11y?
Use when building or changing UI, before shipping a user-facing screen, and when something cannot be reached with a keyboard, read by a screen reader, or seen at low contrast.
Как установить скилл a11y?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл a11y запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…