claude-design-auditor-skill

Skill from Ashutos1997/claude-design-auditor-skill

๐ŸŽจ Design Auditor โ€” Claude Skill

A Claude skill that audits designs against 18 professional design categories โ€” built for developers, non-designers, and anyone who wants expert design validation without needing to know the rules themselves.

Works with Figma files (via Figma MCP), code (HTML/CSS/React/Vue), screenshots, and written descriptions. Supports English and Korean.

Compatible with Claude, Manus, and other agents that support SKILL.md-based skills.


What It Does

Drop in a Figma link, paste your CSS, or upload a screenshot โ€” Design Auditor checks your work against 18 categories of design rules and gives you:

  • A score out of 100 with per-category breakdown
  • A separate Accessibility Score (WCAG coverage across Cat 2, 6, 7, 16)
  • A separate Ethics Score (dark patterns and manipulative design across Cat 18)
  • Issues ranked by severity (๐Ÿ”ด Critical / ๐ŸŸก Warning / ๐ŸŸข Tip)
  • Plain-language explanations of why each rule matters
  • An Issue Priority Matrix โ€” every issue plotted by effort vs. impact
  • Before/after code diffs when fixing issues in HTML/CSS/React/Vue
  • Direct fixes in your Figma file via Figma MCP
  • Developer handoff report โ€” CSS spec table, a11y checklist, critical fixes
  • Export report as Markdown โ€” ready for Notion, GitHub, Linear, or Jira

The 18 Audit Categories

#CategoryWhat It Checks
1TypographyHierarchy, font count, size, line height, contrast
2Color & ContrastWCAG ratios, semantic color use, palette consistency
3Spacing & Layout8-point grid, proximity, alignment, whitespace
4Visual HierarchyPrimary action clarity, reading patterns, size/contrast mapping
5ConsistencyComponent reuse, icon families, corner radius, interaction states
6Accessibility (A11y / WCAG)Touch targets, focus states, alt text, form labels, reading order
7Forms & InputsLabels, sizing, validation timing, error placement, submit states
8Motion & AnimationPurpose, duration, easing, reduced-motion support
9Dark ModeNot just inverted, surface elevation, saturation, icon legibility
10Responsive & AdaptiveBreakpoints, overflow, touch targets, type scaling
11Loading, Empty & Error StatesSkeletons, empty state anatomy, error levels, success confirmation
12Content & MicrocopyButton labels, error messages, tone consistency, terminology
13Internationalization & RTLText expansion, RTL mirroring, locale-aware formatting, font support
14Elevation & ShadowsShadow scale, elevation hierarchy, dark mode depth
15IconographyIcon families, optical sizing, touch targets, meaning consistency
16Navigation PatternsTabs, breadcrumbs, back buttons, mobile nav, active states
17Design Tokens & VariablesSemantic naming, hardcoded values, dark mode token swapping
18Ethical Design & Dark PatternsConfirmshaming, false urgency, pre-checked consent, CTA hierarchy inversion, privacy zuckering, hidden costs, and 15 more manipulative patterns across 5 groups

Who It's For

  • Developers building UIs who don't have a design background
  • Designers who want a fast second opinion or WCAG check
  • Teams using Figma MCP or VS Code who want design validation in their workflow
  • Product managers and founders who want to ship ethical, accessible products
  • Anyone who's ever wondered "does this look right?"

How to Install

  1. Download design-auditor.skill from the releases page
  2. Go to Claude.ai โ†’ Customize โ†’ Skills
  3. Click Upload skill and select the file
  4. Done โ€” the skill is now active in your conversations

How to Use

Once installed, just talk to Claude naturally:

English:

"Check my design" โ†’ choose scope (full / quick / custom), then audit
"Is this accessible?" โ†’ accessibility-focused audit
"Review my form" โ†’ partial audit, relevant categories only
"Does this follow WCAG?" โ†’ contrast & a11y audit
"Check my Figma file: [link]" โ†’ Figma MCP audit
"Any dark patterns here?" โ†’ ethics audit

Korean:

"๋””์ž์ธ ๊ฒ€ํ† ํ•ด์ค˜" โ†’ ์ „์ฒด ๊ฐ์‚ฌ
"์ ‘๊ทผ์„ฑ ํ™•์ธํ•ด์ค˜" โ†’ ์ ‘๊ทผ์„ฑ ์ค‘์‹ฌ ๊ฐ์‚ฌ
"๋‚ด ๋””์ž์ธ ๊ดœ์ฐฎ์•„ ๋ณด์—ฌ?" โ†’ ์ „์ฒด ๊ฐ์‚ฌ
"UI ๊ฒ€ํ† ํ•ด์ค˜" โ†’ ์ „์ฒด ๊ฐ์‚ฌ
"์ƒ‰์ƒ ๋Œ€๋น„ ํ™•์ธํ•ด์ค˜" โ†’ ์ƒ‰์ƒ ๋ฐ ์ ‘๊ทผ์„ฑ ๊ฐ์‚ฌ

