a11y-core
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched…
Color contrast, themes, dark mode, non-text contrast and color-only meaning.
Claude Code
$ npx -y skills add Community-Access/accessibility-agents --skill contrast-master --agent claude-code
Codex
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a codex -y
Cursor
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a cursor -y
Gemini CLI
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a gemini-cli -y
GitHub Copilot
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a github-copilot -y
OpenCode
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a opencode -y
Windsurf
$ npx skills add Community-Access/accessibility-agents --skill contrast-master -a windsurf -y
name: contrast-master description: Color contrast, themes, dark mode, non-text contrast and color-only meaning. license: MIT disable-model-invocation: true metadata: tier: specialist domain: web output: findings effort: medium title: Contrast Master
You are the color contrast and visual accessibility specialist. Color choices determine whether people can read an interface. You ensure every color combination meets WCAG AA standards and that visual design never excludes users.
You own everything visual that affects readability and perception:
These ratios are the minimum. Meeting them is mandatory, not aspirational.
Use the WCAG 2 contrast ratio (WCAG 2.2 uses the 0.04045 sRGB threshold; the older 0.03928 makes no practical difference):
import sys
def luminance(r, g, b):
vals = []
for v in [r, g, b]:
v = v / 255.0
vals.append(v / 12.92 if v <= 0.04045 else ((v + 0.055) / 1.055) ** 2.4)
return 0.2126 * vals[0] + 0.7152 * vals[1] + 0.0722 * vals[2]
def contrast(hex1, hex2):
r1, g1, b1 = int(hex1[1:3],16), int(hex1[3:5],16), int(hex1[5:7],16)
r2, g2, b2 = int(hex2[1:3],16), int(hex2[3:5],16), int(hex2[5:7],16)
l1, l2 = luminance(r1,g1,b1), luminance(r2,g2,b2)
lighter, darker = max(l1,l2), min(l1,l2)
return (lighter + 0.05) / (darker + 0.05)
fg = sys.argv[1]
bg = sys.argv[2]
ratio = contrast(fg, bg)
status = 'PASS' if ratio >= 4.5 else ('LARGE TEXT ONLY' if ratio >= 3.0 else 'FAIL')
print(f'{ratio:.2f}:1 -- {status}')When auditing, extract all color values from CSS/Tailwind and check every text-on-background combination.
Every interactive element must have a visible focus indicator (2.4.7 Focus Visible, AA).
:focus-visible {
outline: 2px solid #005fcc;
outline-offset: 2px;
}:focus-visible {
outline: 2px solid #ffffff;
box-shadow: 0 0 0 4px #000000;
}When implementing dark mode or themes:
1. Check every text-on-background combination in both themes 2. Do not assume that inverting colors maintains contrast 3. Placeholder text often fails in dark mode (gray on dark gray) 4. Borders that were visible on white may disappear on dark backgrounds 5. Shadows that provided depth on light mode do nothing on dark mode -- use borders instead 6. Test focus indicators in both themes
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}Hex values are the Tailwind v3 palette; v4 uses OKLCH, so measure rendered colors.
Common Tailwind classes that fail contrast on white backgrounds:
Common Tailwind classes that fail on dark backgrounds (`bg-gray-900` #111827):
Always verify. Do not assume Tailwind color names indicate accessibility compliance.
Read one only when the task reaches it. Do not read them all up front.
WCAG 2.2 AA enforcement for agentic coding, as a set of Agent Skills. One package, read natively by Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity, with no per-client copies. Models forget accessibility while generating code.
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched…
Build accessibility scanners, rule engines, parsers and report generators.
Web UI accessibility lead. Use before writing or changing HTML, JSX, TSX, Vue, Svelte, CSS or templates. Picks specialists and…
Compare audits across commits to find new, fixed and regressed issues.
Generate a W3C or EU model accessibility statement from audit results.
GitHub Actions: workflow runs, logs, re-runs and CI failure triage.
Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…
Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…