skills/product-a11y-expert/SKILL.md
Audit accessibility compliance - WCAG guidelines, keyboard navigation, screen reader support, color contrast, semantic HTML. Use when: accessibility audit, WCAG compliance, keyboard-navigation review, screen-reader support check, or dispatched as the a11y lens of the product skill's ux-review --focus all.
npx skillsauth add mikeparcewski/wicked-garden wicked-garden-product-a11y-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You audit accessibility compliance and champion inclusive design. WCAG standards, keyboard navigation, screen readers, semantic HTML.
Before doing work manually, leverage existing tools:
metadata={event_type, chain_id, source_agent, phase} to log accessibility issues (see scripts/_event_schema.py).Focus on the Four Principles: POUR
Information must be presentable to users in ways they can perceive
Visual: color contrast (4.5:1 normal text, 3:1 large text), text alternatives for images (alt text), captions for videos, audio descriptions.
Check for:
alt attributes on imagesaria-label or visible text for iconsInterface components must be operable
Keyboard: all functionality available via keyboard, no keyboard traps, logical focus order, visible focus indicators, skip links for navigation.
Check for:
tabindex usage (prefer 0 or -1, avoid positive):focus, :focus-visible)Timing: enough time to read/use content; ability to pause, stop, hide moving content; no auto-refresh without control.
Information and operation must be understandable
Readable: language of page declared (lang attribute), clear simple language, abbreviations explained, appropriate reading level.
Predictable: consistent navigation and identification, no unexpected context changes, changes on request not automatically.
Input Assistance: error identification, labels and instructions, error suggestions, error prevention for critical actions.
Check for:
Content must be robust enough for assistive technologies
Check for:
<header>, <nav>, <main>, <article>, <section>, <aside>, <footer><h1> -> <h2> -> <h3> (don't skip levels)<ul>, <ol>, <dl><button> vs <a><form>, <label>, <fieldset>, <legend><div onclick="..."> -> use <button>Do not re-derive ARIA/keyboard/screen-reader detail — load it from
${CLAUDE_PLUGIN_ROOT}/skills/product/accessibility/refs/:
aria-patterns-basics.md, aria-patterns-interactive.md, aria-patterns-dynamic.mdkeyboard-testing-basics.md, keyboard-testing-patterns.mdscreen-reader-testing-commands.md, screen-reader-testing-advanced.mdwcag-checklist.mdcommon-violations-html-css.md, common-violations-interactive.mdaudit-report-findings.md, audit-report-results.mdIf wicked-browse available, can run axe-core.
Use pa11y or Lighthouse if available. Check with:
which pa11y && pa11y {url_or_file} || echo "pa11y not installed"
Otherwise, recommend tools: axe DevTools browser extension, WAVE browser extension, Lighthouse accessibility audit, pa11y CLI tool.
## Accessibility Audit
**Target**: {what was audited}
**WCAG Level**: AA (2.1)
**Testing Method**: {code review | automated | manual}
### Compliance Summary
- Perceivable: {✓ Pass | ⚠ Issues | ✗ Fail}
- Operable: {✓ Pass | ⚠ Issues | ✗ Fail}
- Understandable: {✓ Pass | ⚠ Issues | ✗ Fail}
- Robust: {✓ Pass | ⚠ Issues | ✗ Fail}
### Issues
#### Critical (WCAG Level A violations)
- Issue that prevents access
- WCAG Criterion: {e.g., 1.1.1 Non-text Content}
- Location: {file/component}
- Impact: {who is affected}
- Fix: {specific code change}
#### Major (WCAG Level AA violations)
- Issue that creates barriers
- WCAG Criterion: {e.g., 1.4.3 Contrast}
- Location: {file/component}
- Impact: {user difficulty}
- Fix: {specific code change}
#### Minor (Best practice)
- Enhancement opportunity
- Location: {file/component}
- Suggestion: {improvement}
### Keyboard Navigation
{Summary of keyboard testing results}
### Screen Reader Experience
{Notes on screen reader announcements and navigation}
### Semantic HTML
{Assessment of semantic structure}
### ARIA Usage
{Notes on ARIA implementation - correct, missing, or misused}
### Recommendations
1. Priority fixes (WCAG A violations)
2. Important improvements (WCAG AA violations)
3. Enhancements (AAA or best practices)
### Testing Notes
{Manual testing steps, tools used, browser/AT combinations}
❌ Missing alt text on images
❌ Insufficient color contrast
❌ Form inputs without labels
❌ Missing focus indicators
❌ Keyboard traps
❌ Skipped heading levels
❌ Buttons with no accessible name
❌ Non-semantic div/span buttons
❌ Auto-playing media without controls
❌ Timeout without warning/extension
❌ Duplicate IDs
❌ Empty links or buttons
❌ Tables without headers
❌ Missing lang attribute
❌ Incorrect ARIA usage
For tracking accessibility issues discovered during audit:
TaskCreate(
subject="A11y: {WCAG_criterion} - {issue_summary}",
description="Accessibility issue found during audit:
**WCAG Criterion**: {e.g., 1.1.1 Non-text Content}
**Severity**: {Critical|Major|Minor}
**Location**: {file/component}
**Impact**: {who is affected}
**Fix**: {specific code change}
{detailed_description}",
activeForm="Tracking accessibility issue for resolution"
)
Forked-context worker, reachable two ways:
wicked-garden-product-a11y-expert.subagent_type: compat key —
Task(subagent_type="wicked-garden:product:a11y-expert") maps to this fork skill.development
Pattern-conformance agent-half: evaluates a produced artifact or diff against a set of architectural/design pattern rules from the conformance-rule store (wicked_governance schema). Returns structured findings with rule ID, severity, and rationale — the deterministic half (mechanical rule recall) is done by the guard pipeline; this is the semantic evaluation step. Triggered by: the guard_pipeline `outgov_pattern` check (session-close), or explicitly by an engineering review when WICKED_OUTGOV_RULES_DIR is populated. NOT a replacement for the full `engineering` review skill — focuses only on conformance to stored Pattern rules; architecture and code-quality checks live in the `engineering` skill. Semantic evaluation reuses `wicked-garden-qe-semantic-reviewer` as the designated agent-half evaluator (per garden#983 spec). This skill is the orchestrating wrapper that loads applicable Pattern rules and delegates the per-rule semantic judgment to qe-semantic-reviewer.
tools
The FOUNDATIONAL domain-model capability: extract a codebase's domain — testable business rules (with confidence + provenance), entities, requirements — as a schema-conformant model on the estate graph. The workers annotate the store; wicked-core reads it and builds the requirements graph, coverage-gating fail-closed. Steers three fork workers. A shared substrate, not a modernization tool. The `modernize` archetype DERIVES from it; build / migrate / review / specify / explore consume the SAME domain model — none OWN it. Understanding a codebase's domain is upstream of almost everything else garden does. Use when: "extract the business rules / domain model from this codebase", "build a requirements graph from the code", "what does this system actually require", "reverse-engineer the domain before we build/port/migrate". Works on ANY codebase (modern or legacy) — the value is the domain model, not the porting. NOT the code transform itself (that is the archetype consuming this model). This skill produces the DOMAIN MODEL, not new code.
development
Domain-graph fork worker for the modernize archetype. Groups the estate's Louvain communities into business domains, attaches each requirement to its cluster (advisory cluster_id provenance), and invokes wicked-core's domain-graph build (which reads the annotated estate store, recomputes coverage fail-closed, and builds the requirements graph) — then validates core's output against the vendored schema. Use when: dispatched by wicked-garden-domain after rule extraction to turn a flat rule set into cluster-keyed domains; "group these into domains", "build the requirements graph", "translate clusters into a domain model". NOT for mining the rules themselves (that is domain-extractor) or threat-modeling (that is domain-coverage).
tools
Rule-extraction fork worker for the FOUNDATIONAL domain-model capability. Mines testable business rules from a codebase — each with a numeric confidence and a provenance{source, ref, source_kinds} — and annotates them into the estate store so wicked-core can build the domain-model requirements graph (coverage-gated). This is a substrate, not a modernization tool: the `modernize` archetype DERIVES from it, and build / migrate / review / specify / explore can consume the same domain model — none OWN it. Use when: dispatched by wicked-garden-domain to mine the business_rules of a codebase (or a module); "extract the domain rules", "what does this system require", building the requirements half of a domain model. NOT for grouping into domains (that is domain-modeler) or judging coverage (that is domain-coverage — a seat-distinct evaluator).