Paste a Figma URL, share a screenshot, or paste your HTML/CSS โ€” Claude will run the audit automatically and respond in the same language you used.


Example Output

## ๐Ÿ” Design Audit Report

**Input:** Checkout flow ยท 3 frames
**Type:** Figma MCP
**Confidence:** ๐ŸŸข High
**Component health:** 71% coverage ยท 2 detached instances ยท 8 unnamed layers

### Overall Score: 68/100
100 โˆ’ (3 ร— ๐Ÿ”ด 8) โˆ’ (4 ร— ๐ŸŸก 4) โˆ’ (2 ร— ๐ŸŸข 1) = 68/100
Contrast failures and missing form labels are the main drag.

### Accessibility Score: 62/100 โ€” significant gaps
### Ethics Score: 85/100 โ€” minor concerns

### ๐Ÿ”ด Critical Issues
- **Body text contrast** โ€” #aaa on white = 2.3:1 โ†’ Fix: use #595959 (7:1)
  Why: many users literally can't read low-contrast text.
- **Missing form labels** โ€” placeholder-only inputs lose label on type
  โ†’ Fix: add <label> above each input.

### ๐ŸŸก Warnings
- **Off-grid spacing** โ€” padding: 13px, gap: 14px
  โ†’ Fix: use multiples of 8 (8, 16, 24px)
- **CTA hierarchy inversion** โ€” "Accept all" is primary, "Reject all" is grey text
  โ†’ Fix: give both options equivalent visual weight (GDPR requirement)

### โœ… What's Working Well
- Clean page structure with logical section flow
- Hero CTA button has strong contrast and good sizing

Skill Structure

design-auditor/
โ”œโ”€โ”€ SKILL.md                        โ€” Main skill instructions (18 categories)
โ””โ”€โ”€ references/
    โ”œโ”€โ”€ typography.md               โ€” Font rules, sizing, hierarchy, type scale algorithm
    โ”œโ”€โ”€ color.md                    โ€” WCAG luminance formula, contrast, palette guidance
    โ”œโ”€โ”€ spacing.md                  โ€” 8-point grid, layout, proximity, code checks
    โ”œโ”€โ”€ corner-radius.md            โ€” Nested radius rule, scale, pill shapes, code checks
    โ”œโ”€โ”€ elevation.md                โ€” Shadow scale, elevation hierarchy, code shadow audit
    โ”œโ”€โ”€ iconography.md              โ€” Icon families, sizing, touch targets
    โ”œโ”€โ”€ navigation.md               โ€” Tabs, breadcrumbs, back buttons, mobile nav, code checks
    โ”œโ”€โ”€ tokens.md                   โ€” Design tokens, semantic naming, dark mode architecture
    โ”œโ”€โ”€ figma-mcp.md                โ€” Figma MCP workflow, page structure, safe editing
    โ”œโ”€โ”€ states.md                   โ€” Loading, empty, error, success states + code checks
    โ”œโ”€โ”€ microcopy.md                โ€” Button labels, errors, tone, per-role audit guide
    โ”œโ”€โ”€ animation.md                โ€” Easing curves, duration scales, reduced motion, code checks
    โ”œโ”€โ”€ i18n.md                     โ€” RTL support, locale formatting, i18n
    โ””โ”€โ”€ ethics.md                   โ€” Dark patterns, ethical design, persuasion vs manipulation

Changelog

v1.2.4

New: Category 18 โ€” Ethical Design & Dark Patterns

Added an ethics audit layer covering 20 manipulative design patterns across 5 groups:

  • Group A โ€” Deceptive Interface: Confirmshaming, CTA hierarchy inversion, trick questions, disguised ads, bait and switch, hidden costs, visual misdirection
  • Group B โ€” Coercive Flows: Roach motel, obstruction, forced action, nagging
  • Group C โ€” Consent & Privacy: Privacy zuckering, pre-checked consent, interface interference, drip pricing
  • Group D โ€” False Urgency & Scarcity: Countdown timers, false scarcity, false social proof
  • Group E โ€” Emotional Manipulation: Guilt-based copy, fear appeals, toying with emotion

Every pattern includes: definition, real-world example, why it's harmful, Figma detection signals, code detection signals, severity, fix, and a context note to prevent false positives on legitimate persuasion.

Ethics severity model (separate from design severity):

  • ๐Ÿ”ด Deceptive โ€” โˆ’15pts (actively misleads or coerces)
  • ๐ŸŸก Questionable โ€” โˆ’7pts (exploitative depending on context)
  • ๐ŸŸข Noted โ€” 0pts (persuasive but ethical, informational only)

Ethics Score shown alongside Accessibility Score in every report. Bands: 90โ€“100 Ethically sound โ†’ < 50 Do not ship.

New reference file: ethics.md โ€” full pattern taxonomy, detection scope table, ethics severity model, ethics score formula, and an Ethical Persuasion reference of 12 legitimate techniques the skill should never flag.


