accessibility-review
Review the pending diff (or a named page/component) for WCAG 2.1 AA accessibility issues — semantic HTML, ARIA, keyboard navigation, focus management, colour…
от cds-snc★ 22 звезды на GitHub
Установить accessibility-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Accessibility review
GC public-facing service: the bar is WCAG 2.1 AA in EN and FR, not "best practice."
Scope — four modes
Infer from the request; ask if "everything" is ambiguous (diff vs. whole app).
- Diff review (default) —
git diffvs. base branch, UI code only (src/pages/,src/components/,src/hooks/, CSS). Non-UI-only diff → say so and skip. Issues in code the diff adds/changes are blocking. Issues in code it merely touches (pre-existing defect) →// TODO(a11y):note with the SC, not a blocker, unless the fix is trivial. Label which is which. - Targeted review — user names a page/component/route. Read it in full, then recursively follow its imports into every shared component/hook/util it renders or calls (
FilterPanel.js,StatusMessage.js, DataTables helpers…) and apply the full checklist there too. A bug in a shared file → grep its other consumers and list them (they inherit it). Readdocs/coding-agent-docs/status-and-error-messaging.mdfirst. - Full app audit — "audit everything", "whole app", explicit
full, or a named-area shortcut. Covers every in-scope route, not just changes. - Audit re-verification / update — "update the audit", "is this still accurate", "re-check against main". Must re-examine application code, not just the audit doc's bookkeeping.
Full app audit
Large — confirm scope first if unclear (public only, or admin/partner too?). Read docs/coding-agent-docs/status-and-error-messaging.md first.
Named-area shortcuts (check against roles/RoleProtectedRoute in src/App.js):
- "public chat" —
HomePage.js+src/components/chat/*. Already has a completed, passed audit; confirm the user really wants a re-audit. - "auth" / "staff account" — Login/Register/Logout/ResetRequest/ResetVerify/ResetComplete/About/HowTo/404. No
roles, but not public-user pages: there is no public account system; the public only uses the chat anonymously. These are the pages hit before staff auth. - "admin" — everything behind auth: every
src/App.jsroute with arolesarray (dashboards, chat/session/batch tooling, eval tooling, utility pages, experimental, partner-shared pages). Not justAdminPage.js. - "partner" — the subset whose
rolesincludes'partner'(ChatDashboardPage, AdminPage shell, BatchPage, ChatViewer, EvalDashboardPage, PublicEvalPage, Metrics/PublicDashboard/PartnerDashboard/TechnicalMetrics, ScenarioOverridesPage). Partner is a role, not a page set;['admin']-only pages (Users/Settings/Database/Vector/Connectivity/Sessions/AutoEvalDashboard/EvalPage) are excluded. - "experimental" —
src/pages/experimental/*+src/components/experimental/*.
Otherwise:
- Enumerate:
ROUTE_SLUGSinsrc/utils/routes.js→ page component insrc/pages/. Include admin/partner routes unless told otherwise. - Group pages by shared components; review each shared component once and list every page it affects.
- Won't fit one context: delegate groups of ~3–6 pages to parallel background
Explore/general-purposeagents, each given Sections 1–8, status-and-error-messaging.md and the finding format below. Audit-only, no fixes. - Aggregate, dedupe shared-component repeats, sort most-severe-first.
- Offer (don't assume) an Artifact report grouped by page/component with severity, SC, fix.
- Propagate confirmed anti-patterns. Once a finding is verified, grep the whole in-scope surface (ideally the repo; note out-of-scope hits) for the same code shape before moving on. History: redundant
tabIndex="0"on<GcdsDetails>(dead extra tab stop) was caught in one page and missed in two identical ones because files were reviewed independently.
Audit re-verification
Two separate requests — don't bundle; ask if ambiguous ("update the audit" alone = A). The failure mode guarded against is trusting old conclusions instead of rereading code:
- A past "updated" pass re-verified logged findings against PR diffs but never re-scanned already-audited files for new code — a feature added one day after the first pass sat unflagged through the second.
- A long-standing autosave-per-keystroke went unflagged for months because no checklist version asked the SC 3.2.2 question — a category blind spot, catchable only by B.
Request A — revalidate the work in progress. Cheap. For every logged finding (open or fixed) and tracked file/pattern, re-verify against current main: still accurate, still open, actually fixed, or moved? Cannot surface anything the original audit never saw. Triggers: "update the audit", "is this still accurate", "re-check the findings against main". Read docs/coding-agent-docs/status-and-error-messaging.md if any finding is about a message, announcement or focus move.
Request B — recheck against changes since the audit started. Cost ≈ fresh full audit; confirm first. Re-run Sections 1–8 over the audit's full declared scope, targeting drift (new code in covered files) and categ
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл accessibility-review?
Review the pending diff (or a named page/component) for WCAG 2.1 AA accessibility issues — semantic HTML, ARIA, keyboard navigation, focus management, colour contrast, forms, and screen-reader behaviour. Use before merging any UI-touching change, or when the user asks for an accessibility/a11y review.
Как установить скилл accessibility-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл accessibility-review запускает скрипты?
Нет, скилл состоит только из инструкций (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…