Agent skill

contrast-solver-helper

Implement APCA/WCAG2 contrast requirements and solver behavior per src/planning/spec-v0.3.md and src/planning/roadmap-v0.3.md, with minimal tests.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/contrast-solver-helper

SKILL.md

Contrast Solver Helper

Use this skill when implementing or validating contrast logic, APCA/WCAG2 targets, or solver behavior in src/contrast.

Workflow

  1. Read src/planning/spec-v0.3.md and the relevant phase in src/planning/roadmap-v0.3.md.
  2. Implement contrast evaluation for APCA and WCAG2.
  3. Implement solver behavior for targets and failure modes (best-effort vs strict).
  4. Add minimal tests for target attainment and failure handling.

Guardrails

  • Respect ContrastRequirement and OutputOptions.strict behavior.
  • Prefer deterministic solver paths; document edge-case behavior.

Didn't find tool you were looking for?

Be as detailed as possible for better results