Install

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)RatioNormal (4.5)Large (3.0)
Black on White / White on Black21.00PassPass
White on #33333312.63PassPass
White on #6666665.74PassPass
#777777 on White4.48FailPass
#777777 on #0707074.50FailPass
White on #8888883.54FailPass
White on #9999992.85FailFail
#555555 on Black2.82FailFail

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=no and 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.