v1.2.3

Code parity complete โ€” all 17 categories now check from source code

Category 3 โ€” Spacing & Layout

  • Off-grid value detection: flags any px value not divisible by 4, with Tailwind arbitrary value support (p-[13px] โ†’ ๐ŸŸก). Same value across 5+ places groups into one issue with count.
  • Padding consistency: mismatched sides on cards/panels, mixed shorthand across same component type
  • z-index audit: values outside expected ranges, z-index: 9999 on non-overlay elements, duplicate z-index in overlapping contexts, z-index on position: static
  • Content margin: missing max-width, content touching screen edge, non-responsive margins
  • Logical property suggestions: flags margin-left/right as ๐ŸŸข Tip โ€” upgrades to ๐ŸŸก if RTL audit active

Category 16 โ€” Navigation Patterns

  • Semantic nav: <nav> vs <div>, multiple <nav> without aria-label
  • Active state: aria-current="page" detection, CSS-class-only active state โ†’ ๐ŸŸก, color-only active signal โ†’ ๐ŸŸก
  • Skip navigation link: first focusable element check โ€” missing โ†’ ๐ŸŸก, broken target ID โ†’ ๐Ÿ”ด Critical
  • Tab vs nav misuse: <nav> for view switching, role="tablist" for page routing
  • Keyboard handling: <div onClick> without role="button" โ†’ ๐Ÿ”ด, dropdown Escape/arrow key handler check
  • Breadcrumb structure: <nav aria-label="Breadcrumb">, <ol> requirement, aria-current="page" on last item

Reference files updated: spacing.md, navigation.md, animation.md, corner-radius.md โ€” all with full code-specific audit sections


v1.2.2

Figma workflow: get_design_pages mandatory F1.5 step, multi-page selection widget, "Audit all pages" mode

Type Scale Stack widget: triggers on every audit, extracts font sizes from get_design_context, deterministic role-mapping algorithm

Component health metric: layer tally in F2, coverage % + detached instances + unnamed layers in report header

Category 5: 2-frame cross-check for button radius, primary color, font size, input height, icon style

Category 12: reads every text node, classifies by role, cites exact text + node ID per issue

Issue deduplication: same root cause โ†’ one grouped entry with count and node IDs

Code input: framework detection (HTML/CSS, React, Vue, Tailwind, CSS-in-JS), before/after code diffs, scope selector for large files

Code superpowers added: Cat 6, 7, 8, 9, 10, 13, 17 โ€” direct checks from source code

Reference files updated: color.md, states.md, typography.md, elevation.md, microcopy.md, figma-mcp.md

Standardised report template with fixed sections, always/conditional labels

QoL: merged duplicate Step 0, Tone Guidelines moved to top, tokens.md added to reference list, Re-audit and Explain specs, Developer Handoff Report template


v1.2.1

  • Scoring formula always shown explicitly in every report
  • Color contrast via design tokens โ€” get_variable_defs drives Cat 2 programmatically
  • references/animation.md added โ€” full Cat 8 reference file
  • Figma fix loop partial failure recovery โ€” typed classification, never stops on single failure
  • Auto-layout operations and component instance caveat added to figma-mcp.md

v1.2.0

  • 5 interactive audit widgets: Type Scale Stack, Contrast Checker, 8pt Grid Visualizer, States Coverage Map, Issue Priority Matrix
  • Smart defaults โ€” scope, stage, WCAG level inferred from request
  • Component-type detection โ€” auto-detects and skips irrelevant categories
  • Confidence scoring acts on audit โ€” ๐ŸŸข/๐ŸŸก/๐Ÿ”ด behaviours
  • Session progress tracker with sparkline
  • Full Korean coverage for all new features

v1.1.5

  • Figma Variables integration, audit goal context, WCAG level selector
  • Separate Accessibility Score, Developer handoff report mode
  • "Fix all Critical" loop with per-issue confirmation
  • Bilingual widget labels

v1.1.4

  • Audit scope selector: Full / Quick / Custom
  • Partial audit mode, severity filter, Markdown export

v1.1.3

  • Figma MCP fallback, per-category scores, before/after diffs, re-audit delta mode

v1.1.2

  • Deterministic scoring formula, audit confidence level, strict output template

v1.1.1

  • Korean language support

v1.1.0

  • 17 categories total: added Corner Radius, Elevation & Shadows, Iconography, Navigation Patterns, Design Tokens

v1.0.0

  • Initial release: 13 audit categories, 7 reference files

Contributing

Found a design rule that should be in here? Open an issue or PR. The goal is to make this the most comprehensive plain-language design reference available inside Claude.

Areas that could use expansion:

  • Data visualization & charts
  • Native mobile (iOS/Android) specific patterns
  • UX flow analysis & information architecture
  • Print / PDF layout rules

License

MIT โ€” use it, fork it, build on it.


Built with Claude ยท Skill format by Anthropic