Visual consistency validation

From tan-yong-sheng/ai-vision-mcp · View interactive version

Visual consistency validation is an AI agent skill from the GitHub repository tan-yong-sheng/ai-vision-mcp. Use when validating design system token compliance, detecting visual regressions, or analyzing responsive design consistency across breakpoints and modes

How to use this skill

Skill file

Visual Consistency Validation Skill

Systematic approach to validating design system compliance across all breakpoints, modes, and interactive states.

Core Principle

Every violation must be: (1) mapped to a specific token, (2) quantified, (3) severity-categorized, and (4) provided with remediation. No rationalization allowed.

When to Use

The Three Disciplines

1. Systematic Token Mapping

Every violation follows this template:

Property: [CSS property]
Current: [actual value]
Token: [token name from design system]
Expected: [token value]
Difference: [quantified: pixels, %, hex delta]

2. Comprehensive Coverage

Validate everything:

3. Severity Categorization

| Level | When |

|-------|------|

| CRITICAL | Accessibility/layout failures (WCAG contrast, broken states, layout shifts) |

| HIGH | Token violations with user impact (colors, spacing, typography) |

| MEDIUM | Minor deviations (< 10% difference) |

| LOW | Very minor (< 5% difference) |

Rule: All WCAG failures → CRITICAL (regardless of context).


Red Flags - STOP and Reanalyze

| Red Flag | What to Do |

|----------|-----------|

| "Close enough" | Measure it. Report every difference. |

| "Desktop is primary" | Analyze all breakpoints equally. |

| "Light mode is primary" | Analyze all modes equally. |

| "Minor refinement" | Categorize by severity and report. |

| "Typical for design systems" | Escalate accessibility failures to CRITICAL. |

| "Not evaluating hover states" | Validate all interactive states. |

| "Acceptable variance" | Quantify and report every deviation. |


Validation Checklist

Before completing analysis:


Reference Materials

Detailed implementation guidance:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.