Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18820

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от 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 diff vs. 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). Read docs/coding-agent-docs/status-and-error-messaging.md first.
  • 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.js route with a roles array (dashboards, chat/session/batch tooling, eval tooling, utility pages, experimental, partner-shared pages). Not just AdminPage.js.
  • "partner" — the subset whose roles includes '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:

  1. Enumerate: ROUTE_SLUGS in src/utils/routes.js → page component in src/pages/. Include admin/partner routes unless told otherwise.
  2. Group pages by shared components; review each shared component once and list every page it affects.
  3. Won't fit one context: delegate groups of ~3–6 pages to parallel background Explore/general-purpose agents, each given Sections 1–8, status-and-error-messaging.md and the finding format below. Audit-only, no fixes.
  4. Aggregate, dedupe shared-component repeats, sort most-severe-first.
  5. Offer (don't assume) an Artifact report grouped by page/component with severity, SC, fix.
  6. 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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить accessibility-review с