agentleFS
ucdavisucdavis/ai-skills-registry/skills/accessibility-general/SKILL.md

accessibility-general

Skill9 starsChanged 8 months agoMITView on GitHub

Reviews UI for accessibility issues against WCAG 2.1/2.2 AA. Triggers on "is this accessible?", "check accessibility", or contrast/a11y review requests.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks questions like:

    line 14
  2. Very specific:

    Use the WCAG checklist in references/wcag-checklist.md to systematically review the target against modern accessibility standards.

    line 33
  3. Distinctive:

    IMPORTANT: Do NOT present all findings at once.

    line 65
  4. Distinctive:

    Ask: "Got it. Quick note on why?

    line 117
  5. Distinctive:

    Keep a running tally as you go through issues.

    line 122
  6. Distinctive:

    After reviewing all issues, present a summary:

    line 126
  7. Distinctive:

    All interactive elements must be keyboard accessible (Enter/Space to activate)

    line 158
  8. Very specific:

    Prefer native HTML elements (<button>, <a>, <select>) over custom controls.

    line 160
  9. Distinctive:

    All inputs must have associated labels (explicit or aria-label)

    line 163
  10. Distinctive:

    Don't rely on color alone to convey information

    line 170
  11. Very specific:

    Use semantic HTML (nav, main, article, table, etc.) — the fix for missing semantics is always to use the correct HTML element, never to add …

    line 178
  12. Very specific:

    Follow the First Rule of ARIA: never add ARIA roles that duplicate native HTML semantics (e.g., <table role="table">, <nav …

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessibility Review

Overview

This skill enables manual accessibility reviews of web content, components, and applications against WCAG 2.1/2.2 Level AA standards. Reviews focus on practical, modern accessibility requirements without being overly pedantic.

When to Use This Skill

Use this skill when the user asks questions like:

  • "Is this accessible?"
  • "Can you review the color contrast?"
  • "Check this component for accessibility issues"
  • "Does this meet accessibility standards?"
  • Any request to review, check, or validate accessibility

Review Process

1. Identify the Target

Determine what needs to be reviewed:

  • Specific component (button, form, modal, etc.)
  • Full page or application
  • Code file or set of files
  • Design mockup or screenshot

2. Conduct Manual Review

Use the WCAG checklist in references/wcag-checklist.md to systematically review the target against modern accessibility standards.

Focus on the most common and impactful issues:

  • Perceivable: Color contrast, text alternatives, semantic structure
  • Operable: Keyboard navigation, focus management, interactive elements
  • Understandable: Clear labels, error handling, consistent navigation
  • Robust: Valid HTML, ARIA usage, compatibility

3. Prioritize Findings

Classify each issue as:

Critical - Blocks users from accessing core functionality:

  • Missing alt text on meaningful images
  • Non-keyboard accessible interactive elements
  • Insufficient color contrast (below 4.5:1 for normal text, 3:1 for large text)
  • Forms without proper labels
  • Missing focus indicators
  • Inaccessible modal/dialog patterns
  • Auto-playing media without controls

Warning - Creates friction but doesn't fully block access:

  • Suboptimal heading hierarchy (skipped levels)
  • Missing ARIA landmarks
  • Link text that's unclear out of context
  • Redundant or unnecessary ARIA
  • Touch targets smaller than 44x44px
  • Missing skip links
  • Non-descriptive error messages

4. Stepped Review (One Issue at a Time)

IMPORTANT: Do NOT present all findings at once. Review issues one at a time, waiting for user decision before proceeding.

4.1 Start with Overview

Begin by telling the user how many issues were found:

Found [X] accessibility issues ([Y] critical, [Z] warnings).

Let's review them one at a time. I'll present each issue with a recommended fix, and you can decide to:
- **Fix** — I'll implement the change
- **Ignore** — Tell me why, and I'll note it

Starting with critical issues first.

4.2 Present Each Issue

For each issue, present ONE at a time using this format:

───────────────────────────────────
Issue [1/X]: [Critical/Warning]
───────────────────────────────────

**Problem**: [Clear description of the issue]

**Location**: `file_path:line_number`
[Show the relevant code snippet]

**Impact**: [How this affects users — be specific about who and how]

**Recommended Fix**:
[Specific code change or approach]

───────────────────────────────────
Fix this issue, or ignore? (If ignoring, please share why)

4.3 Handle User Response

If user says "fix":

  1. Implement the fix
  2. Confirm: "Fixed. [Brief description of what changed]"
  3. Move to next issue

If user says "ignore" with reason:

  1. Acknowledge: "Noted — ignoring because: [their reason]"
  2. Track the decision (see 4.4)
  3. Move to next issue

If user says "ignore" without reason:

  1. Ask: "Got it. Quick note on why? (Helps for future reference)"
  2. Accept any response and move on

4.4 Track Decisions

Keep a running tally as you go through issues. After all issues are reviewed, present a summary.

5. Final Summary

After reviewing all issues, present a summary:

## Accessibility Review Complete

**Reviewed**: [X] issues ([Y] critical, [Z] warnings)

### Fixed ([N])
- [Issue description] — `file:line`
- [Issue description] — `file:line`

### Ignored ([N])
- [Issue description] — Reason: [user's reason]
- [Issue description] — Reason: [user's reason]

### Remaining Concerns
[Any patterns noticed, suggestions for future, or issues that were ignored but warrant reconsideration]

Review Guidelines

Be Practical: Focus on issues that genuinely impact users. Modern WCAG 2.1/2.2 Level AA is the standard—avoid over-engineering or citing obscure edge cases.

Be Specific: Reference actual code locations using file_path:line_number format when possible.

Be Constructive: Provide actionable fixes, not just problems. Include code examples when helpful.

Consider Context: Some patterns may have accessibility trade-offs. Acknowledge these and suggest the most accessible approach for the use case.

Common Patterns to Check

Interactive Elements

  • All interactive elements must be keyboard accessible (Enter/Space to activate)
  • Focus must be visible with clear indicators
  • Prefer native HTML elements (<button>, <a>, <select>) over custom controls. Only add ARIA roles/states when building custom widgets that have no native HTML equivalent

Forms

  • All inputs must have associated labels (explicit or aria-label)
  • Error messages must be programmatically associated with fields
  • Required fields must be indicated clearly

Color and Contrast

  • Text contrast: 4.5:1 minimum for normal text, 3:1 for large text (18pt+ or 14pt+ bold)
  • UI components: 3:1 contrast for interactive elements and their states
  • Don't rely on color alone to convey information

Images and Media

  • Meaningful images need descriptive alt text
  • Decorative images should have empty alt (alt="")
  • Videos need captions, audio content needs transcripts

Structure

  • Use semantic HTML (nav, main, article, table, etc.) — the fix for missing semantics is always to use the correct HTML element, never to add ARIA roles to a <div>
  • Follow the First Rule of ARIA: never add ARIA roles that duplicate native HTML semantics (e.g., <table role="table">, <nav role="navigation">, <button role="button"> are all incorrect)
  • Data tables must use <table>, <th>, <td>, and <caption> with proper scope attributes
  • Heading hierarchy should be logical (h1 → h2 → h3)
  • ARIA landmarks help screen reader navigation

Resources

This skill includes:

references/wcag-checklist.md

Comprehensive checklist of WCAG 2.1/2.2 Level AA requirements organized by principle (Perceivable, Operable, Understandable, Robust). Reference this during reviews to ensure thorough coverage of accessibility standards.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.