antislop-human
Accessibility & Human skill: unrounded WCAG 2.x ratios, bundled contrast-check.py & contrast-mcp.py, focus, and affordances.
antislop-human stops agents from hallucinating WCAG AA compliance by eye. It provides an offline Python CLI (contrast-check.py), an MCP tool (contrast-mcp.py inside plugins), the unrounded WCAG formula, and reference tables.
Contrast Checker CLI & strict hex checks
Since v3.2.21 and v3.2.27, ratios compare unrounded values against thresholds (so 4.498:1 prints 4.50 yet properly FAILS 4.5:1) and non-3/6-digit hex inputs like 8-digit alpha strings (#00000080) are explicitly rejected.
1# Linux/macOS: python3 | Windows: python
2python3 "${CLAUDE_SKILL_DIR}/contrast-check.py" "#FFFFFF" "#777777"
3# normal text: FAIL (4.48 < 4.5)
4# large text: PASS (4.48 >= 3.0)
Full Reference Contrast Table
| Pairing (text on bg) | Ratio | Normal (4.5) | Large (3.0) |
|---|---|---|---|
| Black on White / White on Black | 21.00 | Pass | Pass |
| White on #333333 | 12.63 | Pass | Pass |
| White on #666666 | 5.74 | Pass | Pass |
| #777777 on White | 4.48 | Fail | Pass |
| #777777 on #070707 | 4.50 | Fail | Pass |
| White on #888888 | 3.54 | Fail | Pass |
| White on #999999 | 2.85 | Fail | Fail |
| #555555 on Black | 2.82 | Fail | Fail |
Five accessibility domains
- Color and contrast. Prevents low-contrast text, gradients behind text tested only at one bright spot, grey-on-grey hallucinations, and sub-3:1 non-text contrast (WCAG 1.4.11).
- Keyboard and focus. Requires visible focus outlines, logical Tab order, and real empty, loading, and error states.
- Zoom and mobile input. Forbids disabling zoom via
user-scalable=noand checks virtual keyboard clearance on forms. - Interaction affordances (R-39). Enforces
cursor: pointer, native<button>vs<a>tags, accessible names on icons,prefers-reduced-motion, and page landmarks.