AGENT SKILL

accessibility-review

Audits the running UI against WCAG 2.2 A/AA (contrast, focus visibility, keyboard order, ARIA, target size, prefers-reduced-motion), with findings tagged WCAG-2.2.x. Use when any design-test run reaches the accessibility pass.

License 许可
MIT
所属仓库
Eliyce/paqad-ai
最近更新
2026-11-13
Stars
★ 8
Forks
0

01 前言 Front Matter

name
accessibility-review
metadata
{ "cacheable": "false", "model_tier": "reasoning", "paqad-meta": "skill.meta.yaml", "output_format": "markdown" }
description
Audits the running UI against WCAG 2.2 A/AA (contrast, focus visibility, keyboard order, ARIA, target size, prefers-reduced-motion), with findings tagged WCAG-2.2.x. Use when any design-test run reaches the accessibility pass.

02 资源文件 8

03 SKILL.md 正文

What It Does

Audits the UI against WCAG 2.2 A/AA. Combines (1) static scan for missing ARIA, missing alt text, and obvious focus issues with (2) axe-core results from the Playwright walk (Step 3 of the workflow). Every finding cites a WCAG 2.2 success criterion id: the design-test analog of WSTG ids in pentest.

Use This When

For every design-test run. Driven by the live phase's axe-core output when available; static-only when the live phase is blocked.

Inputs

  • Read docs/instructions/design-system/accessibility.md for declared a11y rules.
  • Read references/wcag-mapping.md to map findings to WCAG ids.
  • Read the axe-core results JSON from runtime-checks.ts if the live phase ran.

Procedure

Detection and mapping are deterministic: the LLM picks severity and writes findings; the scripts do the spotting.

  1. Static scan: run scripts/static-a11y-scan.sh [search-root] → TSV of <category>\t<file>:<line>\t<excerpt>. Categories: img-no-alt | button-no-name | anchor-no-name | input-no-label | outline-zero | positive-tabindex | missing-lang.
  2. Live axe results: when the Step 3 runtime walk produced an axe JSON, run scripts/parse-axe-violations.sh <axe-results.json> → TSV of <route>\t<rule-id>\t<impact>\t<target>\t<help>. Accepts a full runtime-checks payload or a bare violations array.
  3. For each axe rule emitted, run scripts/map-axe-to-wcag.sh <rule-id> to get its primary WCAG 2.2 success criterion id. Unmapped rules return WCAG-UNKNOWN; map those manually using the published axe docs.
  4. Verify each rule declared in accessibility.md: contrast ratio met, focus ring visible, target size ≥ declared minimum, reduced-motion respected, keyboard order matches reading order.
  5. Cross-reference with tokens.md: contrast violations point at the token pair that's failing (e.g. color.text.muted on color.surface.base = 3.8:1, below 4.5:1).

Output Contract

  • Match assets/output.template.md. contract_ref is a WCAG id like WCAG-2.2-1.4.3 (contrast) or the relevant accessibility.md clause.
  • Default severity: WCAG Level A violations → blocker, Level AA → high, design-system-specific rules → medium.
  • Output must pass scripts/lint-findings.sh (exit 0).

Escalate / Stop Conditions

  • Ask when no axe-core results are available AND the static scan found nothing: coverage may be inadequate. Emit a blocked_checks entry noting the live phase didn't run.
  • Warn when accessibility.md is missing: defer to design-system-coverage (tier likely bare); run as exploratory.

Resources

  • references/wcag-mapping.md
  • scripts/static-a11y-scan.sh: static-only a11y violation candidates (img/button/anchor/input/tabindex/outline/lang).
  • scripts/parse-axe-violations.sh: flatten axe-core JSON into (route, rule, impact, target) rows.
  • scripts/map-axe-to-wcag.sh: table lookup from axe rule id to WCAG 2.2 success criterion.
  • scripts/lint-findings.sh
  • assets/output.template.md
  • agents/openai.yaml

04 同仓库更多 Skills

Eliyce
Eliyce/paqad-ai

sample-skill

Sample bundled skill fixture

★ 8
Eliyce
Eliyce/paqad-ai

processing-invoices

Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.

★ 8
Eliyce
Eliyce/paqad-ai

processing-invoices

Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.

★ 8
Eliyce
Eliyce/paqad-ai

understand-idea

Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.

★ 8
Eliyce
Eliyce/paqad-ai

size-work

Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.

★ 8
Eliyce
Eliyce/paqad-ai

refine-ticket

Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.

★ 8