Loading...
Loading...
Reviews frontend code for accessibility and usability fitness, scoring across semantic HTML, keyboard navigation, screen reader support, color/contrast, progressive enhancement, responsive design, and usability heuristics. Computes WCAG contrast ratios with a bundled script that resolves CSS custom properties per theme (light/dark). Use when the user says /review:accessibility, requests an accessibility audit, asks for a11y review, wants WCAG compliance check, asks to check color contrast, alt text, or keyboard navigation in templates, components, or CSS, or needs usability evaluation of frontend code. For walking a live site's tasks in a browser, use review-usability. Only reports findings with confidence >= 7/10.
npx skill4agent add jeffabailey/skills review-accessibilityreferences/rubric.mdreferences/checklist.mdscripts/contrast.pyreferences/wisdom.mdgrep -n "^#" references/wisdom.mdfitness-config.jsonpython3 "${CLAUDE_SKILL_DIR}/../../scripts/fitness-config.py" show --path <target>${CLAUDE_SKILL_DIR}scripts/SKILL.md<target>Config:Effective weights:statusThresholdseffective<!-- BEGIN_EFFECTIVE_CONFIG_JSON --><!-- END_EFFECTIVE_CONFIG_JSON -->N/A — not requested## Direct Answerreferences/rubric.mdreferences/checklist.mdN/A — <reason>references/checklist.mdvar()python3 "${CLAUDE_SKILL_DIR}/scripts/contrast.py" css <css and template files...> --fails-only
python3 "${CLAUDE_SKILL_DIR}/scripts/contrast.py" css <css files...> --pair=--muted:--card # extra token pairs
python3 "${CLAUDE_SKILL_DIR}/scripts/contrast.py" pair '#6b5a80' '#ffffff' # literal colors<style>--fails-onlyUNRESoutline: none:3--pair(page).list--pairtext?UNREScurrentColorcolor-mix()pairreferences/rubric.mdreferences/rubric.mdreferences/rubric.mdreferences/checklist.mddocs/accessibility-review.mddocs/accessibility-review-<scope-slug>.mddocs/accessibility-review-color-contrast.mddocs/accessibility-review-layouts-partials.md# Accessibility and Usability Review
**Target:** <path(s) or scope reviewed; "focused: <topic>" for a focused review>
Config: <copied from resolver output>
Effective weights: <copied from resolver output>
## Direct Answer
(Whenever the user asked a specific question, in either mode — "what fails AA?", "is the contrast OK?": answer it in 1-3 sentences, with the numbers. Omit the section otherwise.)
## Summary
| Dimension | Score | Key Finding |
|-----------|-------|-------------|
| Semantic HTML | X/10 or N/A — reason | ... |
| Keyboard Navigation | X/10 or N/A — reason | ... |
| Screen Reader Support | X/10 or N/A — reason | ... |
| Color/Contrast | X/10 or N/A — reason | ... |
| Progressive Enhancement | X/10 or N/A — reason | ... |
| Responsive Design | X/10 or N/A — reason | ... |
| Usability Heuristics | X/10 or N/A — reason | ... |
| **Overall** | **X.X/10** (status) | Mean of <dimensions scored>; capped at 4.0 if any CRITICAL |
## Detailed Findings
### Finding 1: [Title]
- **Severity:** CRITICAL / HIGH / MEDIUM / LOW
- **Confidence:** X/10
- **Dimension:** [which scoring dimension]
- **WCAG:** [success criterion, e.g. 1.4.3 Contrast (Minimum)]
- **Location:** file:line (every location, for systemic issues)
- **Description:** What the issue is and why it matters.
- **Evidence:** The specific code pattern found (and the computed ratio, for contrast).
- **Impact:** What users are affected and how.
- **Remediation:** Concrete fix with code example or specific steps.
(repeat for each finding, ordered by severity)
## Contrast Table
(When Color/Contrast was scored: the failing pairs and the main text pairs per theme, copied from contrast.py output: theme, foreground, background, ratio, required, result, file:line. List UNRES pairs as "not verified".)
## Dimension Details
### [Dimension Name] (X/10)
- Evidence: file:line references
- Issues found
- Recommendations
### ...
## Top Action Items (by impact, up to 5)
1. [CRITICAL/HIGH/MEDIUM] Description -- file:line
2. ...
## Checklist Reference
See references/checklist.md for the full accessibility checklist used in this review.
## Reference
Based on [Fundamentals of Software Accessibility](https://jeffbailey.us/blog/2025/11/30/fundamentals-of-software-accessibility/), [Fundamentals of Software Usability](https://jeffbailey.us/blog/2026/01/01/fundamentals-of-software-usability/), [Fundamentals of Color and Contrast](https://jeffbailey.us/blog/2025/12/05/fundamentals-of-color-and-contrast/), and guidance from https://jeffbailey.us/categories/fundamentals/