Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Check color contrast ratios for WCAG compliance
.claude/skills/a5c-ai-contrast-checker/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 75% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -46% | 0% |
Calculate and validate color contrast ratios according to WCAG 2.1 guidelines, ensuring text readability and accessibility compliance.
json{ "type": "object", "properties": { "colorPairs": { "type": "array", "items": { "type": "object", "properties": { "foreground": { "type": "string" }, "background": { "type": "string" }, "textSize": { "type": "string", "enum": ["normal", "large"] } } } }, "targetLevel": { "type": "string", "enum": ["AA", "AAA"], "default": "AA" }, "suggestAlternatives": { "type": "boolean", "default": true }, "palette": { "type": "object", "description": "Color palette to analyze for contrast" } }, "required": ["colorPairs"] }
json{ "type": "object", "properties": { "results": { "type": "array", "items": { "type": "object", "properties": { "foreground": { "type": "string" }, "background": { "type": "string" }, "ratio": { "type": "number" }, "passesAA": { "type": "boolean" }, "passesAAA": { "type": "boolean" }, "passesAALarge": { "type": "boolean" }, "alternatives": { "type": "array" } } } }, "summary": { "type": "object", "properties": { "totalPairs": { "type": "number" }, "passingAA": { "type": "number" }, "passingAAA": { "type": "number" }, "failing": { "type": "number" } } }, "paletteAnalysis": { "type": "object", "description": "Full palette contrast matrix" } } }
javascriptconst result = await skill.execute({ colorPairs: [ { foreground: '#333333', background: '#ffffff', textSize: 'normal' }, { foreground: '#666666', background: '#f0f0f0', textSize: 'large' } ], targetLevel: 'AA', suggestAlternatives: true });
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 14,547 | 14,596 | +0% | 1 | 1 | 0% | 1,942 | 2,809 | +45% | 0 | 0 | — |
case-02 | pass→pass | 10,904 | 16,632 | +53% | 1 | 1 | 0% | 1,089 | 1,697 | +56% | 0 | 0 | — |
case-03 | pass→pass | 8,513 | 8,529 | +0% | 1 | 1 | 0% | 522 | 1,428 | +174% | 0 | 0 | — |
case-04 | pass→pass | 8,396 | 9,243 | +10% | 1 | 1 | 0% | 644 | 1,573 | +144% | 0 | 0 | — |
case-05 | fail→pass | 9,451 | 13,089 | +38% | 1 | 1 | 0% | 907 | 1,589 | +75% | 0 | 0 | — |
case-06 | pass→pass | 9,266 | 7,058 | -24% | 1 | 1 | 0% | 704 | 1,041 | +48% | 0 | 0 | — |
case-07 | fail→pass | 10,963 | 6,686 | -39% | 1 | 1 | 0% | 811 | 978 | +21% | 0 | 0 | — |
case-08 | fail→pass | 15,483 | 9,830 | -37% | 1 | 1 | 0% | 2,115 | 1,784 | -16% | 0 | 0 | — |
case-09 | fail→pass | 14,427 | 7,613 | -47% | 1 | 1 | 0% | 1,749 | 1,195 | -32% | 0 | 0 | — |
case-10 | fail→pass | 16,444 | 7,303 | -56% | 1 | 1 | 0% | 2,060 | 1,117 | -46% | 0 | 0 | — |
case-11 | pass→pass | 23,099 | 7,922 | -66% | 1 | 1 | 0% | 3,358 | 1,334 | -60% | 0 | 0 | — |
case-12 | pass→pass | 17,052 | 6,646 | -61% | 1 | 1 | 0% | 1,978 | 969 | -51% | 0 | 0 | — |
case-13 | pass→pass | 13,313 | 7,322 | -45% | 1 | 1 | 0% | 1,255 | 993 | -21% | 0 | 0 | — |
case-14 | pass→pass | 10,204 | 11,979 | +17% | 1 | 1 | 0% | 762 | 1,327 | +74% | 0 | 0 | — |
case-15 | pass→pass | 11,225 | 15,358 | +37% | 1 | 1 | 0% | 1,146 | 2,143 | +87% | 0 | 0 | — |
case-16 | pass→pass | 13,763 | 11,318 | -18% | 1 | 1 | 0% | 1,335 | 2,186 | +64% | 0 | 0 | — |
case-17 | pass→pass | 11,176 | 12,109 | +8% | 1 | 1 | 0% | 1,350 | 2,278 | +69% | 0 | 0 | — |
case-18 | pass→pass | 10,432 | 9,965 | -4% | 1 | 1 | 0% | 717 | 1,609 | +124% | 0 | 0 | — |
case-19 | fail→pass | 19,966 | 9,282 | -54% | 1 | 1 | 0% | 2,538 | 1,017 | -60% | 0 | 0 | — |
case-20 | pass→pass | 9,306 | 9,388 | +1% | 1 | 1 | 0% | 765 | 1,466 | +92% | 0 | 0 | — |
case-21 | pass→pass | 13,290 | 12,781 | -4% | 1 | 1 | 0% | 1,489 | 2,159 | +45% | 0 | 0 | — |
case-22 | pass→pass | 22,593 | 17,547 | -22% | 1 | 1 | 0% | 3,140 | 2,947 | -6% | 0 | 0 | — |
case-23 | fail→fail | 24,542 | 31,214 | +27% | 1 | 1 | 0% | 4,186 | 5,359 | +28% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +26 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.