AGENT SKILL

accessibility

WCAG 2.2 + EAA 2025 — audit and improve web accessibility.

License 许可
Apache-2.0
最近更新
2026-11-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
accessibility
triggers
a11y, accessibility, WCAG, screen reader, keyboard navigation, EAA, European Accessibility Act, contrast, focus, touch target
changelog
docs/ciclos/cycle28-20260815.md
description
WCAG 2.2 + EAA 2025 — audit and improve web accessibility.
token_budget
2461

02 资源文件 2

03 SKILL.md 正文

When to Use

WCAG 2.2 + EAA 2025 — audit and improve web accessibility.

Theme-Switching Contrast: Hero buttons on gradients → .hero .btn override (--clr-accent drops below 3:1 on dark). Footer spans on dark bg → --clr-white or test each theme. Verify getComputedStyle contrast ≥4.5:1 against bg AND text per theme.

Grid A11y: NEVER grid-auto-flow: dense on interactive (breaks DOM tab flow). Preserve source order · TEST keyboard tab through every responsive variant.

Anti-Rationalization

Rationalization Red Flag Verification
"Audit solo con Lighthouse" Lighthouse 100 pero tab order roto Lighthouse + axe + keyboard tab through every responsive variant
"ARIA como parche de HTML semántico mal usado" div role=button sin keyboard/focus Usa <button>/<a> nativo; ARIA solo si semántica falta + verify keyboard
"EAA 2025 no aplica a proyectos chicos" Skip contrast/focus por tamaño WCAG 2.2 AA + EAA contrast ≥4.5:1 y focus visible siempre

Red Flags

  • Doing work without checking output format → STOP, re-read skill
  • Second occurrence of same rationalization → force RED zone

Verification

  • Output matches skill ## Output contract + file:line citaton
  • cross-ref-check.ps1 → SKILL.md OK

Cross-Refs: baseline-ui | web-quality-audit | ui-engine

Standards: WCAG 2.2 (w3.org/TR/WCAG22) · EAA (digital-strategy.ec.europa.eu) · WAI-ARIA (w3.org/TR/wai-aria) · axe (deque.com/axe)

Output

A11Y-AUDIT:<url>—<date> CRITICAL:[wcag\|color\|keyboard]<issue>→<fix> HIGH:[contrast\|focus\|alt]<issue>→<fix> MEDIUM:[aria\|label\|nav]<issue>→<fix> VERIFY:[axe\|keyboard]→PASS/FAIL

Verification

  • Output: response matches the ## Output contract format exactly
  • token_budget: total tokens within frontmatter token_budget
  • frontmatter: name, description, triggers, token_budget present and stable
  • cross-refs: each referenced skill exists
  • anti-patterns: none of the listed anti-patterns reintroduced

See reference.md for extended details, examples, and detailed patterns.

04 同仓库更多 Skills