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
- 参考文档agents/openai.yaml158 B
- 资产文件assets/output.template.md669 B
- 参考文档references/wcag-mapping.md2.6 KB
- 脚本scripts/lint-findings.sh1.5 KB
- 脚本scripts/map-axe-to-wcag.sh1.5 KB
- 脚本scripts/parse-axe-violations.sh2.2 KB
- 脚本scripts/static-a11y-scan.sh3.9 KB
- 参考文档skill.meta.yaml580 B
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.mdfor declared a11y rules. - Read
references/wcag-mapping.mdto map findings to WCAG ids. - Read the axe-core results JSON from
runtime-checks.tsif the live phase ran.
Procedure
Detection and mapping are deterministic: the LLM picks severity and writes findings; the scripts do the spotting.
- 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. - 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. - 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 returnWCAG-UNKNOWN; map those manually using the published axe docs. - 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. - Cross-reference with
tokens.md: contrast violations point at the token pair that's failing (e.g.color.text.mutedoncolor.surface.base= 3.8:1, below 4.5:1).
Output Contract
- Match
assets/output.template.md.contract_refis a WCAG id likeWCAG-2.2-1.4.3(contrast) or the relevantaccessibility.mdclause. - 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_checksentry noting the live phase didn't run. - Warn when
accessibility.mdis missing: defer todesign-system-coverage(tier likelybare); run as exploratory.
Resources
references/wcag-mapping.mdscripts/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.shassets/output.template.mdagents/openai.yaml
04 同仓库更多 Skills
sample-skill
Sample bundled skill fixture
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
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.
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.
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.