Skip to content

Ashutos1997/claude-design-auditor-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

62 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ 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, wireframes, 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, upload a screenshot, or share a wireframe โ€” 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)
  • A ๐Ÿšซ Blocker tier for legal/compliance violations (WCAG AA, GDPR, PECR) โ€” separate from Critical issues
  • Issues ranked by severity (๐Ÿšซ Blocker / ๐Ÿ”ด 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
  • Figma Code Connect โ€” detects design-to-code mapping gaps (get_code_connect_suggestions)
  • Wireframe to Spec โ€” converts wireframes into annotated dev-ready specs
  • Visual audit report exportable to Canva for stakeholder sharing
  • 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

# Category What It Checks
1 Typography Hierarchy, font count, size, line height, contrast
2 Color & Contrast WCAG ratios, semantic color use, palette consistency
3 Spacing & Layout 8-point grid, proximity, alignment, whitespace
4 Visual Hierarchy Primary action clarity, reading patterns, size/contrast mapping
5 Consistency Component reuse, icon families, corner radius, interaction states
6 Accessibility (A11y / WCAG) Touch targets, focus states, alt text, form labels, reading order
7 Forms & Inputs Labels, sizing, validation timing, error placement, submit states
8 Motion & Animation Purpose, duration, easing, reduced-motion support
9 Dark Mode Not just inverted, surface elevation, saturation, icon legibility
10 Responsive & Adaptive Breakpoints, overflow, touch targets, type scaling
11 Loading, Empty & Error States Skeletons, empty state anatomy, error levels, success confirmation
12 Content & Microcopy Button labels, error messages, tone consistency, terminology
13 Internationalization & RTL Text expansion, RTL mirroring, locale-aware formatting, font support
14 Elevation & Shadows Shadow scale, elevation hierarchy, dark mode depth
15 Iconography Icon families, optical sizing, touch targets, meaning consistency
16 Navigation Patterns Tabs, breadcrumbs, back buttons, mobile nav, active states
17 Design Tokens & Variables Semantic naming, hardcoded values, dark mode token swapping
18 Ethical Design & Dark Patterns Confirmshaming, 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
"Wireframe to spec" โ†’ annotated dev-ready spec from wireframe

Korean:

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

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
**Code Connect:** 8 components mapped ยท 3 unmapped

### Overall Score: 62/100
100 โˆ’ (1 ร— ๐Ÿšซ 12) โˆ’ (2 ร— ๐Ÿ”ด 8) โˆ’ (4 ร— ๐ŸŸก 4) โˆ’ (2 ร— ๐ŸŸข 1) = 62/100
A legal compliance failure and contrast issues are the main drag.

### Accessibility Score: 55/100 โ€” significant gaps โš ๏ธ Contains legal compliance failures
### Ethics Score: 85/100 โ€” minor concerns

### ๐Ÿšซ Blockers (โˆ’12pts each)
- **Text contrast failure** โ€” #aaa on white = 2.3:1 โ†’ Fix: use #595959 (7:1)
  Legal basis: WCAG 2.1 SC 1.4.3

### ๐Ÿ”ด Critical Issues (โˆ’8pts each)
- **Missing form labels** โ€” placeholder-only inputs lose label on type
  โ†’ Fix: add <label> above each input.

### ๐ŸŸก Warnings (โˆ’4pts each)
- **Off-grid spacing** โ€” padding: 13px โ†’ Fix: use 12px or 16px
- **CTA hierarchy inversion** โ€” "Accept all" primary, "Reject all" grey text
  โ†’ Fix: equivalent visual weight (GDPR requirement)

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, Code Connect, 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.6

Wireframe to Spec mode

New output mode alongside the standard audit. When a wireframe is detected (greyscale, box placeholders, skeleton fidelity), the skill offers Spec mode before running a scored audit.

Produces a structured design specification: Layout & Dimensions, Spacing, Typography, Components Required (with states), Copy Placeholders, Interaction Notes, Accessibility Requirements, and an Open Questions section that surfaces gaps the wireframe doesn't answer.

  • No score or severity labels โ€” Spec mode annotates, it doesn't audit
  • Estimated values clearly flagged with ~ prefix
  • Uses Figma layer data when available; falls back to standard defaults from reference files
  • Output as downloadable .md file
  • Auto-detected from wireframe input; also available in "What next?" widget post-audit
  • Triggers on: "wireframe to spec", "annotate my wireframe", "turn this wireframe into a spec", "spec out this design"

Canva visual audit report

After any audit, "Export to Canva" generates a visual report card in Canva โ€” score rings, issue summary, top 3 fixes, positives. Stakeholder-friendly format for sharing with non-technical audiences. Separate from the full technical Markdown export.

Trigger vocabulary expanded

Wireframe-specific trigger phrases added to YAML description. Stale version stamps in report templates fixed (were showing v1.2.2).


v1.2.5

Figma MCP โ€” three new tools integrated

  • get_code_connect_suggestions โ€” AI-suggested Figmaโ†’code component mappings. Enriches Cat 5 and Cat 17. Flags unmapped components. Adds Code Connect line to report header.
  • get_code_connect_map โ€” confirmed mappings, powers the handoff table
  • create_design_system_rules โ€” generates enforcement rules for the repo, offered post-audit when token/component health is poor. Always requires explicit confirmation.

Scoring calibration โ€” Blocker tier

Severity Deduction Basis
๐Ÿšซ Blocker โˆ’12pts Legal/compliance โ€” WCAG AA, GDPR, PECR
๐Ÿ”ด Critical โˆ’8pts Usability failure
๐ŸŸก Warning โˆ’4pts Degrades experience
๐ŸŸข Tip โˆ’1pt Polish

Blocker examples: contrast below 4.5:1 (SC 1.4.3), keyboard-inaccessible element (SC 2.1.1), missing alt (SC 1.1.1), pre-checked marketing consent (GDPR), skip link missing (SC 2.4.1).

Accessibility Score updated: Blockers use โˆ’12. Any Blocker appends "โš ๏ธ Contains legal compliance failures".

Trigger vocabulary expanded โ€” 15+ new phrases: "is this GDPR compliant", "check my onboarding", "review my checkout", "is this manipulative", "any dark patterns here", "is my form accessible", and more.


v1.2.4

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

20 manipulative patterns across 5 groups: Deceptive Interface, Coercive Flows, Consent & Privacy, False Urgency & Scarcity, Emotional Manipulation.

Ethics severity model: ๐Ÿ”ด Deceptive (โˆ’15pts) ยท ๐ŸŸก Questionable (โˆ’7pts) ยท ๐ŸŸข Noted (0pts). Ethics Score shown alongside Accessibility Score.

New ethics.md reference file โ€” 877 lines with full pattern taxonomy, detection signals, and Ethical Persuasion reference.


v1.2.3

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

  • Cat 3 โ€” off-grid detection, z-index audit, padding consistency, content margin, logical properties
  • Cat 16 โ€” <nav> semantics, aria-current, skip link, tab vs nav misuse, keyboard handling, breadcrumb structure
  • spacing.md, navigation.md, animation.md, corner-radius.md โ€” all with full code-specific audit sections

v1.2.2

  • get_design_pages as mandatory F1.5 step โ€” file structure before auditing
  • Type Scale Stack triggers on every audit โ€” extracts font sizes directly from get_design_context
  • Component health metric in report header โ€” coverage %, detached instances, unnamed layers
  • 2-frame cross-check for consistency (Cat 5)
  • Microcopy reads every text node, classifies by role, cites exact text + node ID
  • Issue deduplication โ€” same root cause โ†’ one grouped entry
  • Framework detection + before/after code diffs for code input
  • Code superpowers added to Cat 6, 7, 8, 9, 10, 13, 17
  • Standardised report template with fixed sections
  • Re-audit spec, Explain an issue depth, Developer Handoff Report template

v1.2.1

  • Scoring formula always shown in every report
  • Color contrast via design tokens โ€” get_variable_defs drives Cat 2
  • animation.md added โ€” full Cat 8 reference
  • Figma fix loop partial failure recovery
  • Auto-layout ops and component instance caveat in 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 and confidence scoring
  • Session progress tracker with sparkline
  • Full Korean coverage

v1.1.5

  • Figma Variables integration, audit goal context, WCAG level selector
  • Separate Accessibility Score, Developer handoff mode
  • Fix all Critical loop, 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

v1.1.2

  • Deterministic scoring formula, confidence level, strict output template

v1.1.1

  • Korean language support

v1.1.0

  • 17 categories: added Corner Radius, Elevation, Iconography, Navigation, 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.

Areas that could use expansion:

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

License

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


Built with Claude ยท Skill format by Anthropic