Design Auditor
The agent performs systematic 12-category UI/UX audits, detects AI-generated slop patterns, validates WCAG color contrast, and checks design system token compliance. Produces three independent grades: Design (A-F), AI Slop (A-F), and Accessibility (A-F).
Quick Start
# Score a full design audit (12 categories -> 3 grades)
python scripts/design_scorer.py --input findings.json --output report.json --verbose
# Detect AI-generated slop in HTML/CSS
python scripts/ai_slop_detector.py --input page.html --css styles.css --threshold 0.6
# Check color contrast (single pair or batch)
python scripts/color_contrast_checker.py --fg "#333" --bg "#fff" --level AA
python scripts/color_contrast_checker.py --input color-pairs.json --level AAA --suggest-fixes
# Validate design system token compliance
python scripts/design_system_validator.py --tokens tokens.json --input src/styles/
Tools Overview
| Tool |
Input |
Output |
design_scorer.py |
12-category audit findings JSON |
Three grades, category breakdown, prioritized recommendations |
ai_slop_detector.py |
HTML + optional CSS file |
Findings with confidence scores (0.0-1.0), slop grade |
color_contrast_checker.py |
Color pairs (hex/rgb/hsl/named) |
WCAG pass/fail, ratios, compliant color suggestions |
design_system_validator.py |
Design tokens JSON + CSS files |
Compliance percentage, violations with token suggestions |
All tools support --format json|text and --output for file writing.
Workflow 1: Full Design Audit
The agent evaluates 12 weighted categories in five passes:
- Visual Pass -- Visual Hierarchy (10%), Typography (8%), Color & Contrast (8%), Spacing & Layout (8%)
- Interaction Pass -- Interaction States (10%), Navigation & IA (8%)
- Platform Pass -- Responsive Design (8%), Accessibility/WCAG (12%)
- Polish Pass -- Motion & Animation (5%), Content & Microcopy (5%)
- Integrity Pass -- AI Slop Indicators (8%), Performance as Design (5%), Coherence Bonus (5%)
python scripts/design_scorer.py --input audit_findings.json --baseline last_sprint.json --format text --verbose
Three independent grades:
| Grade |
Design (weighted aggregate) |
AI Slop (inverted) |
Accessibility (WCAG) |
| A+ |
95-100 |
Highly original |
AAA compliant |
| A |
90-94 |
No detectable patterns |
Full AA compliant |
| B |
80-89 |
1-2 minor patterns |
Mostly AA, 1-3 minor violations |
| C |
70-79 |
Several AI patterns |
Partial AA |
| D |
60-69 |
Heavily templated |
Significant gaps |
| F |
0-59 |
Pure AI-generated slop |
Fundamental failures |
Validation checkpoint: Release gate requires minimum B Design grade and A Accessibility grade.
Workflow 2: AI Slop Detection
python scripts/ai_slop_detector.py --input index.html --css styles.css --threshold 0.6 --format json
The agent detects patterns across three categories:
Visual slop (confidence 0.4-0.9):
- Generic hero section (full-width, centered text, gradient)
- Stock gradients (trending purple-blue, pink-orange)
- 3-column feature grid (icon + heading + paragraph x3)
- Shadow/blur overuse on >60% of containers
Copy slop (confidence 0.5-1.0):
- Vague CTAs: "Get Started", "Learn More" without context
- Buzzword clustering: "Seamless", "Powerful", "Revolutionary"
- Lorem ipsum residue or uniform paragraph lengths
Structural slop (confidence 0.4-0.8):
- Template ordering: Hero > Features > Social Proof > Pricing > CTA > Footer
- Cookie-cutter pricing (3 tiers, middle highlighted)
Each finding includes a remediation suggestion for making the element more intentional.
Workflow 3: Accessibility & Design System Compliance
Color contrast audit:
python scripts/color_contrast_checker.py --input brand-colors.json --level AA --suggest-fixes --format text
Input format:
[
{"foreground": "#666666", "background": "#ffffff", "label": "body text"},
{"foreground": "#999999", "background": "#f5f5f5", "label": "muted text"}
]
The agent checks against WCAG thresholds (4.5:1 normal text, 3:1 large text) and suggests the closest compliant alternative for failing pairs.
Design system validation:
python scripts/design_system_validator.py --tokens design-tokens.json --input src/styles/ --glob "*.scss"
Token file format:
{
"colors": {"primary": "#1a73e8", "secondary": "#5f6368", "error": "#d93025"},
"spacing": [0, 4, 8, 12, 16, 24, 32, 48, 64],
"typography": {"body": "16px", "h1": "32px", "h2": "24px"},
"radii": [0, 4, 8, 16, 9999]
}
Detects hardcoded colors, spacing, fonts, radii, shadows, z-indices, and transitions that deviate from tokens. Reports compliance percentage and suggests nearest token for each violation.
Validation checkpoint: Token compliance >= 90%. Zero off-system colors in production CSS.
Design Principles (Audit Operating System)
These 10 principles drive every finding evaluation:
- Specificity over vibes -- "Clean UI" is banned. Name the font, spacing scale, color system.
- Empty states are features -- "No items found" is a bug. Guide users to first action.
- Subtraction default -- every element must earn its place. When in doubt, remove it.
- Edge cases are user experiences -- 47-character names, zero results, slow networks, stale state.
- Four shadow paths -- happy path, nil input, empty input, error upstream. Blank screen = Critical.
- Loading states earn trust -- skeleton screens > spinners > blank pages.
- Consistency compounds -- one off-system color erodes the entire design language. Tokens are contracts.
- Motion has meaning -- decorative animation without purpose is noise.
- Accessibility is baseline -- WCAG AA is the floor. Accessibility findings are never "Low" priority.
- Performance is perceived design -- 3-second load feels broken regardless of visual quality.
Fix Session Rules
- One issue = one question -- never batch multiple findings.
- AUTO-FIX: Cosmetic -- spacing token mismatches, off-system colors to nearest token.
- ASK: Structural -- layout changes, component swaps, navigation restructuring.
- Max 30 fixes per session. Hard stop, then generate report.
- Risk accumulator: component (+5), global style (+8), layout (+10), revert (+15). Stop at 20% of budget.
- Revert on regression -- if fix breaks visual tests or introduces Critical finding,
git revert immediately.
CI/CD Integration
jobs:
design-checks:
steps:
- run: python scripts/color_contrast_checker.py --input color-pairs.json --level AA
- run: |
python scripts/design_system_validator.py --tokens tokens.json --input src/styles/ --format json > compliance.json
python -c "import json; exit(0 if json.load(open('compliance.json')).get('compliance_percentage',0)>=90 else 1)"
- run: python scripts/ai_slop_detector.py --input dist/index.html --threshold 0.7 --format json
Anti-Patterns
- Scoring categories too high relative to findings -- if there are 4 accessibility findings, the score should not be 8/10.
- Ignoring interaction states -- every interactive element needs: default, hover, focus, active, disabled, loading, error, empty, success.
- Color as sole information carrier -- information must not be conveyed by color alone.
- Skipping edge cases -- test with long names, empty data, error states, not just the happy path.
Troubleshooting
| Problem |
Cause |
Solution |
design_scorer.py exits "Missing category" |
Input JSON missing required keys |
Ensure all 12 keys present under categories |
| Color checker rejects value |
Unsupported format |
Use hex, rgb(), hsl(), or named colors |
| AI slop detector finds zero on templated page |
Threshold too high |
Lower --threshold to 0.3 |
| Validator reports "No CSS files found" |
SCSS not matched |
Pass --glob "*.scss" |
| Scores seem inflated |
Author-provided scores too generous |
Re-evaluate each 0-10 score against finding count and severity |
References
| Guide |
Path |
| Audit Methodology |
references/design_audit_methodology.md |
| AI Slop Patterns Catalog |
references/ai_slop_patterns.md |
| WCAG 2.1 Checklist |
references/accessibility_checklist.md |
Integration Points
| Skill |
Integration |
senior-frontend |
Design audit on component library after build |
senior-qa |
Accessibility and design regression in QA pipelines |
code-reviewer |
Attach audit findings to frontend PR reviews |
senior-devops |
Gate deployments on minimum compliance scores |
product-team/ux-researcher |
Feed findings into usability research prioritization |
Last Updated: April 2026
Version: 2.1.0
1---
2name: design-auditor
3description: >
4 Use when auditing UI/UX designs for quality, detecting AI-generated slop
5 patterns, validating WCAG accessibility compliance, checking design system
6 token adherence, or reviewing responsive design across breakpoints. Produces
7 three independent grades (Design, AI Slop, Accessibility) with prioritized
8 fix recommendations.
9license: MIT + Commons Clause
10metadata:
11 source: https://skillmd.com/skills/aibot88/design-auditor
12 version: 2.1.0
13 author: borghei
14 category: engineering
15 domain: design-engineering
16 updated: 2026-04-02
17 tags: [design-audit, ai-slop, color-contrast, accessibility]
18 python-tools: design_scorer.py, ai_slop_detector.py, color_contrast_checker.py, design_system_validator.py
19 tech-stack: python, css, accessibility, wcag, design-systems
20---
21
22# Design Auditor
23
24The agent performs systematic 12-category UI/UX audits, detects AI-generated slop patterns, validates WCAG color contrast, and checks design system token compliance. Produces three independent grades: Design (A-F), AI Slop (A-F), and Accessibility (A-F).
25
26---
27
28## Quick Start
29
30```bash
31# Score a full design audit (12 categories -> 3 grades)
32python scripts/design_scorer.py --input findings.json --output report.json --verbose
33
34# Detect AI-generated slop in HTML/CSS
35python scripts/ai_slop_detector.py --input page.html --css styles.css --threshold 0.6
36
37# Check color contrast (single pair or batch)
38python scripts/color_contrast_checker.py --fg "#333" --bg "#fff" --level AA
39python scripts/color_contrast_checker.py --input color-pairs.json --level AAA --suggest-fixes
40
41# Validate design system token compliance
42python scripts/design_system_validator.py --tokens tokens.json --input src/styles/
43```
44
45## Tools Overview
46
47| Tool | Input | Output |
48|------|-------|--------|
49| `design_scorer.py` | 12-category audit findings JSON | Three grades, category breakdown, prioritized recommendations |
50| `ai_slop_detector.py` | HTML + optional CSS file | Findings with confidence scores (0.0-1.0), slop grade |
51| `color_contrast_checker.py` | Color pairs (hex/rgb/hsl/named) | WCAG pass/fail, ratios, compliant color suggestions |
52| `design_system_validator.py` | Design tokens JSON + CSS files | Compliance percentage, violations with token suggestions |
53
54All tools support `--format json|text` and `--output` for file writing.
55
56---
57
58## Workflow 1: Full Design Audit
59
60The agent evaluates 12 weighted categories in five passes:
61
621. **Visual Pass** -- Visual Hierarchy (10%), Typography (8%), Color & Contrast (8%), Spacing & Layout (8%)
632. **Interaction Pass** -- Interaction States (10%), Navigation & IA (8%)
643. **Platform Pass** -- Responsive Design (8%), Accessibility/WCAG (12%)
654. **Polish Pass** -- Motion & Animation (5%), Content & Microcopy (5%)
665. **Integrity Pass** -- AI Slop Indicators (8%), Performance as Design (5%), Coherence Bonus (5%)
67
68```bash
69python scripts/design_scorer.py --input audit_findings.json --baseline last_sprint.json --format text --verbose
70```
71
72**Three independent grades:**
73
74| Grade | Design (weighted aggregate) | AI Slop (inverted) | Accessibility (WCAG) |
75|-------|----|----|----|
76| A+ | 95-100 | Highly original | AAA compliant |
77| A | 90-94 | No detectable patterns | Full AA compliant |
78| B | 80-89 | 1-2 minor patterns | Mostly AA, 1-3 minor violations |
79| C | 70-79 | Several AI patterns | Partial AA |
80| D | 60-69 | Heavily templated | Significant gaps |
81| F | 0-59 | Pure AI-generated slop | Fundamental failures |
82
83**Validation checkpoint:** Release gate requires minimum B Design grade and A Accessibility grade.
84
85---
86
87## Workflow 2: AI Slop Detection
88
89```bash
90python scripts/ai_slop_detector.py --input index.html --css styles.css --threshold 0.6 --format json
91```
92
93The agent detects patterns across three categories:
94
95**Visual slop** (confidence 0.4-0.9):
96- Generic hero section (full-width, centered text, gradient)
97- Stock gradients (trending purple-blue, pink-orange)
98- 3-column feature grid (icon + heading + paragraph x3)
99- Shadow/blur overuse on >60% of containers
100
101**Copy slop** (confidence 0.5-1.0):
102- Vague CTAs: "Get Started", "Learn More" without context
103- Buzzword clustering: "Seamless", "Powerful", "Revolutionary"
104- Lorem ipsum residue or uniform paragraph lengths
105
106**Structural slop** (confidence 0.4-0.8):
107- Template ordering: Hero > Features > Social Proof > Pricing > CTA > Footer
108- Cookie-cutter pricing (3 tiers, middle highlighted)
109
110Each finding includes a remediation suggestion for making the element more intentional.
111
112---
113
114## Workflow 3: Accessibility & Design System Compliance
115
116**Color contrast audit:**
117
118```bash
119python scripts/color_contrast_checker.py --input brand-colors.json --level AA --suggest-fixes --format text
120```
121
122Input format:
123```json
124[
125 {"foreground": "#666666", "background": "#ffffff", "label": "body text"},
126 {"foreground": "#999999", "background": "#f5f5f5", "label": "muted text"}
127]
128```
129
130The agent checks against WCAG thresholds (4.5:1 normal text, 3:1 large text) and suggests the closest compliant alternative for failing pairs.
131
132**Design system validation:**
133
134```bash
135python scripts/design_system_validator.py --tokens design-tokens.json --input src/styles/ --glob "*.scss"
136```
137
138Token file format:
139```json
140{
141 "colors": {"primary": "#1a73e8", "secondary": "#5f6368", "error": "#d93025"},
142 "spacing": [0, 4, 8, 12, 16, 24, 32, 48, 64],
143 "typography": {"body": "16px", "h1": "32px", "h2": "24px"},
144 "radii": [0, 4, 8, 16, 9999]
145}
146```
147
148Detects hardcoded colors, spacing, fonts, radii, shadows, z-indices, and transitions that deviate from tokens. Reports compliance percentage and suggests nearest token for each violation.
149
150**Validation checkpoint:** Token compliance >= 90%. Zero off-system colors in production CSS.
151
152---
153
154## Design Principles (Audit Operating System)
155
156These 10 principles drive every finding evaluation:
157
1581. **Specificity over vibes** -- "Clean UI" is banned. Name the font, spacing scale, color system.
1592. **Empty states are features** -- "No items found" is a bug. Guide users to first action.
1603. **Subtraction default** -- every element must earn its place. When in doubt, remove it.
1614. **Edge cases are user experiences** -- 47-character names, zero results, slow networks, stale state.
1625. **Four shadow paths** -- happy path, nil input, empty input, error upstream. Blank screen = Critical.
1636. **Loading states earn trust** -- skeleton screens > spinners > blank pages.
1647. **Consistency compounds** -- one off-system color erodes the entire design language. Tokens are contracts.
1658. **Motion has meaning** -- decorative animation without purpose is noise.
1669. **Accessibility is baseline** -- WCAG AA is the floor. Accessibility findings are never "Low" priority.
16710. **Performance is perceived design** -- 3-second load feels broken regardless of visual quality.
168
169---
170
171## Fix Session Rules
172
173- **One issue = one question** -- never batch multiple findings.
174- **AUTO-FIX**: Cosmetic -- spacing token mismatches, off-system colors to nearest token.
175- **ASK**: Structural -- layout changes, component swaps, navigation restructuring.
176- **Max 30 fixes per session.** Hard stop, then generate report.
177- **Risk accumulator**: component (+5), global style (+8), layout (+10), revert (+15). Stop at 20% of budget.
178- **Revert on regression** -- if fix breaks visual tests or introduces Critical finding, `git revert` immediately.
179
180---
181
182## CI/CD Integration
183
184```yaml
185jobs:
186 design-checks:
187 steps:
188 - run: python scripts/color_contrast_checker.py --input color-pairs.json --level AA
189 - run: |
190 python scripts/design_system_validator.py --tokens tokens.json --input src/styles/ --format json > compliance.json
191 python -c "import json; exit(0 if json.load(open('compliance.json')).get('compliance_percentage',0)>=90 else 1)"
192 - run: python scripts/ai_slop_detector.py --input dist/index.html --threshold 0.7 --format json
193```
194
195---
196
197## Anti-Patterns
198
1991. **Scoring categories too high relative to findings** -- if there are 4 accessibility findings, the score should not be 8/10.
2002. **Ignoring interaction states** -- every interactive element needs: default, hover, focus, active, disabled, loading, error, empty, success.
2013. **Color as sole information carrier** -- information must not be conveyed by color alone.
2024. **Skipping edge cases** -- test with long names, empty data, error states, not just the happy path.
203
204---
205
206## Troubleshooting
207
208| Problem | Cause | Solution |
209|---------|-------|----------|
210| `design_scorer.py` exits "Missing category" | Input JSON missing required keys | Ensure all 12 keys present under `categories` |
211| Color checker rejects value | Unsupported format | Use hex, `rgb()`, `hsl()`, or named colors |
212| AI slop detector finds zero on templated page | Threshold too high | Lower `--threshold` to 0.3 |
213| Validator reports "No CSS files found" | SCSS not matched | Pass `--glob "*.scss"` |
214| Scores seem inflated | Author-provided scores too generous | Re-evaluate each 0-10 score against finding count and severity |
215
216---
217
218## References
219
220| Guide | Path |
221|-------|------|
222| Audit Methodology | `references/design_audit_methodology.md` |
223| AI Slop Patterns Catalog | `references/ai_slop_patterns.md` |
224| WCAG 2.1 Checklist | `references/accessibility_checklist.md` |
225
226---
227
228## Integration Points
229
230| Skill | Integration |
231|-------|-------------|
232| `senior-frontend` | Design audit on component library after build |
233| `senior-qa` | Accessibility and design regression in QA pipelines |
234| `code-reviewer` | Attach audit findings to frontend PR reviews |
235| `senior-devops` | Gate deployments on minimum compliance scores |
236| `product-team/ux-researcher` | Feed findings into usability research prioritization |
237
238---
239
240**Last Updated:** April 2026
241**Version:** 2.1.0