[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7852D0NQC3FQFKC9DPXNP31":3,"skill-same:01M7852D0NQC3FQFKC9DPXNP31":116},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7852D0NQC3FQFKC9DPXNP31","design-auditor",null,"Audit designs against 19 rules across Figma files and code (HTML\u002FCSS\u002FReact\u002FVue\u002FTailwind). Auto-detects framework and design system (MUI, Chakra, shadcn\u002Fui, Ant Design, Radix, Bootstrap). Runs code superpowers across all 19 categories: aria, focus, contrast, tokens, responsive, motion, forms, navigation, spacing, states, microcopy, elevation, iconography\u002FSVG. Flags color blindness risk. Audits dark patterns, ethical design, Nielsen's heuristics. Outputs before\u002Fafter diffs, developer handoff reports, wireframe-to-spec. English and Korean. Triggers on: check my design, review my UI, audit my layout, is this accessible, design review, color contrast, WCAG, a11y, pixel perfect, Figma audit, CSS check, dark patterns, is this GDPR compliant, is this manipulative, is my form accessible, is my dark mode correct, wireframe to spec, heuristic review, Nielsen audit, usability heuristics, 디자인 검토, 접근성 확인, 색상 대비, 다크 패턴, 와이어프레임 스펙.","mhrsdev\u002FAI-Agent-Skills-Library","mhrsdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F297913466?v=4","01M784VR2WC3PFWGB33RB1EVF9","MHRS","01M784VR3WX1XAH7SX6R2QZ99R",7,"MIT","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design-auditor\nversion: 1.2.13\ndescription: \"Audit designs against 19 rules across Figma files and code (HTML\u002FCSS\u002FReact\u002FVue\u002FTailwind). Auto-detects framework and design system (MUI, Chakra, shadcn\u002Fui, Ant Design, Radix, Bootstrap). Runs code superpowers across all 19 categories: aria, focus, contrast, tokens, responsive, motion, forms, navigation, spacing, states, microcopy, elevation, iconography\u002FSVG. Flags color blindness risk. Audits dark patterns, ethical design, Nielsen's heuristics. Outputs before\u002Fafter diffs, developer handoff reports, wireframe-to-spec. English and Korean. Triggers on: check my design, review my UI, audit my layout, is this accessible, design review, color contrast, WCAG, a11y, pixel perfect, Figma audit, CSS check, dark patterns, is this GDPR compliant, is this manipulative, is my form accessible, is my dark mode correct, wireframe to spec, heuristic review, Nielsen audit, usability heuristics, 디자인 검토, 접근성 확인, 색상 대비, 다크 패턴, 와이어프레임 스펙.\"\n---\n\n# Design Checker Skill\n\nYou are an expert design reviewer. Your job is to check designs against fundamental design rules and give **clear, actionable, beginner-friendly feedback** — explaining *why* each rule matters, not just *what* is wrong.\n\nThis skill is for everyone: developers who've never studied design, and designers who want a second opinion.\n\n---\n\n## Step 0: Language Detection & Beginner Check (Always Do This First)\n\n### Language Detection\nDetect the language of the user's message and respond entirely in that language throughout the audit — including all issue labels, explanations, fix suggestions, and the final report. If the user writes in Korean, the full audit report must be in Korean. If in English, respond in English. Never mix languages in a single report.\n\n**Korean response note:** When auditing in Korean, use natural Korean UX\u002Fdesign terminology:\n- 타이포그래피 (typography), 색상 대비 (color contrast), 간격 (spacing)\n- 접근성 (accessibility), 시각적 계층 (visual hierarchy), 일관성 (consistency)\n- 🔴 심각한 문제 \u002F 🟡 경고 \u002F 🟢 팁\n- Overall score label: **디자인 감사 보고서** \u002F 총점: X\u002F100\n\n### Beginner Check\nBefore anything else, gauge the user's familiarity with design from their message.\n\n**Signs they're a beginner:**\n- Vague requests: \"does this look okay?\", \"is this good?\"\n- They mention being a developer building UI\n- No design vocabulary (no mention of hierarchy, contrast, spacing, etc.)\n- They say things like \"I'm not a designer but...\"\n\n**If they seem like a beginner**, open with a friendly one-liner:\n> \"No worries — I'll walk you through exactly what to look for and why each thing matters. Design has rules, and once you know them, it gets much easier!\"\n\nThen **explain every term you use** inline (e.g., if you say \"visual hierarchy\", briefly say what that means in parentheses).\n\n**If they seem experienced**, skip the hand-holding and go straight to concise, technical feedback.\n\n---\n\n## Tone Guidelines (Apply Throughout Every Step)\n\n- **Never condescending.** They're smart — they just haven't learned this yet.\n- **Always explain the \"why.\"** One sentence is enough.\n- **Avoid jargon** unless the user uses it first.\n- **Be genuinely encouraging.** Real praise, not filler.\n- **Match their energy.** Casual question → relaxed tone. Formal request → structured response.\n\n---\n\n## Step 1: Gather the Design\n\n| Input Type | What to Do |\n|---|---|\n| **Figma URL or link** | Follow the **Figma MCP Workflow** below |\n| **Live website URL** | Fetch via `web_fetch`, treat as code input — see URL Input Spec |\n| **GitHub file URL** | Fetch raw source, treat as code input — see URL Input Spec |\n| **GitHub repo URL** | Browse key files, treat as code input — see URL Input Spec |\n| **Vercel \u002F Netlify preview URL** | Same as live website URL |\n| **CodeSandbox \u002F StackBlitz \u002F CodePen URL** | Fetch rendered output + source — see URL Input Spec |\n| **Storybook URL** | Fetch component source — see URL Input Spec |\n| **Code (HTML\u002FCSS\u002FReact\u002FVue)** | Read the file(s) directly |\n| **Screenshot or image** | Examine the attached image |\n| **Description only** | Ask for visuals — descriptions miss too much |\n\n### URL Input Spec\n\nWhen the user shares any non-Figma URL, apply this decision tree before auditing:\n\n---\n\n#### Live Website URL (`https:\u002F\u002Fdomain.com\u002F...`)\n*Includes Vercel previews (`*.vercel.app`), Netlify previews (`*.netlify.app`), staging URLs*\n\n```\n1. Fetch the URL using web_fetch to retrieve rendered HTML\u002FCSS\n2. Treat fetched content as code input — run Step 1.6 framework detection\n3. Set confidence: 🟡 Medium\n   Limitations:\n   - Cannot see non-rendered states (hover, focus, error, loading)\n   - Cannot audit authenticated pages without credentials\n   - Dynamic JS-rendered content may be incomplete\n   - Note in REPORT HEADER: \"Live URL — non-rendered states not assessed\"\n\n4. Login redirect handling:\n   → Inform user: \"This page requires login. I can audit the login page,\n     or share credentials and I'll attempt the authenticated experience.\"\n   → Never guess at content behind a login wall\n\n5. Credentials handling:\n   → Note in REPORT HEADER: \"Authenticated audit — credentials provided\"\n   → Never repeat credentials back in the report output\n\n6. Multi-page offer (after audit):\n   → \"Would you like me to audit other pages on this site?\"\n```\n\n---\n\n#### GitHub File URL (`github.com\u002Fuser\u002Frepo\u002Fblob\u002Fmain\u002Fpath\u002Fto\u002Ffile`)\n\n```\n1. Convert to raw URL: replace \u002Fblob\u002F with \u002Fraw\u002F or use raw.githubusercontent.com\n   Example: github.com\u002Fuser\u002Frepo\u002Fblob\u002Fmain\u002Fsrc\u002FButton.tsx\n         → raw.githubusercontent.com\u002Fuser\u002Frepo\u002Fmain\u002Fsrc\u002FButton.tsx\n2. Fetch the raw file content via web_fetch\n3. Treat as direct code input — full confidence 🟢 High\n4. Run Step 1.6 framework detection on the file content\n5. Note in REPORT HEADER: \"GitHub file: [filename] · [repo]\"\n\nIf the URL points to a directory (not a file):\n  → Treat as GitHub repo URL (see below)\n```\n\n---\n\n#### GitHub Repo URL (`github.com\u002Fuser\u002Frepo`)\n\n```\n1. Fetch the repo's default branch file listing\n2. Identify the most relevant files to audit:\n   Priority order:\n   a. src\u002Fcomponents\u002F or components\u002F — UI components\n   b. src\u002FApp.tsx \u002F App.vue \u002F index.html — root component\n   c. src\u002Fstyles\u002F or *.css \u002F *.scss \u002F tailwind.config.js — style files\n   d. package.json — detect framework\u002Fdependencies\n\n3. Fetch the 2–3 most relevant component\u002Fstyle files\n4. Set confidence: 🟡 Medium (partial codebase view)\n5. Note in REPORT HEADER: \"GitHub repo: [repo name] · [N] files audited\"\n\nPresent scope selector before auditing:\n  \"I found [N] component files in this repo. Which should I focus on?\"\n  Options: [list of found component files] + \"Audit all visible files\"\n\nIf repo is private or returns 404:\n  → \"This repo is private or unavailable. Share the code directly\n     or make the repo public to audit it.\"\n```\n\n---\n\n#### CodeSandbox \u002F StackBlitz URL\n\n```\nCodeSandbox: codesandbox.io\u002Fs\u002F[id] or codesandbox.io\u002Fp\u002Fsandbox\u002F[id]\nStackBlitz:  stackblitz.com\u002Fedit\u002F[id]\n\n1. Fetch the URL to get the rendered preview HTML\n2. Also attempt to fetch the source files if accessible:\n   CodeSandbox API: codesandbox.io\u002Fapi\u002Fv1\u002Fsandboxes\u002F[id]\n   StackBlitz: check for embedded source in the page\n3. If source available → treat as code input (🟢 High confidence)\n4. If preview only → treat as screenshot\u002Flive URL (🟡 Medium confidence)\n5. Note in REPORT HEADER: \"CodeSandbox\u002FStackBlitz — [source\u002Fpreview only]\"\n```\n\n#### CodePen URL\n\n```\nCodePen: codepen.io\u002F[user]\u002Fpen\u002F[id]\n\n1. Fetch the debug URL for clean HTML: codepen.io\u002F[user]\u002Fdebug\u002F[id]\n   Or fetch the embed: cdpn.io\u002Fpen\u002Fdebug\u002F[id]\n2. Treat rendered output as live URL input (🟡 Medium confidence)\n3. CSS\u002FJS source is often visible in page source — extract if available\n4. Note in REPORT HEADER: \"CodePen — rendered preview audited\"\n```\n\n---\n\n#### Storybook URL (`[domain]\u002Fstorybook` or `storybook.[domain]`)\n\n```\nDetecting Storybook: URL contains \u002Fstorybook, \u002Fstory\u002F, ?path=\u002Fstory\u002F\nor page title contains \"Storybook\"\n\n1. Fetch the Storybook URL\n2. Identify component being shown from the URL path:\n   ?path=\u002Fstory\u002Fbutton--primary → auditing Button component, Primary variant\n3. Treat rendered HTML as live URL input for visual checks\n4. If source iframe is accessible, extract component HTML for code checks\n5. Set confidence: 🟡 Medium\n6. Note in REPORT HEADER: \"Storybook — [component name] · [variant]\"\n\nMulti-component offer:\n  → After audit: \"This Storybook has other components. Want me to audit\n    another? Share the story URL for that component.\"\n```\n\n---\n\n**REPORT HEADER format for all URL inputs:**\n```\nEnglish:\n**Input:** [URL type] — [url or repo\u002Ffilename]\n**Type:** [Live URL \u002F GitHub \u002F CodeSandbox \u002F Storybook]\n**Confidence:** 🟡 Medium (or 🟢 High for GitHub file)\n**Limitations:** [what can't be assessed — list the specific gaps]\n\nKorean:\n**입력:** [URL 유형] — [url 또는 저장소\u002F파일명]\n**유형:** [라이브 URL \u002F GitHub \u002F CodeSandbox \u002F Storybook]\n**신뢰도:** 🟡 보통 (GitHub 파일의 경우 🟢 높음)\n**제한사항:** [평가할 수 없는 항목 — 구체적인 제한 목록]\n```\n\nIf nothing shared yet, use ask_user_input:\n- question: \"What are you sharing for the audit?\"\n- type: single_select\n- options: \"Figma link \u002F Figma 링크\" \u002F \"Live URL \u002F 라이브 URL\" \u002F \"GitHub URL \u002F GitHub 링크\" \u002F \"Screenshot \u002F 스크린샷\" \u002F \"Code (HTML\u002FCSS\u002FReact) \u002F 코드\" \u002F \"Written description \u002F 텍스트 설명\"\n\n### Step 1b: Smart Defaults (infer before asking)\n\nBefore presenting any widget, infer as much as possible from what was submitted. Only ask when genuinely ambiguous.\n\n**Infer scope from the request:**\n- User says \"quick look\", \"just check\", \"fast review\" → default to Quick audit\n- User says \"full audit\", \"everything\", \"thorough\" → default to Full audit\n- User mentions specific areas (\"check my typography\", \"is the contrast ok?\") → default to Custom, pre-select those categories\n- No signal → default to Full audit and proceed without asking\n\n**Infer stage from the design itself:**\n- Greyscale \u002F wireframe \u002F lorem ipsum present → Early concept\n- Polished visuals, real content, component library → Dev handoff\n- User says \"live\", \"shipped\", \"in production\", \"our app\" → Production\n- No signal → default to Dev handoff (the strictest safe default)\n\n**Wireframe detection — special case:**\nIf the input is clearly a wireframe (greyscale, box placeholders, no real content, skeleton-level fidelity), offer the **Wireframe to Spec** mode before running a standard audit:\n- English: *\"This looks like a wireframe — would you like a design spec output instead of a standard audit? I can annotate dimensions, spacing, states required, copy placeholders, and component suggestions.\"*\n- Korean: *\"와이어프레임처럼 보입니다 — 표준 감사 대신 디자인 스펙 출력을 원하시나요? 치수, 간격, 필요한 상태, 카피 플레이스홀더, 컴포넌트 제안을 주석으로 작성해 드릴 수 있습니다.\"*\nIf yes → run Wireframe to Spec mode (see Step 4).\nIf no → run standard audit at Early concept stage with relaxed severity.\n\n**Infer WCAG level:**\n- Always default to AA. Only ask if the user explicitly mentions AAA, government\u002Flegal context, or \"enhanced accessibility.\"\n\n**Only ask questions when inference fails.** If all three can be inferred, skip all widgets and go straight to the audit. State inferred values at the top of the report in the user's detected language:\n- English: *\"Inferred: Full audit · Dev handoff · WCAG AA — let me know if any of these are wrong.\"*\n- Korean: *\"추론된 설정: 전체 감사 · 개발 전달 · WCAG AA — 잘못된 항목이 있으면 알려주세요.\"*\n\n**If scope is still ambiguous after inference**, ask one combined widget — not three separate ones:\n- question: \"A few quick settings before I start:\"\n- type: multi_select (let them override any inferred value)\n- options: \"Full audit (default) \u002F 전체 감사\" \u002F \"Quick audit — 5 categories \u002F 빠른 감사\" \u002F \"Custom categories \u002F 직접 선택\" \u002F \"Early concept \u002F 초기 개념\" \u002F \"Dev handoff (default) \u002F 개발 전달\" \u002F \"Production \u002F 운영 중\" \u002F \"WCAG AAA (default is AA)\"\n\n**If Quick audit is selected or inferred**, dynamically pick the 5 highest-risk categories based on input type — do NOT use a hardcoded list:\n\n| Submitted Type | Quick audit categories |\n|---|---|\n| Full page screenshot | Color & Contrast, Visual Hierarchy, Typography, Spacing & Layout, Accessibility |\n| Form | Accessibility, States, Microcopy, Color & Contrast, Spacing & Layout |\n| Dashboard \u002F data-heavy | Visual Hierarchy, Typography, Color & Contrast, Consistency, Responsiveness |\n| Single component | Color & Contrast, Accessibility, States, Typography, Spacing & Layout |\n| Navigation | Accessibility, States, Navigation, Responsiveness, Visual Hierarchy |\n| Figma file | Color & Contrast, Design Tokens, Accessibility, Spacing & Layout, Consistency |\n| Code file | Accessibility, Design Tokens, States, Color & Contrast, Typography |\n\nState at top of report in the user's detected language:\n- English: *\"Quick audit — 5 categories selected for your [type]. Run a full audit to check all 19.\"*\n- Korean: *\"빠른 감사 — [유형]에 맞는 5개 카테고리를 선택했습니다. 전체 19개 항목을 확인하려면 전체 감사를 실행하세요.\"*\n\n**Severity thresholds by stage** (apply silently based on inferred or selected stage):\n\n| Issue Type | Early Concept | Dev Handoff | Production |\n|---|---|---|---|\n| Missing hover\u002Ffocus states | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Placeholder content | 🟢 Tip | 🔴 Critical | 🔴 Critical |\n| Off-grid spacing | 🟢 Tip | 🟡 Warning | 🟡 Warning |\n| WCAG contrast failure | 🟡 Warning | 🔴 Critical | 🔴 Critical |\n| Missing error states | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Hardcoded tokens | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Icon touch targets | 🟡 Warning | 🔴 Critical | 🔴 Critical |\n\n**WCAG AA thresholds (default):**\n- Normal text: ≥ 4.5:1 · Large text (18px+ or 14px+ bold): ≥ 3:1 · UI components: ≥ 3:1\n\n**WCAG AAA thresholds (if requested):**\n- Normal text: ≥ 7:1 · Large text: ≥ 4.5:1 · UI components: ≥ 4.5:1 · No images of text · Reflow at 400% · Focus indicator 3:1 contrast\n\n### Component-Type Detection (auto-detected)\n\nIdentify what type of UI was submitted and weight categories accordingly. Never apply a one-size-fits-all audit.\n\n| Detected Type | Signals | Priority Categories | Skip |\n|---|---|---|---|\n| **Full page \u002F screen** | Multiple sections, nav, hero, footer | All 19 | Nothing |\n| **Form** | Input fields, labels, submit button | Accessibility, States, Microcopy, Spacing, Typography | i18n (unless multilingual signals) |\n| **Modal \u002F dialog** | Overlay, close button, constrained width | Spacing, States, Microcopy, Accessibility, Elevation | Navigation, Responsiveness |\n| **Navigation** | Nav bar, tabs, sidebar, breadcrumbs | Navigation, Accessibility, States, Responsiveness, Iconography | Elevation, Corner Radius |\n| **Card \u002F list item** | Repeated unit, thumbnail, metadata | Typography, Spacing, Visual Hierarchy, Consistency, Corner Radius | Navigation, i18n |\n| **Dashboard** | Data viz, metrics, tables, filters | Visual Hierarchy, Consistency, Typography, Color, Responsiveness | Motion, i18n |\n| **Single component** | Button, input, badge, avatar alone | Typography, Color, Spacing, Accessibility, States, Corner Radius, Elevation | Navigation, i18n, Responsiveness |\n\nAlways state detected type and skipped categories at the top of the report in the user's detected language:\n- English: *\"Detected: Form — auditing 14 of 19 categories. Skipped: i18n & RTL, Navigation, Responsiveness, Motion, Design Tokens (no code provided).\"*\n- Korean: *\"감지된 유형: 폼 — 19개 카테고리 중 14개를 감사합니다. 건너뜀: 국제화 및 RTL, 내비게이션, 반응형, 모션, 디자인 토큰 (코드 없음).\"*\n\n---\n\n## Figma MCP Workflow\n\nWhen a Figma file or URL is involved, follow these steps. Read `references\u002Ffigma-mcp.md` for full details and safe editing patterns.\n\n### F0: Check MCP Availability First\nBefore attempting any Figma tool call, check if Figma MCP is active by attempting `get_design_context`. If it fails or is unavailable, respond in the user's detected language:\n- English: *\"I can see you've shared a Figma link, but I don't have Figma MCP access in this session. Could you export a screenshot or paste the relevant CSS\u002Fcomponent code? I can still run a full audit — I'll just note it as 🟡 Medium confidence since I won't have exact layer data.\"*\n- Korean: *\"Figma 링크를 공유해 주셨지만, 이 세션에서는 Figma MCP 접근 권한이 없습니다. 스크린샷을 내보내거나 관련 CSS\u002F컴포넌트 코드를 붙여넣어 주시겠어요? 전체 감사는 진행할 수 있지만, 정확한 레이어 데이터가 없으므로 🟡 중간 신뢰도로 표시됩니다.\"*\n\nNever attempt to audit a Figma URL without MCP access — do not guess or hallucinate layer values.\n\n### F1: Resolve the Link\nIf given a Figma URL or shortlink → call `resolve_shortlink` first to get the node ID.\n\n### F1.5: Get File Structure\nBefore diving into any node, call `get_design_pages` on the file key to understand the full file structure.\n\n**What to do with the result:**\n\n```\nIf the file has 1 page:\n  → Proceed directly to F2 with the provided node ID. No need to ask.\n\nIf the file has 2–5 pages:\n  → State the page names at the top of the report.\n  → If the user gave a specific node URL, audit that frame and note which page it's on.\n  → Offer to audit other pages after the current audit completes.\n\nIf the file has 6+ pages:\n  → Present a widget before auditing:\n    question: \"This file has [N] pages — which would you like to audit?\"\n    type: single_select\n    options: [list of page names] + \"Audit all pages \u002F 모든 페이지 감사\"\n  → If \"Audit all pages\": run sequential audits per page, aggregate scores, surface a\n    ranked summary at the end (highest issue count first).\n\nIf the user gave no specific node ID (just a file URL):\n  → Use get_design_pages to list pages, present the widget above, then proceed.\n```\n\n**File structure line in report header** (always include when 2+ pages exist):\n- English: *\"File: [N] pages — auditing '[page name]' (page [N] of [N]).\"*\n- Korean: *\"파일: [N]개 페이지 — '[페이지 이름]' 감사 중 ([N]\u002F[N]).\"*\n\n### F2: Get Design Context\nCall `get_design_context` on the node. Returns: layer structure, component names, typography (font, size, weight, line-height), colors (fills, strokes, opacity), spacing (padding, gap, auto-layout), and component\u002Fstyle references.\n\n**Component health scan (run automatically on every Figma audit):**\nWhile reading the layer tree from `get_design_context`, tally the following:\n\n```\nFor every layer in the tree, classify it:\n  - Named component instance (e.g. \"Button\u002FPrimary\u002FDefault\", \"⚡ Input\") → component ✅\n  - Raw frame\u002Fgroup with a meaningful name (e.g. \"Header\", \"Card Item\") → named frame ⚠️\n  - Raw frame\u002Fgroup with a generic name (\"Frame 12\", \"Group 7\", \"Rectangle\") → unnamed 🔴\n  - Detached instance (shows no componentId) → detached 🟡\n\nCompute:\n  total_layers = all non-hidden layers\n  component_pct = (named component instances \u002F total_layers) × 100\n  unnamed_pct = (unnamed layers \u002F total_layers) × 100\n\nThresholds:\n  component_pct ≥ 60% → ✅ Healthy component usage\n  component_pct 30–59% → 🟡 Partial — some components, many one-offs\n  component_pct \u003C 30% → 🔴 Low — mostly raw layers, not using a component system\n\nShow the Component Health line in the report header (always, on Figma audits):\n  \"Component health: 68% component coverage · 4 detached instances · 12 unnamed layers\"\n\nFlag as issues:\n  unnamed_pct > 20% → 🟡 \"High proportion of unnamed layers ([N]) — slows handoff and makes edits harder\"\n  detached_instances > 0 → 🟡 \"N detached component instances — updates to the main component won't propagate\"\n  component_pct \u003C 30% → 🔴 \"Low component coverage ([N]%) — most elements are raw frames, not reusable components\"\n```\n\n**Auto-Layout compliance scan (run automatically on every Figma audit):**\nWhile reading the layer tree from `get_design_context`, check for absolute-position frames that should be auto-layout:\n\n```\nFor every Frame or Group in the tree:\n  - If it contains 2+ child layers arranged in a clear row or column pattern\n    AND it has no layoutMode (i.e. not using Auto Layout) → flag as 🟡 Warning\n    \"Frame '[name]' contains [N] stacked\u002Frow children but uses manual positioning —\n     convert to Auto Layout for responsive behaviour and easier spacing control\"\n\n  - If a Frame has children with hardcoded x\u002Fy absolute positions AND the frame\n    has a fixed width → 🟡 Warning\n    (absolute children won't reflow when content changes)\n\n  - If layoutMode = HORIZONTAL or VERTICAL but itemSpacing or padding values\n    are not on the 8pt grid → 🟡 (same as Cat 3 spacing check)\n\nPositive signals to acknowledge:\n  → Frames using Auto Layout (layoutMode = HORIZONTAL or VERTICAL) → ✅\n  → Consistent itemSpacing across sibling Auto Layout frames → ✅\n  → \"Min W\" \u002F \"Fill\" constraints used instead of fixed widths → ✅\n\nShow in report header on Figma audits when manual-position frames are found:\n  \"Auto Layout: [N]% of frames using Auto Layout · [N] frames with manual positioning\"\n```\n\n### F3: Get a Screenshot\nCall `get_screenshot` on the same node. Essential — context data alone misses visual issues like crowding, poor contrast, or bad hierarchy.\n\n### F3.5: Get Variable Definitions + Contrast Analysis\nCall `get_variable_defs` on the same node. Returns the actual token\u002Fvariable data bound to the design (e.g. `color\u002Fprimary: #7c3aed`, `spacing\u002Fmd: 16px`).\n\n**Use for Category 17 (Design Tokens):**\n- If a value in `get_design_context` matches a variable in `get_variable_defs` → it is tokenized ✅\n- If a value in `get_design_context` has no matching variable → it is hardcoded 🔴\n- If `get_variable_defs` returns empty or fails → note \"No variables found — token coverage cannot be verified\" and audit Cat 17 from context data only\n- Declare token coverage % in the Cat 17 section: e.g. \"4 of 7 color values tokenized (57%)\"\n\n**Use for Category 2 (Color & Contrast) — no screenshot required:**\nWhen color tokens are available from `get_variable_defs`, compute WCAG contrast ratios programmatically using this algorithm:\n\n```\n1. Extract all color token pairs where one is clearly a foreground (text, icon, border)\n   and the other is a background (surface, fill, container).\n   Look for naming patterns like:\n   - color\u002Ftext\u002F* paired with color\u002Fbackground\u002F* or color\u002Fsurface\u002F*\n   - color\u002Fon-* paired with color\u002F*\n   - color\u002Fforeground paired with color\u002Fcanvas\n\n2. For each hex color, compute relative luminance:\n   - Normalize: R = hex_r\u002F255, G = hex_g\u002F255, B = hex_b\u002F255\n   - Linearize: channel \u003C 0.04045 ? channel\u002F12.92 : ((channel+0.0539)\u002F1.055)^2.4\n   - L = 0.2126*R_lin + 0.7152*G_lin + 0.0722*B_lin\n\n3. Compute contrast ratio:\n   - ratio = (lighter_L + 0.05) \u002F (darker_L + 0.05)\n\n4. Compare against WCAG thresholds (from inferred or selected level):\n   - AA normal text: ≥ 4.5:1\n   - AA large text \u002F UI components: ≥ 3:1\n   - AAA normal text: ≥ 7:1\n   - AAA large text: ≥ 4.5:1\n\n5. Flag any pair that fails as a Cat 2 issue. Pre-populate the Contrast Checker widget\n   with the exact failing hex pair and the computed ratio.\n\n6. Also flag if no text\u002Fbackground token pairs can be identified — this means contrast\n   cannot be verified from tokens alone.\n```\n\n**Confidence upgrade:** If `get_variable_defs` returns usable color pairs, the Cat 2 audit upgrades from 🟡 Medium to 🟢 High confidence even if no screenshot is available. State this explicitly:\n- English: *\"Color contrast audited from design tokens (no screenshot required) — 🟢 High confidence.\"*\n- Korean: *\"색상 대비는 디자인 토큰에서 감사되었습니다 (스크린샷 불필요) — 🟢 높은 신뢰도.\"*\n\nIf `get_variable_defs` fails or returns no color pairs, fall back to screenshot-based visual assessment and 🟡 Medium confidence for Cat 2.\n\n### F3.6: Code Connect — Design-to-Code Mapping (if available)\n\nAfter variable definitions, attempt `get_code_connect_suggestions` on the audited node. This returns AI-suggested mappings between Figma components and real code components in the connected codebase.\n\n**What to do with the result:**\n\n```\nIf get_code_connect_suggestions returns mappings:\n  → For each suggested mapping (Figma component → code component):\n    - Note the component name, suggested code path, and confidence level\n    - Use this to enrich Cat 5 (Consistency) and Cat 17 (Tokens):\n      \"Button\u002FPrimary\u002FDefault\" → maps to \u003CButton variant=\"primary\"> in codebase\n    - Flag mismatches: Figma component name vs code component name divergence → 🟢 Tip\n    - Flag missing mappings: Figma components with no suggested code equivalent → 🟡\n      (component exists in design but not in codebase — handoff gap)\n\n  Also attempt get_code_connect_map to retrieve confirmed existing mappings:\n  → Confirmed mappings (user has already set up Code Connect) → show in report header\n  → No confirmed mappings → note \"Code Connect not configured — suggestions only\"\n\n  Add a Code Connect line to the REPORT HEADER when data is available:\n    \"Code Connect: [N] components mapped · [N] unmapped · [N] suggestions available\"\n\nIf get_code_connect_suggestions fails or returns empty:\n  → Skip silently. Do not mention it in the report.\n  → Code Connect requires the Figma Dev Mode and a connected codebase — not always available.\n```\n\n**Use for Cat 5 cross-check:**\n```\nWhen a component has a confirmed or suggested code mapping:\n  → Check if the Figma component name matches the code component name\n  → \"Button\u002FPrimary\" in Figma → \u003CPrimaryButton> in code → 🟢 Tip (minor naming drift)\n  → \"Button\u002FPrimary\" in Figma → \u003CBtn> in code → 🟡 Warning (naming too divergent)\n  → Figma has 12 button variants, code has 3 → 🟡 Warning (variant coverage gap)\n```\n\n**Use for developer handoff report:**\nWhen generating the Developer Handoff Report and Code Connect data is available, include a mapping table:\n\n```\n| Figma Component | Code Component | Status | Notes |\n|---|---|---|---|\n| Button\u002FPrimary\u002FDefault | \u003CButton variant=\"primary\"> | ✅ Mapped | — |\n| Card\u002FProduct | \u003CProductCard> | ✅ Mapped | — |\n| Modal\u002FConfirmation | — | 🟡 Unmapped | No code equivalent found |\n```\n\n### F4: Run the Audit\nWith context data, variable definitions, screenshot, and code connect data in hand, run the full audit below.\n\n### F5: Fix Directly in Figma (if requested)\nWhen the user selects \"Fix all Critical\" or \"Fix a specific issue\" and the original input was a Figma file (not a screenshot or code), apply fixes using `perform_editing_operations`. Always follow the safety rules in `references\u002Ffigma-mcp.md`.\n\n**Fix loop for Figma input:**\nFor each confirmed fix (user selected \"Yes, apply it\"):\n1. Look up the node ID from the audit (should have been captured during F2)\n2. **Pre-flight check:** Before calling `perform_editing_operations`, verify:\n   - The node ID exists in the context data captured during F2\n   - The node is not inside a component instance (see component instance caveat in `references\u002Ffigma-mcp.md`)\n   - The operation type matches the node type (e.g. `SET_FONT_SIZE` requires a text node)\n3. Call `perform_editing_operations` with the appropriate operation\n4. After each operation, call `get_screenshot` on the affected node to verify the change\n5. Show the screenshot and confirm ✅ with the before\u002Fafter values\n6. If the operation fails → see **Failure recovery** below\n\n**Failure recovery — partial failure handling:**\nIf `perform_editing_operations` throws an error or the screenshot shows the change did not apply:\n\n```\nStep 1: Identify the failure type\n  - \"Node not found\" → node ID is stale or incorrect. Re-call get_design_context to refresh.\n  - \"Cannot edit instance\" → node is inside a component instance. Find main component ID and retry there.\n  - \"Invalid operation\" → operation type doesn't match node type. Check node type in context data.\n  - \"Permission denied\" → file is view-only or in a shared library. Cannot edit via MCP.\n  - Unknown error → report to user and skip to next fix.\n\nStep 2: Report clearly to the user in their detected language\n  - English: \"⚠️ Fix [N] failed: [reason]. Skipping to the next issue — I'll note this one so you can apply it manually.\"\n  - Korean: \"⚠️ 수정 [N] 실패: [이유]. 다음 문제로 넘어갑니다 — 수동으로 적용할 수 있도록 기록해 두겠습니다.\"\n\nStep 3: Log the failed fix\n  Track all failed fixes in a list. After the loop completes, show a summary:\n  - English: \"N fixes applied ✅. N fixes need manual attention:\"\n  - Korean: \"N개 수정 완료 ✅. N개는 수동 적용이 필요합니다:\"\n  Then list each failed fix with the exact Figma right-panel value to enter manually.\n\nStep 4: Continue the loop\n  Never stop the entire fix loop because one fix failed. Skip the failed fix and continue.\n```\n\n**Operation type mapping — common audit fixes:**\n\n| Issue Type | Operation | Key Parameters |\n|---|---|---|\n| Off-grid width\u002Fheight | `SET_WIDTH` \u002F `SET_HEIGHT` | nodeId, value (snapped to 8pt) |\n| Off-grid padding | `SET_PADDING` | nodeId, paddingTop\u002FRight\u002FBottom\u002FLeft |\n| Off-grid gap | `SET_ITEM_SPACING` | nodeId, itemSpacing |\n| Auto-layout direction | `SET_LAYOUT_MODE` | nodeId, layoutMode |\n| Auto-layout alignment | `SET_PRIMARY_AXIS_ALIGN_ITEMS` | nodeId, primaryAxisAlignItems |\n| Text color contrast fail | `SET_FILL_COLOR` | nodeId, color: {r,g,b,a} in 0–1 range |\n| Font size too small | `SET_FONT_SIZE` | nodeId, fontSize |\n| Rename unlabelled layer | `RENAME_LAYER` | nodeId, name |\n| Touch target too small | `SET_WIDTH` + `SET_HEIGHT` | nodeId, 44 (minimum) |\n\n**If `perform_editing_operations` is not available:** Fall back to design direction mode for all fixes — describe the change spatially and provide the exact Figma right-panel values to enter manually. Never silently skip without informing the user.\n\n### F5.5: Generate Design System Rules (optional, post-audit)\n\nAfter the audit and fix loop complete, if the user asks \"can you generate design system rules?\" or \"set up design system enforcement\" — or if the audit found significant token\u002Fnaming issues — offer to call `create_design_system_rules`.\n\n```\nWhen to offer:\n  → Cat 17 (Tokens) score \u003C 70 — significant hardcoding found\n  → Component health \u003C 50% — low component coverage\n  → User explicitly asks for design system setup or enforcement\n  → Code Connect mappings were found (F3.6) — rules can reference real components\n\nWhat it does:\n  → Generates design system rules for the connected repository based on the\n    Figma file's component structure, token definitions, and naming conventions\n  → Rules can enforce: component naming, token usage, spacing scale, radius scale\n\nHow to offer (after fix loop):\n  English: \"I found significant design system gaps. Want me to generate design\n            system enforcement rules for your codebase based on this Figma file?\"\n  Korean: \"디자인 시스템 격차가 발견되었습니다. 이 Figma 파일을 기반으로 코드베이스에\n           대한 디자인 시스템 적용 규칙을 생성할까요?\"\n\nIf yes → call create_design_system_rules on the file key\nIf the call fails or is unavailable → note \"Design system rule generation requires\n  Figma Dev Mode and a connected repository\" and skip.\n```\n\n---\n\n## Step 1.5: Set Confidence Level — and act on it\n\nDeclare confidence based on input type, then **change audit behaviour accordingly**. Confidence is not just a label.\n\n| Input Type | Confidence | Behaviour changes |\n|---|---|---|\n| Figma file via MCP | 🟢 High | Full audit. All deductions apply. Exact values cited. |\n| Code (HTML\u002FCSS\u002FReact) | 🟢 High | Full audit. All deductions apply. Quote actual values in fixes. |\n| Screenshot \u002F image | 🟡 Medium | Visual audit only. Reduce deductions by 50% for issues that require exact values (spacing, token usage, exact px). Flag estimated values explicitly. Skip Design Tokens category entirely. |\n| Description only | 🔴 Low | Do not run a scored audit. Instead: ask for visuals, explain what you *can* observe from the description, list likely risk areas. Never assign a score on description alone. |\n\n**At 🟡 Medium confidence (screenshot input):**\n- Flag every estimated value: > \"Spacing appears to be ~12px (estimated from visual)\"\n- Do not cite exact hex values — describe color relationship instead: > \"Text appears low contrast against the background — likely below 4.5:1\"\n- Skip categories that are impossible to assess visually: Design Tokens, exact Typography metrics\n- Add a banner at the top of the report in the user's detected language:\n  - English: *⚠️ **Medium confidence audit** — input was a screenshot. Values are estimated from visual inspection. For an exact audit, share the Figma file or component code.*\n  - Korean: *⚠️ **중간 신뢰도 감사** — 스크린샷을 기반으로 했습니다. 값은 시각적 검토에 의해 추정되었습니다. 정확한 감사를 위해 Figma 파일 또는 컴포넌트 코드를 공유해 주세요.*\n- Apply a **−50% deduction modifier** to all 🟡 Warning and 🟢 Tip issues that depend on exact values. Only 🔴 Critical and 🚫 Blocker visual issues (clear contrast failures, missing states visible in screenshot) take full deductions.\n- **🚫 Blockers on screenshots:** Only flag as Blocker if the violation is visually unambiguous (e.g. clearly failing contrast, clearly missing label). Downgrade to 🔴 Critical with a note if confidence is insufficient to confirm a legal violation.\n\n**At 🟢 High confidence (Figma or code):**\n- Cite exact values in every issue: \"padding: 13px — should be 12px or 16px (8pt grid)\"\n- Reference specific layer names (Figma) or line numbers (code)\n- Full deductions apply, no modifiers\n\n---\n\n## Step 1.6: Code Input Extraction (HTML \u002F CSS \u002F React \u002F Vue)\n\nWhen the input is code (not a Figma file), extract audit data using this parallel spec. This ensures the Type Scale Stack, component health, consistency checks, and microcopy analysis all work on code input — not just Figma.\n\n### Code Audit Scope Selector\n\nBefore extracting values, check the size and nature of the input:\n\n```\nIf input is a single component file (\u003C 150 lines):\n  → Proceed directly with full audit. No need to ask.\n\nIf input is a large file or multiple files (150+ lines or 3+ files):\n  → Present scope widget before auditing:\n    question: \"This is a large codebase — what should I focus on?\"\n    type: multi_select\n    options:\n      \"Full audit — everything \u002F 전체 감사\"\n      \"Accessibility only (Cat 6, 7) \u002F 접근성\"\n      \"Design tokens & consistency (Cat 5, 17) \u002F 토큰 & 일관성\"\n      \"Responsive & layout (Cat 3, 10) \u002F 반응형 & 레이아웃\"\n      \"Typography & color (Cat 1, 2) \u002F 타이포그래피 & 색상\"\n      \"Motion & states (Cat 8, 11) \u002F 모션 & 상태\"\n\nIf the user has already indicated focus in their message\n(e.g. \"check the accessibility\", \"is the contrast ok\"):\n  → Skip the widget, infer the scope, note it in the report header.\n```\n\nState the audit scope at the top of the report under the REPORT HEADER:\n- English: `\"Scope: [selected categories] — [N] files, ~[N] lines\"`\n- Korean: `\"범위: [선택된 카테고리] — [N]개 파일, 약 [N]줄\"`\n\n### Framework Detection — Do This First\n\nBefore extracting any values, identify the framework. This changes how values are extracted and how fixes are written.\n\n```\nSignals to look for:\n\n  HTML\u002FCSS (vanilla)\n    → \u003Cdiv>, \u003Cbutton>, \u003Cinput> tags with class=\"\" or style=\"\"\n    → Standalone .css or .html files\n    → No import statements or JSX syntax\n\n  React \u002F JSX\n    → import React \u002F import { useState } \u002F import { ... } from ...\n    → JSX syntax: \u003CComponent \u002F>, className=, onClick=\n    → .jsx or .tsx file extension\n    → Possible: styled-components, CSS modules, inline styles\n\n  Vue\n    → \u003Ctemplate>, \u003Cscript setup>, \u003Cstyle scoped> blocks\n    → v-bind, v-model, :class, @click directives\n    → .vue file extension\n\n  Tailwind CSS (any framework)\n    → className \u002F class values with utility prefixes:\n      text-*, bg-*, p-*, m-*, gap-*, rounded-*, border-*, font-*, leading-*\n    → Often combined with React or Vue\n\n  CSS-in-JS (styled-components \u002F emotion)\n    → const Wrapper = styled.div`...`\n    → css`...` template literals\n    → Values are in JS template strings, not CSS files\n\n  CSS custom properties \u002F design tokens\n    → var(--token-name) in CSS values\n    → :root { --color-primary: #... } definitions\n\nDeclare the detected framework at the top of the audit:\n  \"Detected: React + Tailwind CSS\"\n  \"Detected: Vue 3 (Composition API) + CSS Modules\"\n  \"Detected: Vanilla HTML\u002FCSS\"\n\nThis declaration affects:\n  - How values are extracted (see per-category specs below)\n  - How fixes are written (Tailwind class swaps vs CSS property changes vs JSX prop changes)\n  - Which categories get code-specific superpower checks (see Cat 6, 8, 9, 13, 17)\n```\n\n### Design System Detection (run after framework detection)\n\nAfter identifying the framework, check for a known component library or design system. This changes how issues are interpreted — overriding a design system's defaults is often the root cause, not the symptom.\n\n```\nDetection signals:\n\n  Material UI (MUI) \u002F Joy UI\n    → import { Button, TextField, ... } from '@mui\u002Fmaterial' or '@mui\u002Fjoy'\n    → sx prop usage: sx={{ color: '...' }} or sx={{ p: 2 }}\n    → theme.palette.*, theme.spacing(), ThemeProvider\n\n  Chakra UI\n    → import { Box, Stack, ... } from '@chakra-ui\u002Freact'\n    → \u003CBox p={4} color=\"gray.700\"> — Chakra prop shorthand\n    → ChakraProvider in root\n\n  shadcn\u002Fui\n    → import { Button } from \"@\u002Fcomponents\u002Fui\u002Fbutton\"\n    → cn() utility from \"lib\u002Futils\" for class merging\n    → Radix UI primitives as peer deps (package.json: @radix-ui\u002F*)\n\n  Ant Design\n    → import { Button, Form, ... } from 'antd'\n    → ConfigProvider in root\n\n  Radix UI (headless)\n    → import * as Dialog from '@radix-ui\u002Freact-dialog'\n    → Direct Radix primitive imports\n\n  Bootstrap \u002F React-Bootstrap\n    → className=\"btn btn-primary\" or import { Button } from 'react-bootstrap'\n    → bootstrap CSS imported\n\n  None detected → treat as custom\u002Fvanilla (standard audit rules apply)\n\nDeclare at the top of the audit:\n  \"Detected: React + MUI v5\"\n  \"Detected: Next.js + shadcn\u002Fui + Tailwind CSS\"\n  \"Detected: Vue 3 + Ant Design\"\n```\n\n**Design system — system-specific issue types (add these to relevant categories when a DS is detected):**\n\n```\nMUI \u002F Joy UI:\n  Cat 6 — Accessibility:\n    → button:focus { outline: none } overriding MUI's focus-visible → 🔴 Critical\n      \"Overriding MUI's focus-visible breaks keyboard accessibility — remove the override\n       or use theme.components.MuiButton.styleOverrides.root with focus-visible targeting\"\n    → Calling .MuiButton-root CSS override without :focus-visible scope → 🟡\n  Cat 17 — Tokens:\n    → Hardcoded color values bypassing theme.palette → 🟡 \"Use theme.palette.primary.main\"\n    → sx={{ fontSize: '14px' }} instead of sx={{ fontSize: 'body2.fontSize' }} → 🟢 Tip\n\nChakra UI:\n  Cat 3 — Spacing:\n    → \u003CBox p=\"13px\"> instead of \u003CBox p={3}> (Chakra spacing scale: 3 = 12px) → 🟡\n    → Arbitrary spacing string bypassing Chakra's scale → 🟡\n  Cat 17 — Tokens:\n    → Hardcoded color strings bypassing the Chakra color scheme (\"gray.700\" is correct; \"#374151\" is not) → 🟡\n\nshadcn\u002Fui:\n  Cat 5 — Consistency:\n    → Direct className overrides on shadcn components without using the cn() utility → 🟡\n      (bypasses variant system — use variant prop or extend via cva())\n    → Multiple custom button implementations alongside shadcn's Button → 🟡\n\nAnt Design:\n  Cat 5 — Consistency:\n    → Direct style prop overrides on antd components instead of ConfigProvider\u002Ftheme → 🟡\n  Cat 6 — Accessibility:\n    → antd Form.Item without name prop → 🟡 (label\u002Finput association breaks)\n\nGeneral rule for all design systems:\n  → If a DS is detected AND a hardcoded value overrides its scale → always flag\n    with the system-specific fix path, not just the generic CSS fix\n  → Never flag system defaults as issues — only flag when the defaults are\n    overridden in a way that breaks the design or accessibility\n```\n\n### Typography extraction from code\n```\nCollect all unique font-size values across the codebase\u002Fcomponent:\n  - CSS: font-size declarations (px, rem, em)\n  - React\u002FVue: inline styles, className references to utility classes (e.g. text-sm, text-lg)\n  - Convert rem to px (base 16px unless overridden): 1rem = 16px, 0.875rem = 14px\n\nMap to roles by relative size and frequency (same logic as Figma):\n  - Largest → heading, next → subheading, most-frequent → body, smallest → caption\n\nCheck against typography.md rules and flag issues.\nTrigger Type Scale Stack widget with extracted sizes — same as Figma path.\n```\n\n### Color extraction from code\n```\nCollect all color values:\n  - CSS: color, background-color, border-color (hex, rgb, hsl, var(--token))\n  - Tailwind: color utility classes (text-gray-900, bg-white, border-blue-500)\n  - CSS variables: resolve var(--color-x) to actual hex if defined in the file\n\nFor each foreground\u002Fbackground pair visible in context:\n  - Run WCAG luminance contrast check (same algorithm as F3.5)\n  - Trigger Contrast Checker widget if any pair fails\n\nHardcoded values (not var(--token)) → flag for Cat 17 (token coverage)\n```\n\n### Spacing extraction from code\n```\nCollect spacing values:\n  - CSS: padding, margin, gap, width, height in px\n  - Tailwind: spacing utility classes (p-4 = 16px, m-3 = 12px, gap-2 = 8px)\n\nTailwind spacing scale: 1 unit = 4px. So p-4 = 16px ✅, p-3 = 12px ✅, p-[13px] = off-grid 🟡.\n\nCheck for off-grid values (not multiples of 4). Trigger 8pt Grid Visualizer widget on first offender.\n```\n\n### Component health from code\n```\nInstead of layer tally, assess structural patterns:\n  - Are UI elements defined as reusable components\u002Ffunctions? (React: \u003CButton>, Vue: \u003CBaseInput>) → ✅\n  - Are there inline one-off HTML structures with no component wrapper? → 🟡\n  - Count unique component definitions vs total render instances\n\nIf the input is a single component file (not an app):\n  - Note \"Single component input — cross-file component coverage cannot be assessed\"\n  - Audit the internal structure for prop hygiene, named slots, etc.\n```\n\n### Microcopy extraction from code\n```\nCollect all string literals that appear in the UI:\n  - Button children: \u003Cbutton>Submit\u003C\u002Fbutton>, \u003CButton>OK\u003C\u002FButton>\n  - Input placeholders: placeholder=\"Enter email\"\n  - Labels: \u003Clabel>First name\u003C\u002Flabel>\n  - Error strings: \"Invalid input\", \"Required\"\n  - Empty state text\n\nApply the same per-role checks as Cat 12. Cite line numbers instead of node IDs:\n  🟡 placeholder=\"eg: 5\" (line 47) — informal prefix. Use e.g. 5 or a unit hint.\n```\n\n### 2-frame comparison from code\n```\nIf the user shares 2+ component files or code snippets in the same session:\n  - Extract and compare button border-radius, primary color, body font-size across files\n  - Flag cross-file inconsistencies the same way as the Figma 2-frame compare\n```\n\n---\n\n## Step 1.7: Code Fix Output Format\n\nWhen the input is code, fixes must be output as actual before\u002Fafter code diffs — not descriptions. This is the code equivalent of F5 (Figma fix loop).\n\n### Fix format rules\n\n**Always output diffs in this format for every code fix:**\n\n```\nIssue: [issue description]\nFile: [filename or \"component\" if single file] · Line [N] (if known)\n\nBefore:\n  [exact original code — 1–5 lines of context]\n\nAfter:\n  [corrected code with the fix applied]\n\nWhy: [one-sentence reason referencing the rule]\n```\n\n**Framework-aware fix output:**\n\n```\nVanilla CSS fix:\n  Before: padding: 13px;\n  After:  padding: 12px;   \u002F* snapped to 4pt grid *\u002F\n\nTailwind fix:\n  Before: className=\"p-[13px]\"\n  After:  className=\"p-3\"  \u002F* 12px — nearest grid value *\u002F\n\nReact inline style fix:\n  Before: style={{ padding: 13 }}\n  After:  style={{ padding: 12 }}\n\nCSS custom property fix (prefer this over hardcoded):\n  Before: color: #8a8a8a;\n  After:  color: var(--color-text-secondary);\n\nAria fix:\n  Before: \u003Cimg src=\"logo.png\" \u002F>\n  After:  \u003Cimg src=\"logo.png\" alt=\"Company logo\" \u002F>\n\nFocus style fix:\n  Before: button:focus { outline: none; }\n  After:  button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }\n```\n\n**Fix grouping:** When the same issue repeats across lines, show one representative diff and note the others:\n```\n  Fix shown for line 23. Apply the same pattern to lines 31, 47, 89.\n```\n\n**When to offer a fix loop:**\nAfter completing the audit report, if there are 🔴 Critical issues, offer:\n- English: *\"Want me to output corrected code for all critical issues?\"*\n- Korean: *\"모든 중요 문제에 대한 수정된 코드를 출력해 드릴까요?\"*\n\nIf yes → output diffs for every critical in severity order, then warnings if requested.\n\n---\n\n## Step 2: Run the Design Audit\n\n> ⚠️ **OUTPUT FORMAT IS MANDATORY — DO NOT DEVIATE**\n> Every audit MUST end with a scored report using the Strict Output Template in Step 3.\n> This means: a numeric score out of 100, score arithmetic shown explicitly, issues grouped\n> by severity (🚫\u002F🔴\u002F🟡\u002F🟢), an Accessibility Score, and the What Next widget.\n> Do NOT produce a generic UX review, bullet-point critique, or free-form feedback instead.\n> If you are unsure of any value, estimate it and flag with 🟡 Medium confidence — but always\n> produce the scored report. Skipping the score is never acceptable.\n\nCheck each category. Skip clearly inapplicable ones. Mark each issue:\n\n- 🔴 **Critical** — Breaks usability or accessibility. Must fix. **(-8 points each)**\n- 🟡 **Warning** — Weakens the design. Should fix. **(-4 points each)**\n- 🟢 **Tip** — Polish-level improvement. Nice to have. **(-1 point each)**\n\n**Scoring formula (always show this explicitly in every report):**\n```\nScore = 100 − (blockers × 12) − (criticals × 8) − (warnings × 4) − (tips × 1)\n```\nShow the arithmetic inline so the user can see exactly how the score was reached. Example:\n> Score: 100 − (3 × 8) − (5 × 4) − (2 × 1) = 100 − 24 − 20 − 2 = **54\u002F100**\n\nNever just show the final number. The breakdown makes the score feel earned and tells the user exactly what to fix to move the needle. If 🟡 Medium confidence applies a −50% modifier, show that too:\n> Score: 100 − (2 × 8) − (3 × 4 × 0.5) − (1 × 1 × 0.5) = 100 − 16 − 6 − 0.5 = **77\u002F100** *(medium confidence modifier applied to warnings\u002Ftips)*\n\n---\n\n### CATEGORY 1: Typography\n*Full rules → `references\u002Ftypography.md`*\n\n- [ ] **Hierarchy** — Clear visual difference between headings, subheadings, body? (Size, weight, or color should vary meaningfully.)\n- [ ] **Font count** — Max 2 font families. More = visual chaos.\n- [ ] **Body text size** — Min 14px, 16px preferred. Never below 12px for any visible text.\n- [ ] **Line height** — 1.4–1.6× the font size for body text.\n- [ ] **Line length** — 60–80 characters per line. Wide lines (100+ chars) tire the eyes.\n- [ ] **Text contrast** — WCAG AA: 4.5:1 for normal text, 3:1 for large text (18px+).\n- [ ] **Alignment** — Don't randomly mix left-aligned and center-aligned body text.\n\n**→ Widget trigger:** Always attempt to trigger the **Type Scale Stack** widget on Figma or code input — do not wait for a typography issue to be found first. Extract all font sizes from `get_design_context` data directly:\n\n```\nFrom get_design_context, collect all unique fontSize values across all text nodes.\nMap each size to its likely role based on relative size and usage frequency:\n  - Largest 1–2 sizes → heading (h1, h2)\n  - Mid-range sizes → subheading \u002F label (h3, h4, label)\n  - Most frequent size → body\n  - Smallest sizes → caption \u002F helper\n\nThen check:\n  - Any body text fontSize \u003C 14 → 🔴 Critical\n  - Two sizes within 2px of each other → 🟡 Warning (too close to distinguish)\n  - Same fontSize used for visually different roles → 🟡 Warning (relies on weight alone)\n  - No size below 12px → ✅\n  - Scale ratio between adjacent levels (e.g. body→h2) \u003C 1.2 → 🟡 Warning (too flat)\n  - More than 5 distinct font sizes → 🟡 Warning (scale too complex)\n\nPass the collected sizes and roles as data to the widget.\nIf get_design_context returns no text nodes or fontSize data, skip the widget silently.\n```\n\nIntroduce with one sentence in the user's detected language:\n- English: *\"Here's how your type scale stacks up visually.\"*\n- Korean: *\"타입 스케일을 시각적으로 확인해 보세요.\"*\n\n---\n\n### CATEGORY 2: Color & Contrast\n*Full rules → `references\u002Fcolor.md`*\n\n- [ ] **WCAG contrast** — Normal text ≥ 4.5:1, large text ≥ 3:1, UI components ≥ 3:1.\n- [ ] **Color-only meaning** — Never use color as the *only* signal. Pair with icon or text.\n- [ ] **Palette size** — 1 primary + 1 accent + neutrals beats many colors.\n- [ ] **Color consistency** — Same color = same meaning everywhere.\n- [ ] **Low-contrast combos** — Light gray on white, yellow on white, white on light blue all commonly fail.\n- [ ] **Color blindness risk** — Red\u002Fgreen pairs (most common — affects ~8% of men), blue\u002Fyellow pairs, and low-saturation combinations all pose risk. Never rely on hue alone to convey state.\n\n**→ Widget trigger:** If any contrast issue is found — whether from `get_variable_defs` color token analysis (preferred) or from visual screenshot assessment — use the Visualizer to render the **Contrast Checker** widget. Pre-populate the foreground and background hex values from the failing pair. When contrast was calculated from design tokens, show the exact token names alongside the hex values (e.g. `color\u002Ftext\u002Fsecondary #8A8A8A on color\u002Fsurface\u002Fdefault #FFFFFF — ratio: 3.1:1 ❌`). The widget shows all 5 WCAG pass\u002Ffail levels live, a real text preview at heading\u002Fbody\u002Flabel sizes, and automatically calculates the nearest passing hex value as a fix suggestion. Introduce with one sentence in the user's detected language:\n- English: *\"Use this to test fixes — the widget calculates the exact color adjustment needed.\"*\n- Korean: *\"이 도구로 수정 사항을 바로 테스트해 보세요 — 통과 가능한 정확한 색상값을 자동으로 계산해 드립니다.\"*\n\n**Color blindness context — add to every Cat 2 color issue flagged:**\nFor each failing or risky color pair, append a one-line color blindness note:\n```\nPair type → Color blindness note to append:\n\n  Red + Green (e.g. red error on green success, red text on green bg):\n    → \"⚠️ Deuteranopia\u002FProtanopia risk — red and green are indistinguishable for ~8% of men.\n       Add a non-color signal: icon, pattern, or label.\"\n\n  Red\u002FOrange + background (error states, alerts):\n    → \"⚠️ Protanopia risk — reds appear dark brown\u002Fblack. Pair with an icon (✕, ⚠) and text.\"\n\n  Blue + Yellow \u002F Blue + Orange:\n    → \"⚠️ Tritanopia risk — blue and yellow are confused. Use contrast + shape cues.\"\n\n  Low saturation pairs (grey on grey, muted tones):\n    → \"⚠️ All types — low-saturation pairs affect all color blindness types. Increase contrast.\"\n\n  High-contrast black\u002Fwhite pairs:\n    → No color blindness note needed — safe for all types.\n\nOnly add the note when the pair is actually present in the design. Never add generic warnings\nto every color. One line, appended after the fix suggestion.\n```\n\n---\n\n### CATEGORY 3: Spacing & Layout\n*Full rules → `references\u002Fspacing.md`*\n\n- [ ] **8-point grid** — Spacing\u002Fsizing should be multiples of 8 (or 4). Arbitrary values look accidental.\n- [ ] **Proximity** — Related items close together, unrelated far apart.\n- [ ] **Padding consistency** — Uniform padding inside cards\u002Fcontainers.\n- [ ] **Breathing room** — Enough whitespace? Dense UIs overwhelm.\n- [ ] **Alignment** — Elements align to a shared edge or center.\n- [ ] **Content margins** — Consistent left\u002Fright margins, not edge-to-edge.\n\n**→ Widget trigger:** If any off-grid spacing value is found, use the Visualizer to render the **8pt Grid Visualizer** widget. Pre-populate the input with the first offending value found. The widget shows the value on a ruler alongside valid grid neighbours, calculates the snap distance, and pre-colors all common spacing values as on\u002Foff-grid. Introduce with one sentence in the user's detected language:\n- English: *\"Here's where that value sits on the grid and what to snap it to.\"*\n- Korean: *\"해당 값이 그리드에서 어디에 위치하는지, 어디로 맞춰야 하는지 확인해 보세요.\"*\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nOff-grid value detection:\n  → Collect all padding, margin, gap, width, height values in px\n  → Flag any value not divisible by 4 → 🟡 Warning\n  → Flag any value not divisible by 8 → 🟢 Tip (4pt is acceptable, 8pt is preferred)\n  → Tailwind: arbitrary values like p-[13px], gap-[22px] → 🟡\n  → Tailwind standard classes (p-4, gap-3) are on-grid by definition → ✅\n\n  Deduplicate: if the same off-grid value appears 5+ times, report once with count:\n    🟡 \"padding: 13px — appears in 7 places. Snap to 12px (p-3) or 16px (p-4).\"\n\nPadding consistency:\n  → Cards\u002Fpanels with mismatched padding sides (paddingTop ≠ paddingLeft etc.) → 🟡\n    Exception: intentional asymmetric padding (e.g. more horizontal than vertical) is fine\n    if it appears consistently across all similar components.\n  → Mixed shorthand: some components use padding: 16px, others padding: 16px 24px → 🟡\n\nz-index escalation:\n  → z-index values outside expected ranges (see spacing.md z-index table) → 🟡\n  → z-index: 9999 or z-index: 99999 on non-dev-tool elements → 🟡\n  → Multiple elements with the same z-index in overlapping contexts → 🟡\n\nContent margin check:\n  → Body\u002Fmain container with no max-width → 🟢 Tip (content stretches on wide screens)\n  → max-width > 1440px on body text containers → 🟢 Tip\n  → margin: 0 with no padding on outermost container → 🟡 (content touches screen edge)\n\nLogical properties (RTL safety):\n  → margin-left \u002F margin-right used in layout (not decorative) → 🟢 Tip\n    (prefer margin-inline-start \u002F margin-inline-end for RTL compatibility)\n  → padding-left \u002F padding-right on nav or directional containers → 🟢 Tip\n```\n\n---\n\n### CATEGORY 4: Visual Hierarchy & Focus\n\n- [ ] **One primary action per screen** — One thing should be obviously most important.\n- [ ] **Reading patterns** — Users scan in F or Z patterns. Key info along those paths.\n- [ ] **Size = importance** — Bigger = more important. Check it maps correctly.\n- [ ] **Contrast = importance** — High contrast = foreground. Check it maps correctly.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nFont-size prominence mapping:\n  → Collect all font-size values across the file (same as Cat 1 extraction)\n  → Map: largest = most prominent, most frequent = body, smallest = least prominent\n  → If the largest font-size element is not the primary CTA or heading → 🟡 Warning\n    (visual hierarchy may be inverted — the biggest thing should matter most)\n  → If body copy and a CTA\u002Fbutton share the same font-size → 🟡 Warning\n    (no size signal to distinguish the action from surrounding text)\n\nz-index stacking ladder:\n  → Collect all z-index values across the file\n  → Map relative stacking: base content (0–1) \u003C sticky headers (10–20) \u003C dropdowns (100–200)\n    \u003C modals (300–400) \u003C tooltips (500+) \u003C dev overlays (9999)\n  → z-index values not following a logical step ladder → 🟡 Warning\n    (e.g. modal at z-index 5 when a sticky header is at z-index 10 = modal renders behind header)\n  → Multiple elements at the same z-index in potentially overlapping contexts → 🟡\n  → z-index: 9999 \u002F 99999 on non-overlay elements → 🟡 (escalation smell)\n\nElement weight ratios:\n  → Identify the primary CTA (largest button, most prominent button by class\u002Ftype)\n  → Compare its font-weight and font-size against surrounding body text\n  → Primary CTA font-weight ≤ body font-weight → 🟡 Warning (CTA doesn't feel more important)\n  → Primary CTA font-size = body font-size with no weight or color differentiation → 🟡\n\nOverchoice check:\n  → Collect all interactive sibling elements (buttons, links, cards) within the same container\n  → If 4+ siblings share identical: font-size, font-weight, and background-color (or all lack background)\n    AND none is visually differentiated as primary → 🟡 Warning\n    \"4+ equal-weight options with no primary action — users experience decision paralysis.\n     Establish one clear primary action per section.\"\n  → If 6+ sibling options share identical visual treatment → 🔴 Critical\n    (Overchoice Paradox: too many undifferentiated choices measurably reduce decision quality and\n     completion rates. Demote, group, or hide lower-priority options.)\n  → Exception: lists (ul\u002Fol), nav menus, and data tables are exempt — overchoice applies to\n    action-oriented UI (CTAs, product cards, feature choices), not content lists.\n  → Korean: \"4개 이상 동일한 시각적 비중의 선택지 — 결정 마비 위험. 주요 액션을 명확히 구분하세요.\"\n\nOnly run this category if:\n  → Font-size data was successfully extracted (Cat 1 extraction already done)\n  Otherwise: note \"Visual hierarchy inferred from screenshot — see Cat 1 for typography data\"\n```\n\n---\n\n### CATEGORY 5: Consistency\n*Corner radius full rules → `references\u002Fcorner-radius.md`*\n\n- [ ] **Component reuse** — Buttons, inputs, cards identical throughout. No one-off styles.\n- [ ] **Icon family** — All icons from the same set (same style, same stroke weight).\n- [ ] **Corner radius scale** — Radii should come from a fixed set (e.g. 4, 8, 12, 16, 24px, full). Arbitrary values (7px, 11px) look accidental.\n- [ ] **Nested radius rule** — When an element sits inside another, outer radius = inner radius + padding. If the inner element has 8px radius and 12px padding, the outer must be ~20px. Mismatched nesting makes corners look \"poking out.\"\n- [ ] **Size-proportional radius** — Larger elements need larger radii. A small badge with 12px radius looks right. A large modal with 4px radius looks barely rounded.\n- [ ] **Pill shapes are intentional** — border-radius ≥ 50% of height creates a pill. Should be deliberate (tags, toggles, badges) not accidental.\n- [ ] **Zero radius is a choice** — Sharp corners (0px) should be a design language decision, not a forgotten default.\n- [ ] **Contextual radius** — Modals\u002Fsheets anchored to screen edges should have rounded top corners, square bottom. Floating elements fully rounded.\n- [ ] **Interaction states** — Hover, active, disabled states all visually distinct.\n\n**2-frame consistency compare mode:**\nWhen the audit session has 2+ frames audited (e.g. file has multiple pages, or the user shares a second frame for comparison), automatically cross-check these values between frames:\n\n```\nCross-frame checks (run silently, report only mismatches):\n  - Button corner radius: same value on both frames?\n  - Primary button fill color: same hex\u002Ftoken?\n  - Body font size: same value?\n  - Input field height: same?\n  - Primary heading font weight: same?\n  - Icon style: outline vs filled — consistent?\n\nReport cross-frame inconsistencies as:\n  🟡 Warning: \"[Property] differs between frames: [Frame A] = [value], [Frame B] = [value]\"\n  Example: \"Button corner radius: 8px on NTIR form, 4px on Dashboard screen — pick one.\"\n\nOnly run cross-frame checks when you have context data for 2+ frames in the session.\nSingle-frame audits skip this silently — do not mention it.\n```\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nMultiple button implementations:\n  → Collect all button-like elements: \u003Cbutton>, \u003Ca role=\"button\">, elements with onClick\n  → Group by visual role: primary (filled), secondary (outlined), ghost (text-only)\n  → If primary buttons have more than 1 unique background-color value → 🔴 Critical\n    (multiple primary button colors = broken visual language)\n  → If buttons of the same role have different border-radius values → 🟡 Warning\n  → If buttons of the same role have different font-size values → 🟡 Warning\n\nInconsistent border-radius:\n  → Collect all border-radius values applied to cards, panels, modals, buttons, inputs\n  → Group by element type (cards together, buttons together, inputs together)\n  → More than 2 distinct radius values per element type → 🟡 Warning\n    \"Cards use 3 different radius values: 4px, 8px, 12px — pick one.\"\n  → Arbitrary radius values (7px, 11px, 13px) not on a defined scale → 🟢 Tip\n\nColour consistency:\n  → Collect all background-color \u002F color values used for the same semantic role\n    (e.g. all primary button backgrounds, all body text colors)\n  → Same semantic role using 2+ different hex values (without token aliasing) → 🟡\n    \"Primary button uses #7c3aed in one place and #6d28d9 in another\"\n\nDuplicate style blocks:\n  → Scan for CSS rule blocks with identical property sets applied to different selectors → 🟢 Tip\n    (suggests a component opportunity — these should share a class)\n  → React\u002FVue: identical JSX style props repeated across 3+ components → 🟢 Tip\n\nInteraction state coverage:\n  → For each interactive element type (button, link, input, card), check:\n    → :hover defined? → ✅\n    → :focus or :focus-visible defined? → ✅\n    → :active defined? → 🟢 Tip if missing\n    → .disabled or [disabled] styled? → 🟡 if missing\n  → Inconsistency: some buttons have :hover, others don't → 🟡 Warning\n```\n\n---\n\n### CATEGORY 6: Accessibility (A11y \u002F WCAG)\n\n- [ ] **Touch targets** — Interactive elements ≥ 44×44px (iOS) or 48×48dp (Material).\n- [ ] **Focus states** — Visible focus ring on every keyboard-navigable element.\n- [ ] **Alt text readiness** — Meaningful images need alt text. Decorative = `aria-hidden`.\n- [ ] **Form labels** — Visible label on every input. Placeholder alone is not a label.\n- [ ] **Error messages** — Text description of errors, not just red border\u002Fcolor change.\n- [ ] **Reading order** — Visual order matches logical\u002FDOM order for screen readers.\n- [ ] **Motion sensitivity** — Animations respect `prefers-reduced-motion`.\n- [ ] **Link clarity** — Links distinguishable from text by more than color alone.\n\n**📋 Code input: deeper checks available (run these automatically)**\n```\nWhen auditing HTML\u002FReact\u002FVue code, check directly:\n\n  aria-label \u002F aria-labelledby\n    → Every \u003Cbutton> or \u003Ca> without visible text must have aria-label\n    → Icon buttons: \u003Cbutton aria-label=\"Close\">\u003CIcon \u002F>\u003C\u002Fbutton> ✅\n    → Missing: \u003Cbutton>\u003CIcon \u002F>\u003C\u002Fbutton> → 🔴 Critical\n\n  alt attributes on \u003Cimg>\n    → \u003Cimg src=\"...\" \u002F> (no alt) → 🔴 Critical\n    → \u003Cimg src=\"...\" alt=\"\" \u002F> (decorative, intentional empty) → ✅\n    → \u003Cimg src=\"logo.png\" alt=\"Company logo\" \u002F> → ✅\n\n  focus styles\n    → button:focus { outline: none } or *:focus { outline: none } → 🔴 Critical\n    → :focus-visible with visible outline → ✅\n    → Search for outline: none \u002F outline: 0 across all CSS\n\n  role attributes\n    → Custom interactive elements (\u003Cdiv onClick=...>) missing role=\"button\" → 🟡\n    → Landmark roles present: role=\"main\", role=\"nav\", role=\"complementary\" → ✅\n\n  tabIndex misuse\n    → tabIndex > 0 on any element → 🟡 (breaks natural tab order)\n    → tabIndex=\"-1\" on programmatically focused elements → ✅\n\n  input label association\n    → \u003Cinput id=\"email\" \u002F> must have \u003Clabel for=\"email\"> or aria-label → 🔴 if missing\n    → Placeholder-only inputs → 🔴\n\n  Color contrast (code path)\n    → Extract foreground\u002Fbackground pairs from CSS, run WCAG check programmatically\n    → More precise than visual estimate — cite exact ratio\n\n  SVG accessibility:\n    → Inline \u003Csvg> used decoratively (icon, illustration) without aria-hidden=\"true\" → 🔴 Critical\n      Correct: \u003Csvg aria-hidden=\"true\" focusable=\"false\">...\u003C\u002Fsvg>\n      Why: Screen readers announce SVG contents as text if not hidden, creating noise\n    → Inline \u003Csvg> used as a meaningful image (logo, chart, diagram) without role=\"img\"\n      AND a \u003Ctitle> element → 🔴 Critical\n      Correct: \u003Csvg role=\"img\" aria-labelledby=\"icon-title\">\u003Ctitle id=\"icon-title\">Company logo\u003C\u002Ftitle>...\u003C\u002Fsvg>\n    → \u003Csvg> with focusable=\"true\" (IE default) in an icon-only button → 🟡 Warning\n      (creates double tab stop — icon receives focus separately from its button wrapper)\n    → \u003Cuse href=\"...\"> or \u003Cuse xlink:href=\"...\"> referencing a \u003Csymbol> — check the \u003Csymbol> has a \u003Ctitle> → 🟡\n```\n\n---\n\n### CATEGORY 7: Forms & Inputs\n\n- [ ] **Label placement** — Labels above inputs (not beside or inside). Fastest to scan.\n- [ ] **Input sizing** — Wide enough to show typical content.\n- [ ] **Required field marking** — Asterisk (*) with legend, or label optional fields instead.\n- [ ] **Validation timing** — Validate on blur (leaving field), not only on submit.\n- [ ] **Error placement** — Error messages directly below the relevant field.\n- [ ] **Field grouping** — Related fields visually grouped (less space within, more between groups).\n- [ ] **Submit button state** — Loading state while submitting. Disable after first click.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\ninput type correctness:\n  → \u003Cinput type=\"text\"> for email → 🟡 should be type=\"email\"\n  → \u003Cinput type=\"text\"> for password → 🔴 should be type=\"password\"\n  → \u003Cinput type=\"text\"> for phone → 🟡 should be type=\"tel\"\n  → \u003Cinput type=\"text\"> for numbers → 🟡 should be type=\"number\" or inputMode=\"numeric\"\n  → \u003Cinput type=\"text\"> for URLs → 🟡 should be type=\"url\"\n  → \u003Cinput type=\"submit\"> instead of \u003Cbutton type=\"submit\"> → 🟢 Tip (button is more styleable)\n\nautocomplete attributes:\n  → Name fields missing autocomplete=\"name\" \u002F autocomplete=\"given-name\" → 🟡\n  → Email fields missing autocomplete=\"email\" → 🟡\n  → Password fields missing autocomplete=\"current-password\" or \"new-password\" → 🟡\n  → Credit card fields missing autocomplete=\"cc-number\" etc. → 🟡\n  → Cite the field and the missing value\n\nrequired + aria-required:\n  → \u003Cinput required> without aria-required=\"true\" → 🟢 Tip (redundant but explicit for AT)\n  → Required inputs with no visual indicator (* or \"(required)\" label) → 🟡\n\naria-describedby for error messages:\n  → Error message element exists but not linked via aria-describedby on its input → 🟡\n  → Correct: \u003Cinput aria-describedby=\"email-error\"> ... \u003Cspan id=\"email-error\">...\u003C\u002Fspan>\n\nfieldset + legend for grouped inputs:\n  → Radio groups or checkbox groups without \u003Cfieldset>\u003Clegend> → 🟡\n  → Only one radio\u002Fcheckbox option → skip this check\n\ninputMode for mobile keyboards:\n  → Numeric inputs missing inputMode=\"numeric\" or inputMode=\"decimal\" → 🟢 Tip\n  → This triggers the correct soft keyboard on mobile\n\nnovalidate + custom validation:\n  → \u003Cform> without novalidate when custom validation JS exists → 🟡 (browser + custom = double errors)\n  → \u003Cform novalidate> with no custom validation JS visible → 🟡 (validation silently disabled)\n\ndisabled vs readonly:\n  → \u003Cinput disabled> when the intent is read-only display → 🟢 Tip\n    (disabled excludes from form submission; readonly keeps the value but prevents editing)\n```\n\n---\n\n### CATEGORY 8: Motion & Animation\n*Full rules → `references\u002Fanimation.md`*\n\n- [ ] **Purpose** — Every animation orients, gives feedback, or shows a relationship. No pure decoration.\n- [ ] **Duration** — UI transitions: 150–300ms. Page transitions: 300–500ms. Longer feels sluggish.\n- [ ] **Easing** — Ease-out for entering elements, ease-in for exiting. Linear feels mechanical.\n- [ ] **Reduced motion** — Non-animated version for `prefers-reduced-motion` users.\n- [ ] **No infinite autoplay loops** — Distract and exhaust users. Pause after 3 loops or on hover.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nprefers-reduced-motion:\n  → Search for @media (prefers-reduced-motion: reduce) in all CSS\u002Fstyled-components\n  → If any animation or transition exists and no reduced-motion query found → 🔴 Critical\n  → Correct pattern:\n      @media (prefers-reduced-motion: reduce) {\n        *, *::before, *::after {\n          animation-duration: 0.01ms !important;\n          transition-duration: 0.01ms !important;\n        }\n      }\n\nanimation-duration values:\n  → Extract all transition: and animation: duration values\n  → > 500ms on a UI interaction (not page transition) → 🟡 Warning\n  → > 1000ms on anything except intentional loading → 🔴 Critical\n  → linear easing on transitions → 🟡 (cite the property and value)\n\nanimation-iteration-count:\n  → infinite on any element without a pause\u002Fhover mechanism → 🟡 Warning\n  → Cite element selector and property\n\nCSS transition on all properties:\n  → transition: all ... → 🟡 Warning (causes jank, prefer specific properties)\n  → transition: color 200ms ease-out → ✅\n```\n\n---\n\n### CATEGORY 9: Dark Mode (if applicable)\n\n- [ ] **Not just inverted** — Dark mode requires redesigned colors, not flipped ones.\n- [ ] **Background depth** — Lighter dark grays for elevated surfaces (cards, modals). Not pure black.\n- [ ] **Saturation** — Reduce vivid brand colors in dark mode — they look garish on dark.\n- [ ] **Shadow replacement** — Use lighter surface colors for elevation instead of shadows.\n- [ ] **Icon & image legibility** — Icons\u002Fimages still readable on dark backgrounds.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nDetect if dark mode is implemented:\n  → Search for @media (prefers-color-scheme: dark) in CSS\n  → Search for [data-theme=\"dark\"] or .dark selector patterns\n  → Search for dark: utility prefix (Tailwind dark mode)\n  → If any: audit dark mode implementation. If none: note as 🟢 Tip if product likely needs it.\n\nIf dark mode is found, check:\n\n  Color swap pattern:\n    → ✅ Good: CSS custom properties swapped in dark media query\n        :root { --bg: #ffffff; --text: #111111; }\n        @media (prefers-color-scheme: dark) { :root { --bg: #1a1a1a; --text: #f0f0f0; } }\n    → 🔴 Bad: Separate hardcoded hex values in dark selectors (token system is broken)\n        .dark .card { background: #1c1c1c; color: #ffffff; } ← hardcoded\n\n  Pure black backgrounds:\n    → background: #000000 or bg-black in dark mode → 🟡 Warning\n    → Prefer #0f0f0f–#1e1e1e range for depth\n\n  Contrast in dark mode:\n    → Run WCAG check on dark mode color pairs too (not just light mode)\n    → Dark mode often passes light mode checks but fails its own\n\n  Tailwind dark mode:\n    → Check if darkMode: 'class' or 'media' is configured\n    → Inconsistent dark: prefix usage across components → 🟡\n\n  color-scheme property:\n    → \u003Cmeta name=\"color-scheme\" content=\"dark light\"> or CSS `color-scheme: dark light`\n      absent when dark mode IS implemented → 🟢 Tip\n      (without this, browser chrome — scrollbars, form inputs — stays light even in dark mode)\n    → color-scheme: dark (only) when the product has a light mode toggle → 🟡 Warning\n      (locks browser chrome to dark regardless of user preference)\n```\n\n---\n\n### CATEGORY 10: Responsive & Adaptive\n\n- [ ] **Breakpoints** — Mobile (320–480px), tablet (768px), desktop (1024px+) considered.\n- [ ] **No overflow** — Long words or fixed-width containers don't break on small screens.\n- [ ] **Mobile touch targets** — Bigger targets and more spacing than desktop.\n- [ ] **Image scaling** — Images scale without awkward cropping or overflow.\n- [ ] **Type scaling** — Large desktop headings (48px) scaled down to 28–32px on mobile.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nBreakpoint coverage:\n  → Collect all @media queries in CSS\u002Fstyled-components\u002FTailwind\n  → If only one breakpoint found (or none) → 🟡 Warning\n  → If no mobile-first breakpoints (min-width) → 🟡 (desktop-first with max-width is harder to maintain)\n  → Tailwind: check for sm:, md:, lg:, xl: prefix usage — missing sm: on any layout element → 🟡\n  → Flag the specific elements that have no responsive variant\n\nFixed-width traps:\n  → width: [value]px on containers (not icons or images) → 🟡 (use max-width or %)\n  → Fixed pixel widths > 480px with no responsive override → 🔴 (will overflow on mobile)\n  → min-width values that exceed mobile viewport (320px) → 🟡\n\nOverflow risks:\n  → overflow: hidden on a container without a max-width → 🟡 (clips content on small screens)\n  → Long unbreakable strings: no word-break or overflow-wrap rule on text containers → 🟡\n  → white-space: nowrap on text that could be long → 🟡\n\nImage responsiveness:\n  → \u003Cimg> without max-width: 100% or w-full → 🟡 (overflows container on small screens)\n  → \u003Cimg> with fixed width\u002Fheight attributes and no CSS override → 🟡\n  → Missing srcset or sizes attributes on large hero images → 🟢 Tip (performance)\n  → object-fit missing on images inside fixed-height containers → 🟡\n\nViewport meta tag (HTML only):\n  → Missing \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> → 🔴 Critical\n    (without this, mobile browsers render at desktop width)\n\nFont size on mobile:\n  → body font-size \u003C 16px with no responsive override → 🟡\n    (iOS Safari auto-zooms on inputs with font-size \u003C 16px)\n  → Input font-size \u003C 16px → 🟡 (triggers zoom on focus on iOS)\n\nTailwind responsive audit:\n  → Elements using fixed Tailwind width classes (w-96, w-80) without sm:\u002Fmd: override → 🟡\n  → Text size classes without responsive scaling (text-5xl with no sm:text-3xl) → 🟡\n  → hidden \u002F flex \u002F block classes without responsive context → note if suspicious\n\nViewport units:\n  → height: 100vh on mobile without dvh fallback → 🟡\n    (100vh includes browser chrome on mobile, causing content to be hidden)\n  → Correct: height: 100dvh (dynamic viewport height) or min-height: 100svh\n```\n\n---\n\n### CATEGORY 11: Loading, Empty & Error States\n*The forgotten 30% — most beginner UIs only design the \"happy path.\" Read `references\u002Fstates.md` for full guidance.*\n\n- [ ] **Loading state** — Every data fetch needs a loading indicator. Skeleton screens preferred over spinners for content-heavy layouts. Never show a blank screen.\n- [ ] **Empty state** — What does an empty list, inbox, or dashboard look like? Should include an illustration or icon, a friendly explanation, and a clear next action (\"Create your first task →\").\n- [ ] **Error state** — Network failures, server errors, and not-found pages need their own designed state. Not just a console error or blank screen.\n- [ ] **Partial failure** — What if only some data loads? Design for partial states, not just all-or-nothing.\n- [ ] **Success state** — After a form submission or action, confirm it worked. A toast, a green banner, or a state change — something must close the loop.\n- [ ] **Disabled state** — Disabled buttons and inputs should look visually distinct (reduced opacity, no pointer cursor) and ideally explain why they're disabled.\n- [ ] **Consistency** — Loading\u002Fempty\u002Ferror states should match the overall visual style — not be plain browser defaults or unstyled fallbacks.\n\n**→ Widget trigger:** If any missing state is found, always render the **States Coverage Map** widget — even for a single missing state. Pre-populate the grid with the components identified in the audit and mark states as present, missing, or N\u002FA based on what was observed. Mark cells as N\u002FA only when a state genuinely cannot apply to that component (e.g. \"Empty\" on a Button). Introduce with one sentence in the user's detected language:\n- English: *\"Here's the full picture of which states are designed and which are missing.\"*\n- Korean: *\"어떤 상태가 디자인되어 있고 어떤 상태가 빠져 있는지 전체 현황을 확인해 보세요.\"*\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nLoading state detection:\n  → Search for conditional renders based on loading\u002FisLoading\u002FisPending\u002FisFetching flags\n  → Component fetches data (useEffect + fetch \u002F useQuery \u002F useSWR) with no loading branch → 🔴 Critical\n  → Loading branch renders null or nothing → 🔴 Critical\n  → Loading branch renders a spinner → ✅ (tip: skeleton preferred for content-heavy layouts)\n  → aria-live=\"polite\" or aria-busy=\"true\" absent on dynamically updated regions → 🟡 Warning\n    (screen readers won't announce content updates without aria-live)\n  → Correct: \u003Cdiv aria-live=\"polite\" aria-busy={isLoading}> ... \u003C\u002Fdiv>\n\nEmpty state detection:\n  → Conditional render for empty array\u002Fnull data that renders null or nothing → 🔴 Critical\n    \"No empty state — users see a blank screen when data is empty\"\n  → Empty state renders only a text string with no action → 🟡 Warning\n    \"Empty state has no next action — add a CTA or guidance\"\n  → Well-formed empty state: icon\u002Fillustration + explanation + CTA → ✅\n\nError state detection:\n  → try\u002Fcatch or .catch() \u002F isError flag with no error UI branch → 🔴 Critical\n  → Error state renders raw error.message string → 🟡 Warning\n    (technical error messages are not user-friendly — use a human message)\n  → Error state has no retry action → 🟡 Warning\n  → Well-formed error state: friendly message + retry or back action → ✅\n\nDisabled state detection:\n  → \u003Cbutton disabled> with no visual distinction beyond default browser style → 🟡\n  → Disabled button with no tooltip or explanation of why → 🟢 Tip\n  → cursor: not-allowed absent on disabled elements → 🟢 Tip\n\nSuccess state detection:\n  → Form submit handler with no success feedback (no toast, no banner, no state change) → 🟡\n  → Success message auto-dismisses before user can read it (timeout \u003C 3000ms) → 🟡\n\nKorean report labels for this category:\n  → 로딩 상태 누락 \u002F 빈 상태 누락 \u002F 오류 상태 누락 \u002F 비활성화 상태 스타일 없음 \u002F 성공 피드백 없음\n\nPeak-End Rule:\n  Users judge entire flows by two moments: the emotional peak and the final screen.\n  This makes success\u002Fcompletion states disproportionately important — they are the \"end.\"\n\n  → Check all success\u002Fcompletion screens (form submitted, purchase complete, onboarding done,\n    file uploaded, account created):\n    → Success screen displays only a generic \"Done\" or \"Success\" with no detail → 🟡 Warning\n      \"The last screen of a flow shapes the user's memory of the whole experience.\n       Add: what was completed, what happens next, and a positive reinforcement signal.\"\n    → Success screen auto-redirects in \u003C 2000ms before user can read it → 🟡 Warning\n    → Success screen has no positive visual signal (color, icon, illustration, animation) → 🟡\n    → Well-formed success screen: names the completed action + next step + positive visual → ✅\n\n  → Check the \"peak\" moment — the primary CTA interaction (submit, purchase, confirm):\n    → Button shows no pressed\u002Factive state during interaction → 🟡 (no tactile feedback)\n    → No loading state between tap and result → 🟡 (also caught by Cat 11 loading check)\n\n  Korean: 피크-엔드 법칙 — 완료 화면 미흡 \u002F 성공 화면 즉시 리다이렉트 \u002F 시각적 강화 요소 없음\n\nGoal Gradient Theory:\n  People increase effort and motivation as they get closer to completing a goal.\n  Progress indicators that don't communicate proximity to completion miss this effect.\n\n  → Scan for multi-step flows (checkout, onboarding, forms, wizards):\n    → 3+ step flow with no visible step counter or progress bar → 🟡 Warning\n      \"No progress signal — users don't know how close they are to done, reducing completion rates.\"\n    → Progress bar present but always shows the same fill regardless of step → 🔴 Critical\n      (static progress bar is misleading — users expect it to advance)\n    → Step counter says \"Step 3\" without a total (e.g. \"of 5\") → 🟡 Warning\n      \"Without knowing the total, users can't judge proximity to completion.\"\n    → Step counter shows \"Step 3 of 4\" — total visible → ✅\n    → Progress bar fill increases proportionally per step → ✅\n    → Final step visually signals it's the last step (e.g. \"Last step\", filled bar, changed CTA label) → ✅ strong signal\n\n  → Code checks:\n    → Stepper component without aria-valuenow \u002F aria-valuemax → 🟡 (also Cat 6)\n    → Progress bar with static width value (width: 50% hardcoded, not dynamic) → 🔴\n    → Step counter rendered as plain text with no semantic role (role=\"status\" or aria-live) → 🟡\n\n  Korean: 목표 경사 이론 — 진행 표시 없음 \u002F 정적 진행 바 \u002F 전체 단계 수 미표시\n```\n\n---\n\n### CATEGORY 12: Content & Microcopy\n*The words inside a UI are part of the design. Read `references\u002Fmicrocopy.md` for full guidance.*\n\n**On Figma\u002Fcode input: read every text node.** `get_design_context` returns all text content. Extract and check each one — do not guess. Group them by role:\n\n```\nText content extraction (Figma + code):\n  1. Collect all text node values from get_design_context\n  2. Classify each by role:\n     - CTA buttons: text nodes inside button components\n     - Labels: text nodes associated with inputs (above\u002Fbeside)\n     - Placeholders: text nodes with placeholder-style content (\"Search\", \"Enter...\", \"eg:\")\n     - Error messages: text nodes near error states or with error styling\n     - Empty state messages: text nodes in empty\u002Fzero-state frames\n     - Section headers \u002F titles: largest text nodes in a section\n  3. Apply checks per role (see below)\n  4. Cite the exact text content and node ID in each issue\n     e.g. 🟡 \"Placeholder 'eg: 5' (node 68:27994) — informal prefix. Use '0' or unit hint.\"\n```\n\nPer-role checks:\n- [ ] **Button labels are verbs** — \"Save Changes\", \"Send Message\" not \"OK\", \"Submit\", \"Yes\"\n- [ ] **Error messages are human** — \"Invalid input\" → 🔴. \"Please enter a valid email\" → ✅\n- [ ] **Placeholder ≠ label** — Placeholders hint at format (e.g. \"name@example.com\"), never replace a label. Flag any placeholder that duplicates its label exactly.\n- [ ] **Placeholder prefix style** — \"eg:\", \"e.g.\" → 🟡 informal. Use the example value directly or a unit label.\n- [ ] **Destructive actions are explicit** — \"Delete\" dialogs should name what's being deleted. \"Are you sure?\" alone → 🟡\n- [ ] **Consistent terminology** — Flag if the same concept uses different words across text nodes (e.g. \"workspace\" and \"project\" used interchangeably)\n- [ ] **Tone consistency** — Formal in one section, casual in another → 🟡\n- [ ] **No lorem ipsum** — Any \"lorem ipsum\" or \"placeholder text\" string → 🔴 Critical at Dev handoff or later\n- [ ] **Empty states have direction** — \"No results found\" alone → 🟡. Should include a next action.\n- [ ] **Required field legend** — If * is used for required fields, check for a \"* Required fields\" legend somewhere in the frame. Missing → 🟢 Tip.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nButton label audit:\n  → Collect all \u003Cbutton>, \u003Ca role=\"button\">, and submit-type elements and extract their text content\n  → Labels that are not verbs or verb phrases → 🟡 Warning\n    ❌ \"OK\", \"Yes\", \"Submit\", \"Click here\", \"More\"\n    ✅ \"Save changes\", \"Send message\", \"Get started\", \"Delete account\"\n  → Icon-only buttons with no aria-label → 🔴 Critical (also caught by Cat 6, flag once)\n  → Button text identical to page heading (no specificity) → 🟡\n    e.g. two \"Submit\" buttons on the same page with no differentiating context\n\nError message audit:\n  → Scan all string literals used in error\u002Fvalidation contexts (near catch blocks, validation fns, error state renders)\n  → Strings that are purely technical → 🟡 Warning\n    ❌ \"Invalid input\", \"Error 422\", \"Request failed\", \"null\", \"undefined\"\n    ✅ \"Please enter a valid email address\", \"Something went wrong — try again\"\n  → Error strings with no guidance on how to fix → 🟡\n  → aria-describedby linked error messages (cross-check with Cat 7) → ✅\n\nPlaceholder audit:\n  → Collect all placeholder=\"...\" attribute values\n  → Placeholder that exactly duplicates its label text → 🟡\n    e.g. label=\"Email\" + placeholder=\"Email\" — redundant, adds no value\n  → Placeholder starting with \"eg:\", \"e.g.\", \"ex:\" → 🟡 informal prefix\n    Prefer: use the example directly — placeholder=\"name@example.com\"\n  → Placeholder used as sole label (no visible \u003Clabel>) → 🔴 (also Cat 7)\n\nLorem ipsum \u002F filler content:\n  → Any string containing \"lorem ipsum\", \"placeholder text\", \"TBD\", \"TODO\", \"FIXME\" in UI-facing strings → 🔴 Critical at Dev handoff stage\n  → Flag line number and surrounding component\n\nTerminology consistency:\n  → Collect all nouns used for the same concept across the file\n  → If 2+ different terms are used for the same entity → 🟡 Warning\n    e.g. \"workspace\" in one component, \"project\" in another, \"team\" in a third — all meaning the same thing\n\nDestructive action copy:\n  → Alert\u002Fconfirm dialogs or delete modal text that reads only \"Are you sure?\" → 🟡\n    Must name the specific thing being deleted: \"Delete 'Project Alpha'? This cannot be undone.\"\n\nKorean report labels for this category:\n  → 버튼 라벨 동사 누락 \u002F 오류 메시지 비인간적 \u002F 플레이스홀더 = 라벨 중복 \u002F\n     비공식 플레이스홀더 접두사 \u002F 로렘 입숨 발견 \u002F 용어 불일치 \u002F 파괴적 동작 문구 부재\n``` (if applicable)\n*Only audit this category if the product targets multiple languages or RTL locales (Arabic, Hebrew, Persian, Urdu). Read `references\u002Fi18n.md` for full guidance.*\n\n- [ ] **No hardcoded strings** — All visible text should come from a translation file, not be baked into the component. Check for any hardcoded labels, tooltips, or error messages.\n- [ ] **Text expansion budget** — German and Finnish can be 30–40% longer than English. Buttons, labels, and nav items must accommodate longer text without breaking layout. Test with a long string.\n- [ ] **RTL layout mirroring** — In RTL languages, the entire layout flips: left becomes right. Navigation, icons, progress indicators, and reading direction all reverse. Use `dir=\"rtl\"` and CSS logical properties (`margin-inline-start` instead of `margin-left`).\n- [ ] **RTL-safe icons** — Directional icons (arrows, chevrons, back buttons) must flip in RTL. Non-directional icons (heart, star, trash) stay the same.\n- [ ] **Date, time & number formats** — These vary by locale. Don't hardcode formats like \"MM\u002FDD\u002FYYYY\" — use locale-aware formatting (e.g., `Intl.DateTimeFormat`).\n- [ ] **Currency & units** — Symbol position and decimal separators differ by locale (€1,234.56 vs 1.234,56 €). Never assume.\n- [ ] **No text in images** — Images with embedded text can't be translated. Use CSS overlays or separate text layers instead.\n- [ ] **Font support** — Does the chosen font support all target scripts? Latin fonts won't render Arabic or CJK characters — a system fallback font will kick in and look inconsistent.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nHardcoded string detection:\n  → Scan all JSX\u002Ftemplate content for bare string literals inside UI elements\n  → \u003Cbutton>Submit\u003C\u002Fbutton> when no i18n wrapper → 🟡 if i18n is likely needed\n  → \u003Cp>No results found\u003C\u002Fp> hardcoded → 🟡\n  → Compare against: t('key'), i18n.t('key'), $t('key'), \u003CFormattedMessage id=\"...\"\u002F> — these are ✅\n  → Only flag as 🔴 if evidence of multi-language intent exists (e.g. i18n library imported but some strings not wrapped)\n\nRTL CSS properties:\n  → margin-left \u002F margin-right \u002F padding-left \u002F padding-right \u002F text-align: left → 🟡 if RTL needed\n  → margin-inline-start \u002F padding-inline-end \u002F text-align: start → ✅ logical properties\n  → position: absolute with left: \u002F right: without RTL override → 🟡\n\nIntl API usage:\n  → Hardcoded date formats like \"MM\u002FDD\u002FYYYY\" or toLocaleDateString() without locale → 🟡\n  → new Intl.DateTimeFormat(locale, options) → ✅\n  → Hardcoded currency symbols ($, €) outside of a locale formatter → 🟡\n\ndir attribute:\n  → Check for dir=\"rtl\" implementation pattern on root or document\n  → CSS [dir=\"rtl\"] selectors for flip overrides → ✅\n\nOnly run this category if:\n  - An i18n library is imported (react-i18next, vue-i18n, next-intl, etc.), OR\n  - The user explicitly asks for i18n review, OR\n  - The file contains non-English strings\n  Otherwise: skip silently.\n```\n\n---\n\n\n### CATEGORY 14: Elevation & Shadows\n*Full rules → `references\u002Felevation.md`*\n\n- [ ] **Shadow scale** — Shadows should come from a defined scale (e.g. sm, md, lg, xl) — not arbitrary values. Each level should be used consistently for the same type of element.\n- [ ] **Shadow = elevation** — Shadows communicate how high above the page an element floats. Cards sit low (subtle shadow), modals sit high (strong shadow), tooltips highest. Check the hierarchy makes sense.\n- [ ] **Shadow color** — Shadows should use a dark, slightly saturated color (e.g. `rgba(0,0,0,0.08)`) — never pure black. On colored backgrounds, tint the shadow with the surface color.\n- [ ] **No shadows in dark mode** — Shadows are invisible on dark backgrounds. Use lighter surface colors for elevation instead (e.g. a card is slightly lighter gray than the page background).\n- [ ] **No decorative shadows** — Shadows should only appear on elevated elements. Don't use shadows purely for decoration or emphasis on flat elements.\n- [ ] **Consistent blur & offset** — A consistent offset-to-blur ratio (e.g. offset-y = 1\u002F3 of blur) makes shadows feel physically grounded. Mismatched values look amateur.\n- [ ] **Multiple light sources** — Don't combine a top-shadow and a bottom-shadow on the same element unless intentional. Pick one light source direction and stick to it.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nbox-shadow value audit:\n  → Collect all box-shadow declarations across CSS\u002Fstyled-components\u002FTailwind\n  → Arbitrary shadow values not matching a defined scale → 🟡 Warning\n    ❌ box-shadow: 0 3px 7px rgba(0,0,0,0.11) — arbitrary, not from a scale\n    ✅ box-shadow: var(--shadow-md) or Tailwind shadow-md\n  → More than 3 distinct box-shadow values used for the same element type (e.g. cards) → 🟡\n    \"Cards use 4 different shadow values — establish a shadow scale\"\n\nShadow color audit:\n  → box-shadow using pure black rgba(0,0,0,1) or #000000 → 🟡 Warning\n    \"Pure black shadows look heavy — use rgba(0,0,0,0.08–0.20) for natural depth\"\n  → box-shadow using an opaque color (no alpha channel) → 🟡\n  → On colored surfaces: shadow color should be tinted with the surface color, not neutral black → 🟢 Tip\n\nElevation hierarchy check:\n  → Collect elements by type: cards, modals, dropdowns, tooltips, sticky headers\n  → Compare their shadow values — higher elements must have stronger shadows\n  → Modal shadow ≤ card shadow → 🟡 Warning (elevation hierarchy inverted)\n  → Tooltip shadow ≤ modal shadow → 🟡\n\nMultiple shadows on same element:\n  → Element with both a top and bottom box-shadow without clear design intent → 🟡\n  → More than 2 box-shadow layers on a single element → 🟡\n\nDark mode shadow check:\n  → box-shadow retained in dark mode without override → 🟡 Warning\n    \"Shadows are invisible on dark backgrounds — use a lighter surface color for elevation instead\"\n  → Correct pattern: @media (prefers-color-scheme: dark) { box-shadow: none; background: [elevated-surface-color]; }\n  → Tailwind: dark:shadow-none present → ✅\n\nBlur-to-offset ratio:\n  → Extract offset-y and blur-radius from each box-shadow\n  → offset-y > blur-radius (e.g. 0 8px 4px) → 🟢 Tip (offset larger than blur looks unnatural)\n  → Recommended ratio: blur = 2–3× offset-y\n\nKorean report labels for this category:\n  → 그림자 스케일 미준수 \u002F 순수 검정 그림자 사용 \u002F 높낮이 계층 역전 \u002F\n     다크 모드에서 그림자 미제거 \u002F 블러-오프셋 비율 부적절\n```\n\n---\n\n### CATEGORY 15: Iconography\n*Full rules → `references\u002Ficonography.md`*\n\n- [ ] **Consistent icon family** — All icons from the same set (e.g. all Phosphor, all Lucide, all Material). Never mix outline icons from one library with filled icons from another.\n- [ ] **Consistent style within family** — Stick to one style: all outline, all filled, or all duotone. Mixing styles inside one library looks inconsistent.\n- [ ] **Optical sizing** — Icons should be sized at standard grid-friendly values: 16, 20, 24, 32, 40, 48px. Avoid 18px, 22px, 26px — they fall between optical grid lines.\n- [ ] **Stroke weight consistency** — Outline icons have a stroke weight. Don't use 1px icons next to 2px icons — they feel mismatched even when both are \"outline.\"\n- [ ] **Touch target padding** — Icons used as interactive buttons need padding to reach 44×44px minimum. A 24px icon needs 10px padding on each side.\n- [ ] **Icon meaning consistency** — The same icon should mean the same thing everywhere. Don't use a star for both \"favourite\" and \"rating\" in the same product.\n- [ ] **Label pairing** — Icons without labels are ambiguous for non-expert users. Always pair with a visible label or tooltip. Exception: universally understood icons (✕ close, ☰ menu, ⌕ search).\n- [ ] **Optical alignment** — Icons often have invisible padding baked in. When aligning icons with text, align to optical center, not bounding box edge.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nIcon sizing audit:\n  → Collect all \u003Csvg>, \u003Cimg>, and icon component width\u002Fheight values\n  → Flag sizes not on optical grid: 16, 20, 24, 32, 40, 48px → 🟢 Tip\n    \"Icon sized at 18px — optical grid values are 16px or 20px\"\n  → Inconsistent sizes across icons of the same visual role → 🟡 Warning\n    \"Nav icons are 20px and 24px — pick one\"\n\nSVG icon accessibility:\n  → \u003Csvg> inside a \u003Cbutton> or \u003Ca> without aria-hidden=\"true\" on the SVG → 🔴 Critical\n    (the SVG will be announced by screen readers — use aria-hidden on the SVG,\n     and aria-label on the parent button instead)\n  → Icon-only \u003Cbutton> with no aria-label and a hidden SVG → 🔴 Critical\n    (both the SVG is hidden AND there's no label — completely inaccessible)\n  → \u003Cimg> used as icon without alt=\"\" (decorative) or alt=\"[description]\" (meaningful) → 🔴\n  → Icon font (class=\"fa-...\", class=\"material-icons\") with no aria-hidden and no label → 🔴\n\nStroke weight:\n  → Multiple stroke-width values on \u003Cpath> \u002F \u003Cline> elements across icon SVGs → 🟡 Warning\n    \"Icons use strokeWidth 1 and 2 — inconsistent weight\"\n  → Only flag if 2+ different SVG elements are present in the same file\n\nTouch target:\n  → \u003Cbutton> or \u003Ca> containing only an icon with width or height \u003C 44px and\n    no padding to compensate → 🔴 Critical\n    \"Icon button is 24×24px with no padding — minimum tappable size is 44×44px\"\n```\n\n---\n\n### CATEGORY 16: Navigation Patterns\n*Full rules → `references\u002Fnavigation.md`*\n\n- [ ] **Clear current location** — Users should always know where they are. Active nav items must be visually distinct (color, weight, indicator bar) — not just slightly different.\n- [ ] **Tabs vs nav** — Tabs switch between views of the same content. Nav moves between different sections. Don't use tabs for top-level navigation or nav for in-page switching.\n- [ ] **Breadcrumbs for depth** — Any page more than 2 levels deep needs breadcrumbs. They should show the full path and every crumb should be clickable (except the current page).\n- [ ] **Back button behavior** — \"Back\" should always go to the previous screen, not the previous URL. In modals and flows, \"Back\" should not close the entire flow unexpectedly.\n- [ ] **Mobile navigation** — Bottom navigation bar for 3–5 primary destinations on mobile. Hamburger menu acceptable for secondary items but not primary navigation.\n- [ ] **Active state contrast** — Active\u002Fselected nav items must meet 3:1 contrast ratio against inactive items — not just a subtle color shift that's easy to miss.\n- [ ] **Overflow handling** — What happens when there are too many nav items? Tabs should scroll horizontally or collapse into a \"More\" dropdown. Never let them clip or wrap awkwardly.\n- [ ] **Navigation consistency** — The nav should look and behave identically on every page. Never change which items appear, their order, or their style between sections.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nSemantic nav element:\n  → Navigation container uses \u003Cnav> element → ✅\n  → Navigation built with \u003Cdiv> with no role=\"navigation\" → 🟡 Warning\n  → Multiple \u003Cnav> elements without aria-label to distinguish them → 🟡\n    Correct: \u003Cnav aria-label=\"Primary\"> and \u003Cnav aria-label=\"Footer\">\n\nActive state implementation:\n  → aria-current=\"page\" on the active nav item → ✅\n  → Active state relies only on a CSS class (.active) with no aria-current → 🟡\n    (class alone doesn't communicate current page to screen readers)\n  → Active state only changes color with no weight\u002Fbackground\u002Findicator → 🟡\n    (color alone fails colorblind users — needs a secondary signal)\n\nSkip navigation link:\n  → First focusable element is a skip link targeting #main-content → ✅\n  → No skip link found → 🟡 Warning\n  → Skip link exists but target ID (#main-content) missing from DOM → 🔴 Critical\n\nTab vs nav misuse:\n  → \u003Cnav> containing elements that switch views of the same page → 🟡\n    (should be role=\"tablist\" + role=\"tab\" children)\n  → role=\"tablist\" used for top-level navigation between pages → 🟡\n    (should be \u003Cnav> with \u003Ca> links)\n\nKeyboard navigability:\n  → Nav items are \u003Cdiv>\u002F\u003Cspan> with onClick but no role=\"button\" + tabindex=\"0\" → 🔴\n  → Nav items are \u003Ca> elements with valid href → ✅\n  → Dropdown menus with no keyboard handler (Escape to close, arrow keys) → 🟡\n\nBreadcrumb implementation:\n  → \u003Cnav aria-label=\"Breadcrumb\"> wrapping the crumb list → ✅\n  → Last breadcrumb item has aria-current=\"page\" → ✅\n  → Intermediate breadcrumb items are plain text, not links → 🟡\n  → No breadcrumb on routes 3+ levels deep → 🟡\n  → Breadcrumb list uses \u003Col> (ordered) not \u003Cul> → ✅ (order matters for breadcrumbs)\n```\n\n---\n\n### CATEGORY 17: Design Tokens & Variables Health (if applicable)\n*Audit this when reviewing Figma files or codebases with a design system. Read `references\u002Ftokens.md` for full guidance.*\n\n- [ ] **Colors are tokenized** — No hardcoded hex values in components. Colors should reference a token (e.g. `color.primary.500`, `--color-brand`), not `#7c3aed` directly.\n- [ ] **Spacing is tokenized** — Spacing values reference a scale token, not arbitrary pixel values.\n- [ ] **Typography is tokenized** — Font size, weight, and line-height come from defined text style tokens, not ad-hoc values per component.\n- [ ] **Radius is tokenized** — Corner radius values reference the radius scale, not hardcoded numbers.\n- [ ] **Shadow is tokenized** — Box shadows reference elevation tokens, not custom values per element.\n- [ ] **Token naming is semantic** — Tokens should describe *purpose*, not appearance. `color.background.danger` is good. `color.red.500` used directly in a component is not — it breaks when you need to change the danger color.\n- [ ] **No magic numbers** — Any value that appears more than twice should be a token. Repeated one-off values are a sign the token system isn't being used.\n- [ ] **Dark mode uses the same tokens** — Dark mode should swap token values, not introduce new hardcoded colors. If dark mode components have their own hex values, the token system is broken.\n\n**📋 Code input: direct token audit available (run automatically — most precise path)**\n```\nCSS custom property audit:\n  → Find all :root { --token: value } definitions — these are the token system\n  → Find all var(--token) usages in component CSS\n  → Find all hardcoded values (hex, rgb, px) NOT using var()\n\n  Compute per-category coverage:\n    color_coverage    = var(--color-*) usages \u002F total color declarations × 100\n    spacing_coverage  = var(--spacing-*) \u002F total padding\u002Fmargin\u002Fgap × 100\n    radius_coverage   = var(--radius-*) \u002F total border-radius × 100\n    shadow_coverage   = var(--shadow-*) \u002F total box-shadow × 100\n\n  Report as: \"Token coverage: colors 80% · spacing 60% · radius 40% · shadows 20%\"\n  Any category \u003C 50% → 🟡 Warning\n  Any category \u003C 20% → 🔴 Critical (token system not being used)\n\nJS\u002FTS theme object audit (styled-components \u002F emotion \u002F MUI):\n  → Detect theme.colors.*, theme.spacing(), theme.shadows[] usage\n  → Hardcoded values inside styled components: color: '#7c3aed' → 🟡\n  → theme.colors.primary → ✅\n\nTailwind token audit:\n  → Tailwind config colors\u002Fspacing\u002FborderRadius\u002FboxShadow → these are the tokens\n  → Arbitrary values like bg-[#7c3aed], p-[13px], rounded-[7px] → each is 🟡\n  → Standard scale values (bg-purple-600, p-3, rounded-lg) → ✅\n\nToken naming check:\n  → --color-red: #ff0000 (describes appearance) → 🟡 rename to --color-error or --color-danger\n  → --color-error: #ff0000 (describes purpose) → ✅\n  → Tokens with numeric suffixes only (--color-500) without semantic alias → 🟢 Tip\n```\n\n---\n\n### CATEGORY 18: Ethical Design & Dark Patterns\n*Full rules, all pattern definitions, detection signals, and the ethical persuasion reference → `references\u002Fethics.md`*\n\nThis category audits for manipulative or deceptive design patterns — not design mistakes, but intentional choices that may exploit users. Read `references\u002Fethics.md` before running this category.\n\n**When to run:** Always. Every design can be checked for ethical patterns regardless of input type or stage.\n\n**Ethics severity model** (different from standard audit severity):\n| Level | Label | Meaning | Score impact |\n|---|---|---|---|\n| 🔴 | Deceptive | Actively misleads or coerces. Violates user trust, often consumer law. | −15 pts |\n| 🟡 | Questionable | Exploitative depending on context. Warrants review. | −7 pts |\n| 🟢 | Noted | Persuasive element present. Ethical in standard use. | 0 pts |\n\n**Ethics Score** is separate from the Overall Score. Start at 100, apply ethics deductions only.\nDisplay as: **Ethics Score: X\u002F100** alongside Accessibility Score.\n\n**Detection confidence:** Always declare confidence per finding (High\u002FMedium\u002FLow) using the detection scope table in `references\u002Fethics.md`. Never flag low-confidence patterns without explicit caveat.\n\n**Checklist — run all groups:**\n\n*Group A: Deceptive Interface Patterns*\n- [ ] **Confirmshaming** — Decline\u002Fcancel copy does not shame or guilt the user for choosing it\n- [ ] **CTA hierarchy inversion** — Accept and decline actions have equivalent visual weight (especially on consent\u002Fcookie screens)\n- [ ] **Trick questions** — All consent copy uses positive, unambiguous language with no double negatives\n- [ ] **Disguised ads** — Sponsored\u002Fpromoted content is visually distinct from organic content with a clear, readable label\n- [ ] **Bait and switch** — CTA labels accurately describe the immediate next action\n- [ ] **Hidden costs** — All mandatory fees are shown from the first price display\n- [ ] **Visual misdirection** — Cost, commitment, and risk information meets the same visual standards as the CTA it accompanies\n- [ ] **Decoy pricing** — In multi-tier pricing layouts (3+ columns), no tier should be a deliberately inferior option designed only to make another tier look better. Signal: a middle or lower tier that is strictly dominated on every axis (price, features, limits) with no clear use case. Confidence: Medium — flag when detected with caveat. Korean: 디코이 가격 책정 — 의도적으로 열등한 옵션으로 중간 등급을 유도하는 패턴\n\n*Group B: Coercive Flows*\n- [ ] **Roach motel** — Cancellation\u002Fexit path is no harder than the sign-up\u002Fentry path\n- [ ] **Obstruction** — Unsubscribe, data deletion, and account closure are self-serve and reachable in ≤ 3 steps\n- [ ] **Forced action** — No non-essential data collection or permission is required to access core functionality\n- [ ] **Nagging** — Dismissed prompts stay dismissed; \"don't show again\" is permanently respected\n\n*Group C: Consent & Privacy*\n- [ ] **Privacy zuckering** — All non-essential data sharing defaults to OFF\n- [ ] **Pre-checked consent** — No marketing\u002Fdata-sharing checkbox is pre-checked by default\n- [ ] **Interface interference** — Privacy controls use consistent interaction patterns with clear state labels\n- [ ] **Drip pricing** — No fees are revealed only at the final checkout step\n\n*Group D: False Urgency & Scarcity*\n- [ ] **Countdown timers** — Any timer is backed by a real server-side expiry that does not reset\n- [ ] **False scarcity** — Scarcity claims (\"Only X left\") are backed by real-time inventory data\n- [ ] **False social proof** — Social proof numbers (\"X people viewing\") reflect real data, not hardcoded or random values\n- [ ] **Manipulative anchoring** — Crossed-out \"original\" prices, inflated RRP values, or \"was\u002Fnow\" displays must reflect a price the product was genuinely sold at. A strikethrough price that was never a real selling price is deceptive anchoring. Code signal: `text-decoration: line-through` or `.original-price` \u002F `.was-price` \u002F `.rrp` adjacent to a current price element. Confidence: Medium — flag for review. Korean: 조작적 앵커링 — 실제로 판매된 적 없는 취소선 가격 또는 부풀린 정가 표시\n\n*Group E: Emotional Manipulation*\n- [ ] **Guilt-based copy** — Inactivity, cancellation, and decline states are addressed neutrally, not shamefully\n- [ ] **Fear appeals** — Risk language is proportionate to actual risk; no exaggerated consequences for conversion\n- [ ] **Toying with emotion** — No patterns that deliberately engineer anxiety, FOMO, or regret as conversion mechanisms\n\n*Group F: Regulatory Compliance Baseline*\nThese checks apply across most jurisdictions (EU, US, UK, Canada, Brazil, Australia). They are UI-detectable signals — not a legal audit. Flag as 🚫 Blocker when a legal requirement is clearly absent; 🟡 Warning when the implementation is ambiguous or weak. Always append: *\"Verify with legal counsel for your specific jurisdiction and industry.\"*\nKorean caveat: *\"이 항목은 법률 감사가 아닌 UI 신호 감사입니다. 관할 지역 및 산업별 요건은 법률 전문가와 확인하세요.\"*\n\n- [ ] **Cookie & consent banner** — If cookies beyond strictly necessary are used, a consent banner must be present. Check for: banner presence; \"Reject All\" \u002F \"Decline\" option at equal visual prominence to \"Accept All\" (GDPR, PECR, CCPA requirement — CTA hierarchy inversion here is a 🚫 Blocker); granular consent categories (marketing, analytics, functional) rather than a single all-or-nothing toggle.\n  Code signal: absence of any consent-related class names (`cookie-banner`, `consent-`, `gdpr-`, `cmp-`) or `localStorage`\u002F`sessionStorage` consent keys → 🚫 if cookies are clearly being set.\n  Korean: 쿠키 동의 배너 — \"모두 거부\" 버튼이 \"모두 수락\"과 동등한 시각적 비중을 가져야 함\n\n- [ ] **Subscription & auto-renewal disclosure** — Before a subscription purchase is confirmed, the following must be visible: renewal frequency, renewal amount, and cancellation method. A \"free trial → paid\" conversion must disclose the date and amount of the first charge before the user commits.\n  Code signal: checkout\u002Fpayment form with no text matching renewal\u002Fbilling cycle patterns near the CTA → 🟡 Warning.\n  Korean: 구독 자동 갱신 고지 — 결제 확인 전 갱신 주기, 금액, 취소 방법이 명시되어야 함\n\n- [ ] **Privacy at point of collection** — Forms collecting sensitive personal data (email, phone, DOB, national ID, payment, health, location) must include a visible \"why we need this\" note or a privacy policy link directly at the collection point — not just in the footer.\n  Code signal: `\u003Cinput type=\"email\u002Ftel\u002Fdate\u002Fnumber\">` inside a form with no adjacent `\u003Ca href>` linking to a privacy policy and no inline explanation text → 🟡 Warning.\n  Korean: 수집 시점 개인정보 고지 — 민감 데이터 입력 필드 근처에 수집 목적 또는 개인정보처리방침 링크 필요\n\n- [ ] **Right of withdrawal \u002F cancellation policy** — E-commerce and subscription checkout flows must link to a cancellation or returns policy before the final purchase confirmation. A \"Buy Now\" or \"Confirm Order\" CTA with no visible policy link nearby is non-compliant in EU\u002FUK\u002Fmany US states.\n  Code signal: final checkout CTA (`type=\"submit\"`, \"pay now\", \"confirm order\" label patterns) with no adjacent link text matching \"cancel\", \"return\", \"refund\", \"withdrawal\" → 🟡 Warning.\n  Korean: 청약 철회 \u002F 취소 정책 — 최종 결제 확인 버튼 근처에 취소·환불 정책 링크 필요\n\n- [ ] **Age gate for restricted content** — Products that could be accessed by minors but involve age-restricted content (alcohol, gambling, adult content, financial products in some jurisdictions) must present an age verification mechanism before access. A DOB picker or age confirmation checkbox that can be trivially bypassed (no backend verification) is a weak gate — flag as 🟡.\n  Code signal: presence of age-gated content indicators in route names \u002F class names (`\u002Fadults-only`, `age-verify`, `18+`) without a corresponding gate component → 🔴 Critical.\n  Korean: 연령 제한 콘텐츠 연령 확인 — 연령 제한 콘텐츠 접근 전 연령 확인 절차 필요\n\n- [ ] **Accessibility legal baseline** — WCAG 2.1 AA is a legal requirement under: ADA \u002F Section 508 (US), European Accessibility Act (EU — mandatory from June 2025), PSBAR (UK public sector), DDA (Australia), AODA (Canada). Any WCAG AA failure is therefore potentially a legal liability, not just a UX issue. Cat 6 Blocker-tier issues in this audit carry legal weight — do not treat them as optional fixes.\n  Note: if the product is a public-sector website (EU\u002FUK) or a service covered by the EAA, all 🚫 Cat 6 Blockers are legal compliance failures.\n  Korean: 접근성 법적 기준 — WCAG 2.1 AA는 미국(ADA), EU(유럽 접근성법), 영국(PSBAR), 호주(DDA), 캐나다(AODA)에서 법적 의무 사항임\n\n**Before flagging any pattern:** Check the Ethical Persuasion reference in `references\u002Fethics.md`. Do not flag legitimate persuasion techniques (genuine social proof, real urgency, positive progress framing, transparent anchoring).\n\n---\n\n### CATEGORY 19: Nielsen's Usability Heuristics\n*Full rules, all heuristic definitions, detection signals, and the Usability Score → `references\u002Fheuristics.md`*\n\n**Scope:** Audits the 6 heuristics with genuine gaps not covered by existing categories. H4, H5, H8, H9 are already covered by Cat 5, 7, 4, 11\u002F12 respectively — note this in the report but do not re-audit them here.\n\n**When to run:**\n- Always on Full audits\n- Skip on Quick audits unless user specifically requests heuristic review\n- Triggers on: \"heuristic review\", \"Nielsen audit\", \"usability heuristics\", \"H1\u002FH2\u002FH6...\" etc.\n- Korean triggers: \"휴리스틱 검토\", \"닐슨 감사\", \"사용성 휴리스틱\", \"H1\u002FH2\u002FH6 확인\"\n\n**Usability Score** is separate from the Overall Score and the Accessibility Score. Start at 100, apply standard deduction tiers. Display as: **Usability Score: X\u002F100**\n\nScoring bands:\n- **90–100** → Heuristically sound \u002F 사용성 기준 충족\n- **70–89** → Minor usability gaps \u002F 사소한 사용성 문제\n- **50–69** → Significant usability issues \u002F 심각한 사용성 문제\n- **\u003C 50** → Fundamental failures \u002F 근본적인 사용성 실패\n\n**Checklist:**\n\n*H1 — Visibility of System Status (gaps only) \u002F 시스템 상태 가시성*\n- [ ] **Async button feedback \u002F 비동기 버튼 피드백** — Every button triggering an async action has a loading\u002Fdisabled state during processing\n- [ ] **Form submit confirmation \u002F 폼 제출 확인** — Every form submission confirms success with a toast or confirmation screen\n- [ ] **Multi-step progress \u002F 멀티스텝 진행 표시** — Flows with 3+ steps have a visible progress indicator *(detailed progress bar checks → Cat 11 Goal Gradient Theory)*\n\n*H2 — Match Between System and Real World \u002F 시스템과 현실 세계의 일치*\n- [ ] **No jargon in UI \u002F UI 내 전문 용어 없음** — No raw error codes, stack traces, or developer terms in user-facing copy\n- [ ] **Icon meaning \u002F 아이콘 의미** — Icons match their conventional real-world meaning in context\n- [ ] **Locale-aware formats \u002F 로케일 형식** — Dates and numbers use `Intl` formatting, not hardcoded patterns\n\n*H3 — User Control and Freedom (gaps only) \u002F 사용자 제어 및 자유*\n- [ ] **Modal exit \u002F 모달 종료** — All modals have a visible close mechanism and respond to Escape key\n- [ ] **Flow back navigation \u002F 플로우 뒤로 가기** — Multi-step flows have a Back option on every step except the first\n- [ ] **Destructive confirmation \u002F 파괴적 작업 확인** — Permanent destructive actions have confirmation dialogs naming what's being deleted\n\n*H6 — Recognition Rather Than Recall \u002F 기억보다 인식*\n- [ ] **Nav labels \u002F 내비게이션 라벨** — Primary navigation items have visible text labels alongside icons\n- [ ] **Persistent labels \u002F 지속적인 라벨** — Form labels remain visible during and after input\n- [ ] **Selection visibility \u002F 선택 가시성** — Dropdown triggers show the currently selected value; selected options are visually distinct\n\n*H7 — Flexibility and Efficiency of Use \u002F 사용의 유연성 및 효율성*\n- [ ] **Keyboard shortcuts \u002F 키보드 단축키** — Power user shortcuts are hinted in tooltips on frequently-used actions (productivity tools)\n- [ ] **Bulk actions \u002F 일괄 작업** — Management-oriented lists support bulk selection where clearly warranted\n- [ ] **Preference persistence \u002F 환경설정 저장** — User preferences are saved across sessions where relevant\n\n*H10 — Help and Documentation \u002F 도움말 및 문서*\n- [ ] **Helper text \u002F 도움말 텍스트** — Fields with format requirements show guidance before the user submits\n- [ ] **Actionable errors \u002F 실행 가능한 오류 메시지** — Every error message states what went wrong AND how to fix it\n- [ ] **Contextual help \u002F 상황별 도움말** — Complex or technical fields have tooltips\n- [ ] **Onboarding \u002F 온보딩** — Empty states and first-use screens give clear next-step guidance\n\n**Note in report:**\n- English: \"H4 (Consistency), H5 (Error Prevention), H8 (Aesthetics), H9 (Error Recovery) are covered by Cat 5, 7, 4, and 11\u002F12 respectively — see those categories for full results.\"\n- Korean: \"H4(일관성), H5(오류 예방), H8(미적 디자인), H9(오류 복구)는 각각 Cat 5, 7, 4, 11\u002F12에서 다룹니다.\"\n\n---\n## Step 3: Score & Report\n\n### Scoring Formula\n\nStart at **100 points**. Deduct for every issue found:\n\n| Severity | Deduction | When to use |\n|---|---|---|\n| 🚫 **Blocker** | **−12 points** | Violates a legal or compliance standard — WCAG AA, GDPR, PECR, consumer protection law. Cannot ship as-is. |\n| 🔴 **Critical** | **−8 points** | Breaks usability or accessibility for a significant user population. Must fix before shipping. |\n| 🟡 **Warning** | **−4 points** | Degrades experience. Should fix. |\n| 🟢 **Tip** | **−1 point** | Polish-level improvement. Nice to have. |\n\n**Floor is 0** — score never goes negative.\n\n**Blocker vs Critical — the distinction:**\nBlockers are not \"worse Criticals\" — they are a different class of issue. A Blocker violates an external legal or compliance standard that exists independently of design opinion. A Critical breaks usability badly but is a design quality failure, not a legal one.\n\n```\nBlocker examples (legal\u002Fcompliance basis):\n  🚫 Text contrast below WCAG AA 4.5:1 (Cat 2) — WCAG 2.1 SC 1.4.3\n  🚫 Interactive element with no accessible name (Cat 6) — WCAG 2.4.6\n  🚫 Keyboard-inaccessible interactive element (Cat 6) — WCAG 2.1.1\n  🚫 Meaningful image missing alt text (Cat 6) — WCAG 1.1.1\n  🚫 prefers-reduced-motion absent when animations exist (Cat 8) — WCAG 2.3.3\n  🚫 Pre-checked marketing consent checkbox (Cat 18) — GDPR\u002FPECR\n  🚫 Non-essential cookies defaulting to ON (Cat 18) — GDPR\u002FePrivacy\n  🚫 Skip link missing or broken (Cat 16) — WCAG 2.4.1\n  🚫 Form input with no label (Cat 7) — WCAG 1.3.1\n\nCritical examples (usability basis, not legal):\n  🔴 Missing touch target size (Cat 6) — best practice, not strict law\n  🔴 Missing error\u002Fempty\u002Floading states (Cat 11)\n  🔴 CTA hierarchy inversion on non-consent screens (Cat 18)\n  🔴 Off-brand or broken dark mode (Cat 9)\n```\n\n**When in doubt between Blocker and Critical:** If you can cite a specific WCAG success criterion number, GDPR article, or consumer law provision — it's a Blocker. If it's a usability or design quality judgment — it's a Critical.\n\n### Issue Deduplication — Required\n\nWhen the same problem appears across multiple nodes, **never list it multiple times**. Deduplicate into a single issue entry with an exact count and node ID list.\n\n```\nRule: If the same root cause affects N nodes → one issue entry, not N entries.\n\nFormat:\n  🔴 [Issue name] — affects N nodes\n  Nodes: [id1], [id2], [id3] (+ N more if >5 — list first 5 only)\n  Fix: [single fix that resolves all instances]\n\nExamples:\n  ✅ Good: \"Off-grid column width (60.17px) — 3 nodes: 456:49851, 456:49873, 456:49895\"\n  ❌ Bad:  \"Column 5 off-grid\" + \"Column 10 off-grid\" + \"Column 11 off-grid\" (3 separate entries)\n\n  ✅ Good: \"Input field missing Error state — 10 nodes: 68:27912, 68:27927, 68:27943 (+7 more)\"\n  ❌ Bad:  Listing each input as a separate critical issue\n\nDeduplication also applies to scoring:\n  A repeated issue (same root cause, N nodes) counts as ONE issue for deduction purposes.\n  Exception: if fixing each instance requires a separate action (different values, different\n  components), count each as separate — but still group them visually in the report.\n```\n\nThis keeps reports scannable. A report with 3 grouped issues is more actionable than one with 15 separate entries that all say the same thing.\n\n### Accessibility Score\nIn addition to the overall score, always surface a separate **Accessibility Score** combining Categories 2, 6, 7, 15, and 16:\n\n- Start at 100, apply the same 4-tier deduction formula to issues in those 5 categories only\n- Cat 15 is included because it now contains WCAG Blocker-level SVG accessibility checks (aria-hidden, role=\"img\", icon-button labels) that are legal violations, not just design opinions\n- 🚫 Blocker issues in these categories use −12 (legal violations — WCAG AA)\n- Display as: **Accessibility Score: X\u002F100**\n- If any 🚫 Blocker issues exist: append *\"⚠️ Contains legal compliance failures\"*\n\nScoring bands:\n- **90–100** → WCAG AA compliant — production-ready\n- **70–89** → Minor gaps, no Blockers\n- **50–69** → Significant gaps — likely has Blockers\n- **\u003C 50** → Failing — legal risk, do not ship\n\n**Always show the maths:**\n> Score: 100 − (1 × 🚫 12) − (2 × 🔴 8) − (3 × 🟡 4) − (1 × 🟢 1) = **59\u002F100** ⚠️ Contains legal compliance failures\n\n**Korean label:** 접근성 점수 *(Cat 2, 6, 7, 15, 16)*\n\n---\n\n### Strict Output Template\n\n> ⚠️ **MANDATORY — ALL AGENTS — NO EXCEPTIONS**\n> This template is not optional. Every audit report must use this exact structure regardless\n> of input type (Figma, code, screenshot, live URL, wireframe). Do not substitute a free-form\n> critique, UX review, or bullet-point list. The scored report IS the output.\n\nEvery audit report must use this exact structure — sections marked *(always)* appear on every audit. Sections marked *(conditional)* appear only when applicable.\n\n---\n\n#### REPORT HEADER *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔍  DESIGN AUDIT REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Field        | Value                                    |\n|--------------|------------------------------------------|\n| Input        | [component\u002Fpage name]                    |\n| Type         | [Figma MCP \u002F HTML \u002F React \u002F Screenshot]  |\n| Framework    | [detected framework] *(code only)*       |\n| Confidence   | [🟢 High \u002F 🟡 Medium \u002F 🔴 Low]           |\n| Scope        | [frame name + page \u002F filename]           |\n| Date         | [date]                                   |\n\n*(Figma only)*\n| Component Health | [N]% coverage · [N] detached · [N] unnamed |\n| Auto Layout      | [N]% frames using Auto Layout · [N] manual-position frames |\n| Code Connect     | [N] mapped · [N] unmapped *(if available)* |\n\n*(Code only)*\n| Design System  | [MUI \u002F Chakra \u002F shadcn\u002Fui \u002F Ant Design \u002F Radix \u002F None detected] |\n| Token Coverage | colors [N]% · spacing [N]% · radius [N]% |\n```\n\n> ⚠️ **Medium confidence audit** — input was a screenshot. Values are estimated.\n> For an exact audit, share the Figma file or code.\n> *(Only show this block when confidence is Medium)*\n\n---\n\n#### SCORES *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📊  SCORES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nOverall       [██████████░░░░░░░░░░]  [X]\u002F100\nAccessibility [████████░░░░░░░░░░░░]  [X]\u002F100  *(Cat 2, 6, 7, 15, 16)*\nEthics        [███████████████░░░░░]  [X]\u002F100  *(Cat 18)*\nUsability     [████████████░░░░░░░░]  [X]\u002F100  *(Cat 19 — H1\u002FH2\u002FH3\u002FH6\u002FH7\u002FH10)*\n              ↳ H4 Consistency → Cat 5 · H5 Error Prevention → Cat 7 · H8 Aesthetics → Cat 4 · H9 Recovery → Cat 11\u002F12\n\nScore formula: 100 − ([N] × 🚫 12) − ([N] × 🔴 8) − ([N] × 🟡 4) − ([N] × 🟢 1) = [X]\u002F100\n⚠️ Ethics Score uses its own formula: 🔴 −15 (Deceptive) · 🟡 −7 (Questionable) · 🟢 0 (Noted) — do not apply the standard formula to Ethics.\n\n[One sentence — what dragged the score down most.]\n```\n\n**Progress bar generation rule:**\n- Bar is 20 characters wide. Fill = round(score \u002F 5) filled blocks.\n- Use `█` for filled, `░` for empty.\n- Example: 68\u002F100 → 14 filled → `██████████████░░░░░░`\n- Omit Ethics and Usability bars if those categories were not audited.\n- Append `⚠️ Legal compliance failures` after Accessibility score if any 🚫 Blockers present.\n\n```\n### Score by Category\n\n| Category | Score | Bar | 🚫 | 🔴 | 🟡 | 🟢 |\n|---|---|---|---|---|---|---|\n| 1 · Typography | X\u002F10 | ██████░░░░ | 0 | 1 | 2 | 0 |\n| 2 · Color & Contrast | X\u002F10 | █████░░░░░ | 1 | 0 | 1 | 0 |\n| [other audited categories] | X\u002F10 | ██████████ | — | — | — | — |\n\n*(Bar is 10 chars wide. Fill = score value. █ filled, ░ empty. Score ≤ 5 → render bar in red context.)*\n*(Only include audited categories. Use — for unchecked severity levels.)*\n*(Score bands: ≥ 8 → ✅ good · 5–7 → 🟡 needs work · ≤ 4 → 🔴 critical · Korean: ≥ 8 → ✅ 양호 · 5–7 → 🟡 개선 필요 · ≤ 4 → 🔴 심각)*\n```\n\n---\n\n#### ISSUES *(always — follow deduplication rules)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🚫  BLOCKERS  ·  cannot ship  ·  −12pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit this entire section if no Blockers found)*\n\n> **[Issue name]**\n> [What's wrong — one sentence]\n> Fix: [Specific how-to]\n> Legal basis: [WCAG SC X.X.X \u002F GDPR Article X]\n> Location: [node IDs \u002F line numbers]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔴  CRITICAL ISSUES  ·  must fix  ·  −8pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]**\n> [What's wrong — one sentence]\n> Fix: [Specific how-to]\n> Why: [One sentence rule reference]\n> Location: [node IDs \u002F line numbers]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟡  WARNINGS  ·  should fix  ·  −4pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]**\n> [What's wrong] → Fix: [how-to]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟢  TIPS  ·  nice to have  ·  −1pt each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]** — [What's wrong] → [Fix]\n```\n\n---\n\n#### POSITIVES *(always — min 2, max 4)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✅  WHAT'S WORKING WELL\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [Specific genuine positive — not generic praise]\n- [Specific genuine positive]\n```\n\n---\n\n#### CROSS-FRAME INCONSISTENCIES *(conditional — only when 2+ frames audited)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n⚡  CROSS-FRAME INCONSISTENCIES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Property | Frame A | Frame B |\n|---|---|---|\n| [Property] | [value] | [value] |\n```\n\n---\n\n#### RE-AUDIT DELTA *(conditional — only on 2nd+ audit in session)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📈  PROGRESS SINCE LAST AUDIT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nScore:    [prev] → [current]  ([+\u002F−N] pts)\nFixed:    ✅ [category] (+Npts)  ✅ [category] (+Npts)\nOpen:     🔴 [N] critical issues remaining\nNew:      [N] new issues found\n```\n\n**After the delta text block, render a Visualizer widget showing a before\u002Fafter score bar pair:**\n```\nTwo horizontal bars, stacked:\n  Previous:  ████████████░░░░░░░░  [prev]\u002F100\n  Current:   ███████████████░░░░░  [current]\u002F100  [+N ↑ in green \u002F −N ↓ in red]\n\nBar width: 20 chars. Colour: previous bar in muted gray (#888), current bar in #534AB7 (improved)\nor #E24B4A (regressed). Delta badge right-aligned.\n```\n- English intro: *\"Here's how your score moved since the last audit.\"*\n- Korean intro: *\"지난 감사 이후 점수 변화를 확인해 보세요.\"*\n- If score is unchanged: show both bars at same fill, no delta badge, note \"No change in overall score.\"\n\n---\n\n#### REPORT FOOTER *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*Audit run with Design Auditor Skill v1.2.13 · [input type] · [confidence level]*\n*Re-audit after fixes to track progress.*\n*수정 후 재감사를 실행하여 진행 상황을 추적하세요.*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n\n---\n\nAfter the report, immediately render:\n1. **Radar chart** (Step 3b) — always\n2. **Issue Priority Matrix widget** — always if 3+ issues\n3. **Severity filter widget** — if 5+ issues\n4. **\"What next?\" widget** (Step 4) — always\n\n**Issue Priority Matrix — effort\u002Fimpact heuristics:**\n\nEffort (1–10): 1–2 = single value change · 3–4 = one component rework · 5–6 = multi-component refactor · 7–9 = architectural change\n\nImpact (1–10): 9–10 = breaks a11y or core usability · 6–8 = degrades experience · 3–5 = polish-level · 1–2 = cosmetic\n\nUse deterministic positioning (no random jitter). Render severity as both color AND a letter inside the dot (C\u002FW\u002FT) for colorblind accessibility. Axis labels: English: \"Effort to Fix\" (x) \u002F \"Impact on Design\" (y) · Korean: \"수정 난이도\" (x) \u002F \"개선 효과\" (y) — use the user's detected language. Introduce with one sentence in the user's detected language:\n- English: *\"Here's every issue mapped by how hard it is to fix versus how much it will improve the design — start in the top-left.\"*\n- Korean: *\"발견된 모든 문제를 수정 난이도와 개선 효과 기준으로 매핑했습니다 — 왼쪽 위부터 시작하세요.\"*\n\n### Step 3b: Radar Chart Visualizer (always run after report)\n\nImmediately after presenting the markdown report, use the Visualizer tool to render an interactive radar chart widget. This gives users a visual at-a-glance summary of all category scores.\n\n**How to generate it:**\n- Extract the per-category scores (X\u002F10) from the audit you just ran\n- Use only the categories that were actually audited (skip ones marked as not applicable)\n- Pass real scores — do not use placeholder data\n- Use three colours based on score band: `#534AB7` (purple) for scores 8–10, `#E8A838` (amber) for scores 6–7, `#E24B4A` (red) for scores ≤ 5 — applied to both the filled shape segments and the dots\n- Label categories scoring ≤ 5 in red bold, 6–7 in amber, 8–10 in muted gray\n- Each segment and label must be clickable via `sendPrompt()` to drill into that category\n- Show a compact score-bar legend below the chart listing all audited categories\n- Display the overall score in the centre of the radar\n\n**Session history awareness:**\nStore the current overall score in a JS variable accessible to the widget. If a previous score exists in the session (from a re-audit), show a delta badge next to the centre score:\n- Score improved: `+N ↑` in green\n- Score dropped: `−N ↓` in red  \n- No change: omit the badge\n\n**Tone:** Introduce the chart with one short sentence in the user's detected language before the Visualizer call:\n- English: *\"Here's a visual breakdown of how your design scores across each category — red spots are your highest-priority fixes.\"*\n- Korean: *\"각 카테고리별 디자인 점수를 시각적으로 확인해 보세요 — 빨간 영역이 가장 우선적으로 수정해야 할 부분입니다.\"*\n\n**Fallback (if Visualizer is unavailable or rendering fails):**\nDo not skip the visual entirely. Fall back to the Score by Category table from the Strict Output Template — it carries the same per-category data in tabular form. Add a note:\n- English: *\"(Radar chart unavailable in this context — see Score by Category table above.)\"*\n- Korean: *\"(이 환경에서는 레이더 차트를 표시할 수 없습니다 — 위의 카테고리별 점수 표를 참고하세요.)\"*\n\n---\n\n### Severity Filter\nAfter presenting the report, offer a filter widget using ask_user_input if there are 5+ issues:\n\n- question: \"Would you like to filter the issues?\"\n- type: single_select\n- options: \"Show only 🔴 Critical \u002F 심각한 문제만\" \u002F \"Show 🔴 + 🟡 \u002F 심각 + 경고\" \u002F \"Show everything \u002F 전체 보기\" \u002F \"No filter \u002F 필터 없음\"\n\nApply the filter and re-present only the relevant issue sections. Score and category breakdown always remain visible regardless of filter.\n\n### Re-audit: Session Progress Tracker\n\nMaintain a running audit history across the session. Every time an audit completes, record:\n- Overall score\n- Accessibility score\n- Count of 🔴 critical \u002F 🟡 warning \u002F 🟢 tip issues\n- Timestamp label (e.g. \"Audit 1\", \"Audit 2\")\n\n**On re-audit**, open with a delta summary before the report in the user's detected language:\n- English: *\"Since the last audit: score improved from [X] → [Y]. 🔴 issues down from [N] to [N]. Here's what's new...\"*\n- Korean: *\"지난 감사 이후: 점수가 [X] → [Y]로 향상되었습니다. 🔴 심각한 문제가 [N]개에서 [N]개로 감소했습니다. 변경된 내용은 다음과 같습니다...\"*\n\nThen show only the **changed or new** issues — do not re-list resolved ones. Acknowledge wins explicitly in the user's detected language:\n- English: *\"✅ Fixed since last audit: Color & Contrast (+3pts), States (+4pts)\"*\n- Korean: *\"✅ 지난 감사 이후 수정됨: 색상 대비 (+3점), 상태 (+4점)\"*\n\n**After the radar chart**, if 2+ audits exist in the session, render a second small Visualizer widget — a simple horizontal progress bar or sparkline showing score history across audits (e.g. 58 → 71 → 84). Keep it minimal: one line, scores as labels, no axes. This helps users feel the momentum of improvement.\n\n---\n\n## Step 4: Offer to Fix\n\nAfter every report and radar chart, present a **\"What next?\" widget** using the ask_user_input tool:\n\n- question: \"What would you like to do next?\"\n- type: multi_select\n- options:\n  - \"Fix all Critical issues \u002F 심각한 문제 모두 수정\"\n  - \"Fix a specific issue \u002F 특정 문제 수정\"\n  - \"Teach me the rules behind my top issues \u002F 핵심 문제 원리 설명\"\n  - \"Wireframe to Spec \u002F 와이어프레임 스펙 출력\"\n  - \"Developer handoff report \u002F 개발자 전달 보고서\"\n  - \"Explain an issue \u002F 문제 설명\"\n  - \"Re-audit \u002F 재감사\"\n  - \"Export report \u002F 보고서 내보내기\"\n  - \"Export to Canva \u002F Canva로 내보내기\"\n  - \"Show session progress \u002F 세션 진행 상황\"\n\n**If \"Fix all Critical issues\"** → loop through each 🔴 issue one by one:\n1. Show issue name + before\u002Fafter diff (code) or design direction (screenshot)\n2. Ask using ask_user_input:\n   - question: \"Apply this fix? (Issue N of N)\"\n   - type: single_select\n   - options: \"Yes, apply it \u002F 적용\" \u002F \"Skip this one \u002F 건너뛰기\" \u002F \"Stop fixing \u002F 중단\"\n3. Apply or skip based on response, confirm each applied fix with ✅\n4. Move to the next 🔴 issue\n5. After all 🔴 issues are resolved or skipped: \"All critical fixes done. Want to continue with 🟡 warnings?\"\nNever batch-apply all fixes at once without per-issue confirmation.\n\n**If \"Fix a specific issue\"** → present a widget listing all 🔴 and 🟡 issues by name, let the user pick one, then show the before\u002Fafter diff and apply the fix.\n\n**If \"Teach me the rules behind my top issues\"** → pick the 3 highest-severity unique issue types from the audit and deliver a focused design principle lesson for each. Format:\n\n```\nFor each of the top 3 issues (🚫 first, then 🔴, then 🟡):\n\n  📐 Lesson [N]: [Rule name]\n  ─────────────────────────\n  The rule: [One sentence stating the design principle, not the fix]\n  Why it exists: [One sentence on the human reason — perception, cognition, law, etc.]\n  What it looks like when broken: [Real-world analogy or concrete example]\n  What it looks like when fixed: [Concrete before\u002Fafter contrast]\n  Where to learn more: [Relevant reference — WCAG SC, Nielsen heuristic, known article title]\n```\n\n- Use plain language — this mode targets learners, not experts\n- If beginner mode is active: no jargon, maximum one technical term per lesson with an inline definition\n- If experienced mode: go deeper, cite the cognitive science or perceptual research behind the rule\n- Korean: deliver the full lesson in Korean if the user's language is Korean\n\n**After all 3 lessons, render a Visualizer card widget — one card per lesson:**\n```\nLayout: 3 horizontal cards (or stacked on mobile)\nEach card:\n  Header:  [emoji] Lesson [N] · [Rule name]  — background #534AB7 (purple), white text\n  Body:    The rule (one line, bold) + Why it exists (one line, muted)\n  Footer:  \"Learn more: [reference]\" — small, linked if possible\n\nCard border: 1px solid #E8E8E8 · radius: 8px · padding: 16px\n```\n- English intro: *\"Here are the 3 design principles behind your top issues — tap any card to drill in.\"*\n- Korean intro: *\"상위 3개 이슈의 디자인 원칙을 카드로 정리했습니다 — 카드를 탭해 더 자세히 알아보세요.\"*\n- Each card header should be clickable via `sendPrompt()` to trigger \"Explain [Rule name] in more detail\"\n- After the widget: *\"Apply any of these fixes? I can edit the code or Figma directly.\"*\n  Korean: *\"수정을 도와드릴까요? 코드나 Figma에서 직접 변경할 수 있습니다.\"*\n\n**If \"Explain an issue\"** → present a widget listing all issues found. When one is selected:\n- Explain what the rule is and why it exists (1–2 sentences)\n- Show a real-world example of what it looks like when broken vs fixed\n- Explain the impact on users (e.g. \"users with low vision won't be able to read this\")\n- Cite the specific rule from the relevant reference file\n- If beginner mode is active: use plain language with no assumed knowledge\n- If experienced mode: go deeper — cite WCAG success criterion, link to relevant spec\n\n**If \"Re-audit\"** → re-run the audit on the same input:\n```\nScope for re-audit:\n  - Use the exact same scope as the original audit (same categories, same WCAG level)\n  - Do NOT re-ask settings unless the user explicitly requests a scope change\n  - State at the top: \"Re-audit — same scope as Audit [N]\"\n  - Show delta summary before the new report (see Re-audit delta section in Strict Output Template)\n  - Only list issues that changed — resolved, newly found, or worsened\n  - Unchanged issues from the previous audit: do not re-list, just note \"N issues unchanged\"\n\nIf the user shares updated code or a new Figma link before selecting Re-audit:\n  → Use the new input automatically. Note: \"Re-auditing updated version.\"\n```\n\n**If \"Show session progress\"** → render the session sparkline widget showing all audit scores in the current session, with issue count deltas per audit. Only show this option if 2+ audits have been run.\n\n**If \"Developer handoff report\"** → produce a structured handoff document using this exact template:\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🛠️  DEVELOPER HANDOFF REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Field          | Value                          |\n|----------------|--------------------------------|\n| Component\u002FPage | [name]                         |\n| Audit date     | [date]                         |\n| Overall score  | [X]\u002F100                        |\n| A11y score     | [X]\u002F100                        |\n| Ethics score   | [X]\u002F100  *(if audited)*        |\n| Usability score| [X]\u002F100  *(if audited)*        |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🚫  BLOCKERS — fix before any other work\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit section if no Blockers)*\n\n| # | Issue | Location | Fix | Legal basis |\n|---|---|---|---|---|\n| 1 | [issue] | [node \u002F line] | [fix] | [WCAG SC \u002F GDPR] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔴  CRITICAL FIXES — required before shipping\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| # | Issue | Location | Fix | Exact value |\n|---|---|---|---|---|\n| 1 | [issue] | [node \u002F line] | [what to change] | [value] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🎨  CSS \u002F TOKEN SPEC\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Property | Current | Correct | Token |\n|---|---|---|---|\n| color | #999 | #666 | --color-text-secondary |\n| padding | 13px | 12px | --spacing-3 |\n| border-radius | 7px | 8px | --radius-md |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n♿  ACCESSIBILITY CHECKLIST\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] [aria fix needed]\n- [ ] [focus state needed]\n- [ ] [label needed]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔵  CODE CONNECT MAPPING  *(if available)*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Figma Component | Code Component | Status |\n|---|---|---|\n| Button\u002FPrimary | \u003CButton variant=\"primary\"> | ✅ Mapped |\n| Modal\u002FConfirm | — | 🟡 Unmapped |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟡  WARNINGS — non-blocking, should fix\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [warning 1]\n- [warning 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟢  TIPS — polish level, nice to have\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit section if no Tips)*\n\n- [tip 1]\n- [tip 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✅  WHAT'S ALREADY CORRECT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [positive 1]\n- [positive 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*Generated by Design Auditor Skill v1.2.13*\n*Design Auditor Skill v1.2.13 생성*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n\n**Korean note — 개발자 전달 보고서:** When the user is in Korean mode, render the handoff report with these translations:\n- Title: `🛠️ 개발자 전달 보고서`\n- Field labels: `컴포넌트\u002F페이지` · `감사 날짜` · `전체 점수` · `접근성 점수` · `윤리 점수` *(감사된 경우)* · `사용성 점수` *(감사된 경우)*\n- Section headers:\n  - `🚫 블로커 — 다른 작업보다 먼저 수정` · *(블로커 없으면 섹션 생략)*\n  - `🔴 치명적 수정 — 배포 전 필수`\n  - `🎨 CSS \u002F 토큰 스펙`\n  - `♿ 접근성 체크리스트`\n  - `🔵 코드 커넥트 매핑` *(사용 가능한 경우)*\n  - `🟡 경고 — 비차단, 수정 권장`\n  - `🟢 팁 — 마감 수준, 선택 사항` · *(팁 없으면 섹션 생략)*\n  - `✅ 이미 올바른 항목`\n- Table column headers: `이슈` · `위치` · `수정 방법` · `법적 근거` · `정확한 값` · `속성` · `현재값` · `올바른 값` · `토큰` · `Figma 컴포넌트` · `코드 컴포넌트` · `상태`\n- Footer: `*Design Auditor Skill v1.2.13 생성*`\n\n**If \"Export report\"** → create a downloadable `.md` file via file_create containing:\n- The full audit report in the Strict Output Template format\n- All widgets rendered as static markdown tables (scores, issue list, category breakdown)\n- The dev handoff section appended at the end\n- Filename: `design-audit-[component-name]-[date].md`\n\n**If \"Export to Canva\"** → generate a visual audit report card in Canva using the Canva connector. This is a stakeholder-friendly format — not the raw markdown report, but a clean visual summary.\n\n```\nWhen to offer:\n  → After any completed audit when Canva connector is available\n  → Add \"Export to Canva \u002F Canva로 내보내기\" as an option in the \"What next?\" widget\n\nWhat to generate (use Canva generate-design tool, type: \"doc\"):\n  Query: \"Design audit report card with score [X\u002F100], \n          accessibility score [X\u002F100], ethics score [X\u002F100], \n          [N] critical issues, [N] warnings, [N] tips. \n          Professional, clean layout with score rings and issue summary.\"\n\nContent to include in the Canva doc:\n  1. Header: \"Design Audit — [component\u002Fpage name]\" + date\n  2. Score ring or badge: Overall [X\u002F100] · A11y [X\u002F100] · Ethics [X\u002F100]\n  3. Issue summary table: 🚫 [N] Blockers · 🔴 [N] Critical · 🟡 [N] Warnings · 🟢 [N] Tips\n  4. Top 3 critical issues with one-line fix each\n  5. What's working well (2–3 positives)\n  6. Footer: \"Generated by Design Auditor Skill v1.2.13\"\n\nAfter generating:\n  → Present the Canva design to the user\n  → Note: \"This is a shareable visual summary — for the full technical report, use Export Report.\"\n\nIf Canva connector is unavailable:\n  → Skip this option silently in the widget. Do not mention it.\n```\n\n**If \"Wireframe to Spec\"** → produce a structured design specification document. This mode is different from the audit — it doesn't score, it annotates. Use all available context data (Figma layer data, screenshot, code structure) to produce a spec a developer could build from.\n\n```\n## 📐 Design Spec — [Component\u002FScreen Name]\n\n**Input type:** [Figma wireframe \u002F Greyscale screenshot \u002F Sketch]\n**Spec generated:** [date]\n**Fidelity:** Wireframe — values are recommended, not measured \u002F 와이어프레임 — 값은 권장사항이며 실측값이 아닙니다\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📐  LAYOUT & DIMENSIONS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(~ prefix = estimated. Confirm with designer before development.)*\n\n| Element | Width | Height | Notes |\n|---|---|---|---|\n| [Container] | [value or \"full width\"] | [value or \"auto\"] | [note] |\n| [Section] | [value] | [value] | [note] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📏  SPACING\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(All values snapped to 8pt grid. Arbitrary wireframe values adjusted to nearest multiple.)*\n\n| Location | Value | Notes |\n|---|---|---|\n| Page margins | 16px (mobile) \u002F 48px (desktop) | Standard if not specified |\n| Section gap | [value] | Between major sections |\n| Component padding | [value] | Inside cards\u002Fcontainers |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔤  TYPOGRAPHY\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Role | Font size | Weight | Line height | Notes |\n|---|---|---|---|---|\n| Heading | [value] | Bold | 1.2× | |\n| Subheading | [value] | SemiBold | 1.35× | |\n| Body | 16px | Regular | 1.5× | Minimum recommended |\n| Caption | 13px | Regular | 1.4× | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🧩  COMPONENTS REQUIRED\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Infer missing states — every interactive element needs: default, hover\u002Ffocus, disabled)*\n\n| Component | Variant | States required | Notes |\n|---|---|---|---|\n| [Button] | [Primary\u002FSecondary\u002FGhost] | Default, Hover, Loading, Disabled | |\n| [Input] | [Text\u002FSelect\u002FCheckbox] | Default, Focus, Error, Disabled | |\n| [Card] | [Standard] | Default, Hover | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✍️  COPY PLACEHOLDERS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Buttons are verbs. Errors say what went wrong + how to fix.)*\n\n| Location | Placeholder shown | Suggested copy | Notes |\n|---|---|---|---|\n| [CTA button] | \"Button\" | \"Get started\" | Use specific verb |\n| [Empty state] | \"No data\" | \"No [items] yet — [action]\" | |\n| [Error state] | \"Error\" | \"Something went wrong — [next step]\" | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🖱️  INTERACTION NOTES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] [Element]: on click → [expected behaviour]\n- [ ] [Form]: validate on blur, not on submit\n- [ ] [Modal trigger]: trap focus when open, restore on close\n- [ ] [Scroll]: [sticky header \u002F infinite scroll \u002F paginated?]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n♿  ACCESSIBILITY REQUIREMENTS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] All interactive elements have visible focus states\n- [ ] Form inputs have visible labels (not placeholder-only)\n- [ ] Images have alt text slots\n- [ ] Reading order: [describe logical DOM order]\n- [ ] Keyboard navigation: [describe tab flow]\n- [ ] [Any WCAG-specific requirements based on component type]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n❓  OPEN QUESTIONS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Gaps in the wireframe that must be decided before development)*\n\n- [ ] [Question about content\u002Fdata source]\n- [ ] [Question about edge cases — empty state, max content, overflow]\n- [ ] [Question about responsive behaviour at mobile breakpoint]\n- [ ] [Question about loading state if this fetches data]\n\n---\n*Generated by Design Auditor Skill v1.2.13 · Wireframe to Spec mode*\n*디자인 스펙 문서 · Design Auditor Skill v1.2.13 생성*\n*Values marked ~ are estimated. Confirm with designer before development.*\n*~ 표시 값은 추정치입니다. 개발 전 디자이너에게 확인하세요.*\n```\n\n**Korean note — 와이어프레임 스펙:** When the user is in Korean mode, translate the spec as follows:\n- Title: `## 📐 디자인 스펙 — [컴포넌트\u002F화면 이름]`\n- Field labels: `입력 유형` · `스펙 생성일` · `충실도`\n- Section headers (keep emoji, translate label):\n  - `📐 레이아웃 & 치수` · *(~ 접두사 = 추정치. 개발 전 디자이너에게 확인하세요.)*\n  - `📏 간격` · *(모든 값은 8pt 그리드에 맞춤. 와이어프레임의 임의 값은 가장 가까운 배수로 조정.)*\n  - `🔤 타이포그래피`\n  - `🧩 필요한 컴포넌트` · *(누락된 상태 추론 — 모든 인터랙티브 요소에 필요: 기본, 호버\u002F포커스, 비활성화)*\n  - `✍️ 카피 플레이스홀더` · *(버튼은 동사. 오류는 무엇이 잘못됐는지 + 수정 방법을 설명.)*\n  - `🖱️ 인터랙션 노트`\n  - `♿ 접근성 요구사항`\n  - `❓ 미결 질문` · *(개발 전에 결정해야 할 와이어프레임의 공백)*\n- Table column headers: `요소` · `너비` · `높이` · `비고` · `위치` · `값` · `역할` · `폰트 크기` · `굵기` · `행 높이` · `컴포넌트` · `변형` · `필요한 상태` · `위치` · `표시된 플레이스홀더` · `제안 문구`\n\n**Wireframe to Spec mode behaviour:**\n- Do NOT run a scored audit — no score, no severity labels, no issue list\n- Infer missing values using standard defaults from reference files (spacing.md, typography.md, states.md)\n- Flag every inferred\u002Festimated value clearly with ~ prefix or \"(recommended)\" note\n- Always include Open Questions — gaps in the wireframe are valuable to surface\n- If Figma MCP is active: use `get_design_context` layer data for exact values, fall back to estimates where data is missing\n- If screenshot only: all layout values are estimated — state this clearly at the top\n- Output as a downloadable `.md` file: `design-spec-[component-name]-[date].md`\n\nThen respond based on their selection. If they dismiss the widget, fall back to a language-appropriate line:\n- English: *\"Want me to apply any of these fixes? I can edit the code directly, or if you're in Figma, I can make changes there too. Or if you'd rather learn how to do it yourself, I can walk you through it step by step.\"*\n- Korean: *\"이 중에서 수정을 도와드릴까요? 코드를 직접 수정하거나 Figma에서 변경할 수 있습니다. 직접 해보고 싶으시면 단계별로 안내해 드릴게요.\"*\n\n### Ambiguous Input Widget\nIf the user triggers the skill but shares nothing (e.g. just says \"audit this\" with no attachment), use ask_user_input before asking in prose:\n\n- question: \"What are you sharing for the audit?\"\n- type: single_select\n- options: \"Figma link \u002F Figma 링크\" \u002F \"Screenshot \u002F 스크린샷\" \u002F \"Code (HTML\u002FCSS\u002FReact) \u002F 코드\" \u002F \"Written description \u002F 텍스트 설명\"\n\n**In Figma (🟢 High confidence, MCP active)**: Call `perform_editing_operations` → specific node IDs → verify with `get_screenshot` after each change. See F5 and `references\u002Ffigma-mcp.md` for operation types and safety rules. If `perform_editing_operations` is unavailable, fall back to design direction.\n\n**In code**: Always show a before\u002Fafter diff when fixing:\n```\n\u002F\u002F BEFORE\npadding: 13px 22px;\ncolor: #aaa;\n\n\u002F\u002F AFTER\npadding: 12px 24px;  \u002F* 8pt grid *\u002F\ncolor: #666;          \u002F* 4.5:1 contrast on white *\u002F\n```\n\n**In screenshots (🟡 Medium confidence)**: Never write code fixes for screenshot input — there is no source to edit. Instead give **design direction**:\n- Describe the change spatially: > \"Increase the gap between the label and input field — it should feel like they breathe, roughly 1.5× the current distance.\"\n- Give the target value as a design spec, not code: > \"Text color needs to be darker — aim for at least 4.5:1 against that background. A dark gray like #333 or #444 would work.\"\n- Reference visual landmarks: > \"The card padding looks tight on the left side — match it to the top padding so all four sides feel equal.\"\n- If the user needs code, prompt them: > \"If you can share the component code or Figma file, I can give you the exact value to change.\"\n\n**Teaching mode**: Walk through the fix step by step instead of doing it for them.\n\n---\n\n## Reference Files\n\n- `references\u002Ftypography.md` — Font rules, sizing, line height, hierarchy, type scale algorithm\n- `references\u002Fcolor.md` — Contrast ratios, WCAG luminance formula, palette guidance\n- `references\u002Fspacing.md` — 8-point grid, layout, proximity rules\n- `references\u002Ffigma-mcp.md` — Figma MCP workflow, page structure, component health, safe editing patterns\n- `references\u002Fstates.md` — Loading, empty, error, success & disabled state patterns + code checks\n- `references\u002Fmicrocopy.md` — Button labels, error messages, placeholder rules, per-role audit guide\n- `references\u002Ftokens.md` — Design token naming, two-tier system, token health scoring, dark mode architecture\n- `references\u002Fi18n.md` — Internationalization, RTL layout, locale-aware formatting\n- `references\u002Fcorner-radius.md` — Nested radius rule, radius scale, size-proportional rounding\n- `references\u002Felevation.md` — Shadow scale, elevation hierarchy, dark mode depth, code shadow audit\n- `references\u002Ficonography.md` — Icon families, optical sizing, touch targets, meaning consistency\n- `references\u002Fnavigation.md` — Tabs, breadcrumbs, back buttons, mobile nav, active states\n- `references\u002Fanimation.md` — Easing curves, duration scales, reduced motion, Figma Smart Animate naming, code animation checks\n- `references\u002Fethics.md` — Ethical design & dark patterns: full taxonomy (20 patterns across 5 groups), detection signals, ethics severity model, ethics score, ethical persuasion reference\n- `references\u002Fheuristics.md` — Nielsen's 10 Usability Heuristics: H1\u002FH2\u002FH3\u002FH6\u002FH7\u002FH10 gap coverage, detection signals, Usability Score, quick reference checklist\n","# Design Checker Skill\n\nYou are an expert design reviewer. Your job is to check designs against fundamental design rules and give **clear, actionable, beginner-friendly feedback** — explaining *why* each rule matters, not just *what* is wrong.\n\nThis skill is for everyone: developers who've never studied design, and designers who want a second opinion.\n\n---\n\n## Step 0: Language Detection & Beginner Check (Always Do This First)\n\n### Language Detection\nDetect the language of the user's message and respond entirely in that language throughout the audit — including all issue labels, explanations, fix suggestions, and the final report. If the user writes in Korean, the full audit report must be in Korean. If in English, respond in English. Never mix languages in a single report.\n\n**Korean response note:** When auditing in Korean, use natural Korean UX\u002Fdesign terminology:\n- 타이포그래피 (typography), 색상 대비 (color contrast), 간격 (spacing)\n- 접근성 (accessibility), 시각적 계층 (visual hierarchy), 일관성 (consistency)\n- 🔴 심각한 문제 \u002F 🟡 경고 \u002F 🟢 팁\n- Overall score label: **디자인 감사 보고서** \u002F 총점: X\u002F100\n\n### Beginner Check\nBefore anything else, gauge the user's familiarity with design from their message.\n\n**Signs they're a beginner:**\n- Vague requests: \"does this look okay?\", \"is this good?\"\n- They mention being a developer building UI\n- No design vocabulary (no mention of hierarchy, contrast, spacing, etc.)\n- They say things like \"I'm not a designer but...\"\n\n**If they seem like a beginner**, open with a friendly one-liner:\n> \"No worries — I'll walk you through exactly what to look for and why each thing matters. Design has rules, and once you know them, it gets much easier!\"\n\nThen **explain every term you use** inline (e.g., if you say \"visual hierarchy\", briefly say what that means in parentheses).\n\n**If they seem experienced**, skip the hand-holding and go straight to concise, technical feedback.\n\n---\n\n## Tone Guidelines (Apply Throughout Every Step)\n\n- **Never condescending.** They're smart — they just haven't learned this yet.\n- **Always explain the \"why.\"** One sentence is enough.\n- **Avoid jargon** unless the user uses it first.\n- **Be genuinely encouraging.** Real praise, not filler.\n- **Match their energy.** Casual question → relaxed tone. Formal request → structured response.\n\n---\n\n## Step 1: Gather the Design\n\n| Input Type | What to Do |\n|---|---|\n| **Figma URL or link** | Follow the **Figma MCP Workflow** below |\n| **Live website URL** | Fetch via `web_fetch`, treat as code input — see URL Input Spec |\n| **GitHub file URL** | Fetch raw source, treat as code input — see URL Input Spec |\n| **GitHub repo URL** | Browse key files, treat as code input — see URL Input Spec |\n| **Vercel \u002F Netlify preview URL** | Same as live website URL |\n| **CodeSandbox \u002F StackBlitz \u002F CodePen URL** | Fetch rendered output + source — see URL Input Spec |\n| **Storybook URL** | Fetch component source — see URL Input Spec |\n| **Code (HTML\u002FCSS\u002FReact\u002FVue)** | Read the file(s) directly |\n| **Screenshot or image** | Examine the attached image |\n| **Description only** | Ask for visuals — descriptions miss too much |\n\n### URL Input Spec\n\nWhen the user shares any non-Figma URL, apply this decision tree before auditing:\n\n---\n\n#### Live Website URL (`https:\u002F\u002Fdomain.com\u002F...`)\n*Includes Vercel previews (`*.vercel.app`), Netlify previews (`*.netlify.app`), staging URLs*\n\n```\n1. Fetch the URL using web_fetch to retrieve rendered HTML\u002FCSS\n2. Treat fetched content as code input — run Step 1.6 framework detection\n3. Set confidence: 🟡 Medium\n   Limitations:\n   - Cannot see non-rendered states (hover, focus, error, loading)\n   - Cannot audit authenticated pages without credentials\n   - Dynamic JS-rendered content may be incomplete\n   - Note in REPORT HEADER: \"Live URL — non-rendered states not assessed\"\n\n4. Login redirect handling:\n   → Inform user: \"This page requires login. I can audit the login page,\n     or share credentials and I'll attempt the authenticated experience.\"\n   → Never guess at content behind a login wall\n\n5. Credentials handling:\n   → Note in REPORT HEADER: \"Authenticated audit — credentials provided\"\n   → Never repeat credentials back in the report output\n\n6. Multi-page offer (after audit):\n   → \"Would you like me to audit other pages on this site?\"\n```\n\n---\n\n#### GitHub File URL (`github.com\u002Fuser\u002Frepo\u002Fblob\u002Fmain\u002Fpath\u002Fto\u002Ffile`)\n\n```\n1. Convert to raw URL: replace \u002Fblob\u002F with \u002Fraw\u002F or use raw.githubusercontent.com\n   Example: github.com\u002Fuser\u002Frepo\u002Fblob\u002Fmain\u002Fsrc\u002FButton.tsx\n         → raw.githubusercontent.com\u002Fuser\u002Frepo\u002Fmain\u002Fsrc\u002FButton.tsx\n2. Fetch the raw file content via web_fetch\n3. Treat as direct code input — full confidence 🟢 High\n4. Run Step 1.6 framework detection on the file content\n5. Note in REPORT HEADER: \"GitHub file: [filename] · [repo]\"\n\nIf the URL points to a directory (not a file):\n  → Treat as GitHub repo URL (see below)\n```\n\n---\n\n#### GitHub Repo URL (`github.com\u002Fuser\u002Frepo`)\n\n```\n1. Fetch the repo's default branch file listing\n2. Identify the most relevant files to audit:\n   Priority order:\n   a. src\u002Fcomponents\u002F or components\u002F — UI components\n   b. src\u002FApp.tsx \u002F App.vue \u002F index.html — root component\n   c. src\u002Fstyles\u002F or *.css \u002F *.scss \u002F tailwind.config.js — style files\n   d. package.json — detect framework\u002Fdependencies\n\n3. Fetch the 2–3 most relevant component\u002Fstyle files\n4. Set confidence: 🟡 Medium (partial codebase view)\n5. Note in REPORT HEADER: \"GitHub repo: [repo name] · [N] files audited\"\n\nPresent scope selector before auditing:\n  \"I found [N] component files in this repo. Which should I focus on?\"\n  Options: [list of found component files] + \"Audit all visible files\"\n\nIf repo is private or returns 404:\n  → \"This repo is private or unavailable. Share the code directly\n     or make the repo public to audit it.\"\n```\n\n---\n\n#### CodeSandbox \u002F StackBlitz URL\n\n```\nCodeSandbox: codesandbox.io\u002Fs\u002F[id] or codesandbox.io\u002Fp\u002Fsandbox\u002F[id]\nStackBlitz:  stackblitz.com\u002Fedit\u002F[id]\n\n1. Fetch the URL to get the rendered preview HTML\n2. Also attempt to fetch the source files if accessible:\n   CodeSandbox API: codesandbox.io\u002Fapi\u002Fv1\u002Fsandboxes\u002F[id]\n   StackBlitz: check for embedded source in the page\n3. If source available → treat as code input (🟢 High confidence)\n4. If preview only → treat as screenshot\u002Flive URL (🟡 Medium confidence)\n5. Note in REPORT HEADER: \"CodeSandbox\u002FStackBlitz — [source\u002Fpreview only]\"\n```\n\n#### CodePen URL\n\n```\nCodePen: codepen.io\u002F[user]\u002Fpen\u002F[id]\n\n1. Fetch the debug URL for clean HTML: codepen.io\u002F[user]\u002Fdebug\u002F[id]\n   Or fetch the embed: cdpn.io\u002Fpen\u002Fdebug\u002F[id]\n2. Treat rendered output as live URL input (🟡 Medium confidence)\n3. CSS\u002FJS source is often visible in page source — extract if available\n4. Note in REPORT HEADER: \"CodePen — rendered preview audited\"\n```\n\n---\n\n#### Storybook URL (`[domain]\u002Fstorybook` or `storybook.[domain]`)\n\n```\nDetecting Storybook: URL contains \u002Fstorybook, \u002Fstory\u002F, ?path=\u002Fstory\u002F\nor page title contains \"Storybook\"\n\n1. Fetch the Storybook URL\n2. Identify component being shown from the URL path:\n   ?path=\u002Fstory\u002Fbutton--primary → auditing Button component, Primary variant\n3. Treat rendered HTML as live URL input for visual checks\n4. If source iframe is accessible, extract component HTML for code checks\n5. Set confidence: 🟡 Medium\n6. Note in REPORT HEADER: \"Storybook — [component name] · [variant]\"\n\nMulti-component offer:\n  → After audit: \"This Storybook has other components. Want me to audit\n    another? Share the story URL for that component.\"\n```\n\n---\n\n**REPORT HEADER format for all URL inputs:**\n```\nEnglish:\n**Input:** [URL type] — [url or repo\u002Ffilename]\n**Type:** [Live URL \u002F GitHub \u002F CodeSandbox \u002F Storybook]\n**Confidence:** 🟡 Medium (or 🟢 High for GitHub file)\n**Limitations:** [what can't be assessed — list the specific gaps]\n\nKorean:\n**입력:** [URL 유형] — [url 또는 저장소\u002F파일명]\n**유형:** [라이브 URL \u002F GitHub \u002F CodeSandbox \u002F Storybook]\n**신뢰도:** 🟡 보통 (GitHub 파일의 경우 🟢 높음)\n**제한사항:** [평가할 수 없는 항목 — 구체적인 제한 목록]\n```\n\nIf nothing shared yet, use ask_user_input:\n- question: \"What are you sharing for the audit?\"\n- type: single_select\n- options: \"Figma link \u002F Figma 링크\" \u002F \"Live URL \u002F 라이브 URL\" \u002F \"GitHub URL \u002F GitHub 링크\" \u002F \"Screenshot \u002F 스크린샷\" \u002F \"Code (HTML\u002FCSS\u002FReact) \u002F 코드\" \u002F \"Written description \u002F 텍스트 설명\"\n\n### Step 1b: Smart Defaults (infer before asking)\n\nBefore presenting any widget, infer as much as possible from what was submitted. Only ask when genuinely ambiguous.\n\n**Infer scope from the request:**\n- User says \"quick look\", \"just check\", \"fast review\" → default to Quick audit\n- User says \"full audit\", \"everything\", \"thorough\" → default to Full audit\n- User mentions specific areas (\"check my typography\", \"is the contrast ok?\") → default to Custom, pre-select those categories\n- No signal → default to Full audit and proceed without asking\n\n**Infer stage from the design itself:**\n- Greyscale \u002F wireframe \u002F lorem ipsum present → Early concept\n- Polished visuals, real content, component library → Dev handoff\n- User says \"live\", \"shipped\", \"in production\", \"our app\" → Production\n- No signal → default to Dev handoff (the strictest safe default)\n\n**Wireframe detection — special case:**\nIf the input is clearly a wireframe (greyscale, box placeholders, no real content, skeleton-level fidelity), offer the **Wireframe to Spec** mode before running a standard audit:\n- English: *\"This looks like a wireframe — would you like a design spec output instead of a standard audit? I can annotate dimensions, spacing, states required, copy placeholders, and component suggestions.\"*\n- Korean: *\"와이어프레임처럼 보입니다 — 표준 감사 대신 디자인 스펙 출력을 원하시나요? 치수, 간격, 필요한 상태, 카피 플레이스홀더, 컴포넌트 제안을 주석으로 작성해 드릴 수 있습니다.\"*\nIf yes → run Wireframe to Spec mode (see Step 4).\nIf no → run standard audit at Early concept stage with relaxed severity.\n\n**Infer WCAG level:**\n- Always default to AA. Only ask if the user explicitly mentions AAA, government\u002Flegal context, or \"enhanced accessibility.\"\n\n**Only ask questions when inference fails.** If all three can be inferred, skip all widgets and go straight to the audit. State inferred values at the top of the report in the user's detected language:\n- English: *\"Inferred: Full audit · Dev handoff · WCAG AA — let me know if any of these are wrong.\"*\n- Korean: *\"추론된 설정: 전체 감사 · 개발 전달 · WCAG AA — 잘못된 항목이 있으면 알려주세요.\"*\n\n**If scope is still ambiguous after inference**, ask one combined widget — not three separate ones:\n- question: \"A few quick settings before I start:\"\n- type: multi_select (let them override any inferred value)\n- options: \"Full audit (default) \u002F 전체 감사\" \u002F \"Quick audit — 5 categories \u002F 빠른 감사\" \u002F \"Custom categories \u002F 직접 선택\" \u002F \"Early concept \u002F 초기 개념\" \u002F \"Dev handoff (default) \u002F 개발 전달\" \u002F \"Production \u002F 운영 중\" \u002F \"WCAG AAA (default is AA)\"\n\n**If Quick audit is selected or inferred**, dynamically pick the 5 highest-risk categories based on input type — do NOT use a hardcoded list:\n\n| Submitted Type | Quick audit categories |\n|---|---|\n| Full page screenshot | Color & Contrast, Visual Hierarchy, Typography, Spacing & Layout, Accessibility |\n| Form | Accessibility, States, Microcopy, Color & Contrast, Spacing & Layout |\n| Dashboard \u002F data-heavy | Visual Hierarchy, Typography, Color & Contrast, Consistency, Responsiveness |\n| Single component | Color & Contrast, Accessibility, States, Typography, Spacing & Layout |\n| Navigation | Accessibility, States, Navigation, Responsiveness, Visual Hierarchy |\n| Figma file | Color & Contrast, Design Tokens, Accessibility, Spacing & Layout, Consistency |\n| Code file | Accessibility, Design Tokens, States, Color & Contrast, Typography |\n\nState at top of report in the user's detected language:\n- English: *\"Quick audit — 5 categories selected for your [type]. Run a full audit to check all 19.\"*\n- Korean: *\"빠른 감사 — [유형]에 맞는 5개 카테고리를 선택했습니다. 전체 19개 항목을 확인하려면 전체 감사를 실행하세요.\"*\n\n**Severity thresholds by stage** (apply silently based on inferred or selected stage):\n\n| Issue Type | Early Concept | Dev Handoff | Production |\n|---|---|---|---|\n| Missing hover\u002Ffocus states | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Placeholder content | 🟢 Tip | 🔴 Critical | 🔴 Critical |\n| Off-grid spacing | 🟢 Tip | 🟡 Warning | 🟡 Warning |\n| WCAG contrast failure | 🟡 Warning | 🔴 Critical | 🔴 Critical |\n| Missing error states | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Hardcoded tokens | 🟢 Tip | 🟡 Warning | 🔴 Critical |\n| Icon touch targets | 🟡 Warning | 🔴 Critical | 🔴 Critical |\n\n**WCAG AA thresholds (default):**\n- Normal text: ≥ 4.5:1 · Large text (18px+ or 14px+ bold): ≥ 3:1 · UI components: ≥ 3:1\n\n**WCAG AAA thresholds (if requested):**\n- Normal text: ≥ 7:1 · Large text: ≥ 4.5:1 · UI components: ≥ 4.5:1 · No images of text · Reflow at 400% · Focus indicator 3:1 contrast\n\n### Component-Type Detection (auto-detected)\n\nIdentify what type of UI was submitted and weight categories accordingly. Never apply a one-size-fits-all audit.\n\n| Detected Type | Signals | Priority Categories | Skip |\n|---|---|---|---|\n| **Full page \u002F screen** | Multiple sections, nav, hero, footer | All 19 | Nothing |\n| **Form** | Input fields, labels, submit button | Accessibility, States, Microcopy, Spacing, Typography | i18n (unless multilingual signals) |\n| **Modal \u002F dialog** | Overlay, close button, constrained width | Spacing, States, Microcopy, Accessibility, Elevation | Navigation, Responsiveness |\n| **Navigation** | Nav bar, tabs, sidebar, breadcrumbs | Navigation, Accessibility, States, Responsiveness, Iconography | Elevation, Corner Radius |\n| **Card \u002F list item** | Repeated unit, thumbnail, metadata | Typography, Spacing, Visual Hierarchy, Consistency, Corner Radius | Navigation, i18n |\n| **Dashboard** | Data viz, metrics, tables, filters | Visual Hierarchy, Consistency, Typography, Color, Responsiveness | Motion, i18n |\n| **Single component** | Button, input, badge, avatar alone | Typography, Color, Spacing, Accessibility, States, Corner Radius, Elevation | Navigation, i18n, Responsiveness |\n\nAlways state detected type and skipped categories at the top of the report in the user's detected language:\n- English: *\"Detected: Form — auditing 14 of 19 categories. Skipped: i18n & RTL, Navigation, Responsiveness, Motion, Design Tokens (no code provided).\"*\n- Korean: *\"감지된 유형: 폼 — 19개 카테고리 중 14개를 감사합니다. 건너뜀: 국제화 및 RTL, 내비게이션, 반응형, 모션, 디자인 토큰 (코드 없음).\"*\n\n---\n\n## Figma MCP Workflow\n\nWhen a Figma file or URL is involved, follow these steps. Read `references\u002Ffigma-mcp.md` for full details and safe editing patterns.\n\n### F0: Check MCP Availability First\nBefore attempting any Figma tool call, check if Figma MCP is active by attempting `get_design_context`. If it fails or is unavailable, respond in the user's detected language:\n- English: *\"I can see you've shared a Figma link, but I don't have Figma MCP access in this session. Could you export a screenshot or paste the relevant CSS\u002Fcomponent code? I can still run a full audit — I'll just note it as 🟡 Medium confidence since I won't have exact layer data.\"*\n- Korean: *\"Figma 링크를 공유해 주셨지만, 이 세션에서는 Figma MCP 접근 권한이 없습니다. 스크린샷을 내보내거나 관련 CSS\u002F컴포넌트 코드를 붙여넣어 주시겠어요? 전체 감사는 진행할 수 있지만, 정확한 레이어 데이터가 없으므로 🟡 중간 신뢰도로 표시됩니다.\"*\n\nNever attempt to audit a Figma URL without MCP access — do not guess or hallucinate layer values.\n\n### F1: Resolve the Link\nIf given a Figma URL or shortlink → call `resolve_shortlink` first to get the node ID.\n\n### F1.5: Get File Structure\nBefore diving into any node, call `get_design_pages` on the file key to understand the full file structure.\n\n**What to do with the result:**\n\n```\nIf the file has 1 page:\n  → Proceed directly to F2 with the provided node ID. No need to ask.\n\nIf the file has 2–5 pages:\n  → State the page names at the top of the report.\n  → If the user gave a specific node URL, audit that frame and note which page it's on.\n  → Offer to audit other pages after the current audit completes.\n\nIf the file has 6+ pages:\n  → Present a widget before auditing:\n    question: \"This file has [N] pages — which would you like to audit?\"\n    type: single_select\n    options: [list of page names] + \"Audit all pages \u002F 모든 페이지 감사\"\n  → If \"Audit all pages\": run sequential audits per page, aggregate scores, surface a\n    ranked summary at the end (highest issue count first).\n\nIf the user gave no specific node ID (just a file URL):\n  → Use get_design_pages to list pages, present the widget above, then proceed.\n```\n\n**File structure line in report header** (always include when 2+ pages exist):\n- English: *\"File: [N] pages — auditing '[page name]' (page [N] of [N]).\"*\n- Korean: *\"파일: [N]개 페이지 — '[페이지 이름]' 감사 중 ([N]\u002F[N]).\"*\n\n### F2: Get Design Context\nCall `get_design_context` on the node. Returns: layer structure, component names, typography (font, size, weight, line-height), colors (fills, strokes, opacity), spacing (padding, gap, auto-layout), and component\u002Fstyle references.\n\n**Component health scan (run automatically on every Figma audit):**\nWhile reading the layer tree from `get_design_context`, tally the following:\n\n```\nFor every layer in the tree, classify it:\n  - Named component instance (e.g. \"Button\u002FPrimary\u002FDefault\", \"⚡ Input\") → component ✅\n  - Raw frame\u002Fgroup with a meaningful name (e.g. \"Header\", \"Card Item\") → named frame ⚠️\n  - Raw frame\u002Fgroup with a generic name (\"Frame 12\", \"Group 7\", \"Rectangle\") → unnamed 🔴\n  - Detached instance (shows no componentId) → detached 🟡\n\nCompute:\n  total_layers = all non-hidden layers\n  component_pct = (named component instances \u002F total_layers) × 100\n  unnamed_pct = (unnamed layers \u002F total_layers) × 100\n\nThresholds:\n  component_pct ≥ 60% → ✅ Healthy component usage\n  component_pct 30–59% → 🟡 Partial — some components, many one-offs\n  component_pct \u003C 30% → 🔴 Low — mostly raw layers, not using a component system\n\nShow the Component Health line in the report header (always, on Figma audits):\n  \"Component health: 68% component coverage · 4 detached instances · 12 unnamed layers\"\n\nFlag as issues:\n  unnamed_pct > 20% → 🟡 \"High proportion of unnamed layers ([N]) — slows handoff and makes edits harder\"\n  detached_instances > 0 → 🟡 \"N detached component instances — updates to the main component won't propagate\"\n  component_pct \u003C 30% → 🔴 \"Low component coverage ([N]%) — most elements are raw frames, not reusable components\"\n```\n\n**Auto-Layout compliance scan (run automatically on every Figma audit):**\nWhile reading the layer tree from `get_design_context`, check for absolute-position frames that should be auto-layout:\n\n```\nFor every Frame or Group in the tree:\n  - If it contains 2+ child layers arranged in a clear row or column pattern\n    AND it has no layoutMode (i.e. not using Auto Layout) → flag as 🟡 Warning\n    \"Frame '[name]' contains [N] stacked\u002Frow children but uses manual positioning —\n     convert to Auto Layout for responsive behaviour and easier spacing control\"\n\n  - If a Frame has children with hardcoded x\u002Fy absolute positions AND the frame\n    has a fixed width → 🟡 Warning\n    (absolute children won't reflow when content changes)\n\n  - If layoutMode = HORIZONTAL or VERTICAL but itemSpacing or padding values\n    are not on the 8pt grid → 🟡 (same as Cat 3 spacing check)\n\nPositive signals to acknowledge:\n  → Frames using Auto Layout (layoutMode = HORIZONTAL or VERTICAL) → ✅\n  → Consistent itemSpacing across sibling Auto Layout frames → ✅\n  → \"Min W\" \u002F \"Fill\" constraints used instead of fixed widths → ✅\n\nShow in report header on Figma audits when manual-position frames are found:\n  \"Auto Layout: [N]% of frames using Auto Layout · [N] frames with manual positioning\"\n```\n\n### F3: Get a Screenshot\nCall `get_screenshot` on the same node. Essential — context data alone misses visual issues like crowding, poor contrast, or bad hierarchy.\n\n### F3.5: Get Variable Definitions + Contrast Analysis\nCall `get_variable_defs` on the same node. Returns the actual token\u002Fvariable data bound to the design (e.g. `color\u002Fprimary: #7c3aed`, `spacing\u002Fmd: 16px`).\n\n**Use for Category 17 (Design Tokens):**\n- If a value in `get_design_context` matches a variable in `get_variable_defs` → it is tokenized ✅\n- If a value in `get_design_context` has no matching variable → it is hardcoded 🔴\n- If `get_variable_defs` returns empty or fails → note \"No variables found — token coverage cannot be verified\" and audit Cat 17 from context data only\n- Declare token coverage % in the Cat 17 section: e.g. \"4 of 7 color values tokenized (57%)\"\n\n**Use for Category 2 (Color & Contrast) — no screenshot required:**\nWhen color tokens are available from `get_variable_defs`, compute WCAG contrast ratios programmatically using this algorithm:\n\n```\n1. Extract all color token pairs where one is clearly a foreground (text, icon, border)\n   and the other is a background (surface, fill, container).\n   Look for naming patterns like:\n   - color\u002Ftext\u002F* paired with color\u002Fbackground\u002F* or color\u002Fsurface\u002F*\n   - color\u002Fon-* paired with color\u002F*\n   - color\u002Fforeground paired with color\u002Fcanvas\n\n2. For each hex color, compute relative luminance:\n   - Normalize: R = hex_r\u002F255, G = hex_g\u002F255, B = hex_b\u002F255\n   - Linearize: channel \u003C 0.04045 ? channel\u002F12.92 : ((channel+0.0539)\u002F1.055)^2.4\n   - L = 0.2126*R_lin + 0.7152*G_lin + 0.0722*B_lin\n\n3. Compute contrast ratio:\n   - ratio = (lighter_L + 0.05) \u002F (darker_L + 0.05)\n\n4. Compare against WCAG thresholds (from inferred or selected level):\n   - AA normal text: ≥ 4.5:1\n   - AA large text \u002F UI components: ≥ 3:1\n   - AAA normal text: ≥ 7:1\n   - AAA large text: ≥ 4.5:1\n\n5. Flag any pair that fails as a Cat 2 issue. Pre-populate the Contrast Checker widget\n   with the exact failing hex pair and the computed ratio.\n\n6. Also flag if no text\u002Fbackground token pairs can be identified — this means contrast\n   cannot be verified from tokens alone.\n```\n\n**Confidence upgrade:** If `get_variable_defs` returns usable color pairs, the Cat 2 audit upgrades from 🟡 Medium to 🟢 High confidence even if no screenshot is available. State this explicitly:\n- English: *\"Color contrast audited from design tokens (no screenshot required) — 🟢 High confidence.\"*\n- Korean: *\"색상 대비는 디자인 토큰에서 감사되었습니다 (스크린샷 불필요) — 🟢 높은 신뢰도.\"*\n\nIf `get_variable_defs` fails or returns no color pairs, fall back to screenshot-based visual assessment and 🟡 Medium confidence for Cat 2.\n\n### F3.6: Code Connect — Design-to-Code Mapping (if available)\n\nAfter variable definitions, attempt `get_code_connect_suggestions` on the audited node. This returns AI-suggested mappings between Figma components and real code components in the connected codebase.\n\n**What to do with the result:**\n\n```\nIf get_code_connect_suggestions returns mappings:\n  → For each suggested mapping (Figma component → code component):\n    - Note the component name, suggested code path, and confidence level\n    - Use this to enrich Cat 5 (Consistency) and Cat 17 (Tokens):\n      \"Button\u002FPrimary\u002FDefault\" → maps to \u003CButton variant=\"primary\"> in codebase\n    - Flag mismatches: Figma component name vs code component name divergence → 🟢 Tip\n    - Flag missing mappings: Figma components with no suggested code equivalent → 🟡\n      (component exists in design but not in codebase — handoff gap)\n\n  Also attempt get_code_connect_map to retrieve confirmed existing mappings:\n  → Confirmed mappings (user has already set up Code Connect) → show in report header\n  → No confirmed mappings → note \"Code Connect not configured — suggestions only\"\n\n  Add a Code Connect line to the REPORT HEADER when data is available:\n    \"Code Connect: [N] components mapped · [N] unmapped · [N] suggestions available\"\n\nIf get_code_connect_suggestions fails or returns empty:\n  → Skip silently. Do not mention it in the report.\n  → Code Connect requires the Figma Dev Mode and a connected codebase — not always available.\n```\n\n**Use for Cat 5 cross-check:**\n```\nWhen a component has a confirmed or suggested code mapping:\n  → Check if the Figma component name matches the code component name\n  → \"Button\u002FPrimary\" in Figma → \u003CPrimaryButton> in code → 🟢 Tip (minor naming drift)\n  → \"Button\u002FPrimary\" in Figma → \u003CBtn> in code → 🟡 Warning (naming too divergent)\n  → Figma has 12 button variants, code has 3 → 🟡 Warning (variant coverage gap)\n```\n\n**Use for developer handoff report:**\nWhen generating the Developer Handoff Report and Code Connect data is available, include a mapping table:\n\n```\n| Figma Component | Code Component | Status | Notes |\n|---|---|---|---|\n| Button\u002FPrimary\u002FDefault | \u003CButton variant=\"primary\"> | ✅ Mapped | — |\n| Card\u002FProduct | \u003CProductCard> | ✅ Mapped | — |\n| Modal\u002FConfirmation | — | 🟡 Unmapped | No code equivalent found |\n```\n\n### F4: Run the Audit\nWith context data, variable definitions, screenshot, and code connect data in hand, run the full audit below.\n\n### F5: Fix Directly in Figma (if requested)\nWhen the user selects \"Fix all Critical\" or \"Fix a specific issue\" and the original input was a Figma file (not a screenshot or code), apply fixes using `perform_editing_operations`. Always follow the safety rules in `references\u002Ffigma-mcp.md`.\n\n**Fix loop for Figma input:**\nFor each confirmed fix (user selected \"Yes, apply it\"):\n1. Look up the node ID from the audit (should have been captured during F2)\n2. **Pre-flight check:** Before calling `perform_editing_operations`, verify:\n   - The node ID exists in the context data captured during F2\n   - The node is not inside a component instance (see component instance caveat in `references\u002Ffigma-mcp.md`)\n   - The operation type matches the node type (e.g. `SET_FONT_SIZE` requires a text node)\n3. Call `perform_editing_operations` with the appropriate operation\n4. After each operation, call `get_screenshot` on the affected node to verify the change\n5. Show the screenshot and confirm ✅ with the before\u002Fafter values\n6. If the operation fails → see **Failure recovery** below\n\n**Failure recovery — partial failure handling:**\nIf `perform_editing_operations` throws an error or the screenshot shows the change did not apply:\n\n```\nStep 1: Identify the failure type\n  - \"Node not found\" → node ID is stale or incorrect. Re-call get_design_context to refresh.\n  - \"Cannot edit instance\" → node is inside a component instance. Find main component ID and retry there.\n  - \"Invalid operation\" → operation type doesn't match node type. Check node type in context data.\n  - \"Permission denied\" → file is view-only or in a shared library. Cannot edit via MCP.\n  - Unknown error → report to user and skip to next fix.\n\nStep 2: Report clearly to the user in their detected language\n  - English: \"⚠️ Fix [N] failed: [reason]. Skipping to the next issue — I'll note this one so you can apply it manually.\"\n  - Korean: \"⚠️ 수정 [N] 실패: [이유]. 다음 문제로 넘어갑니다 — 수동으로 적용할 수 있도록 기록해 두겠습니다.\"\n\nStep 3: Log the failed fix\n  Track all failed fixes in a list. After the loop completes, show a summary:\n  - English: \"N fixes applied ✅. N fixes need manual attention:\"\n  - Korean: \"N개 수정 완료 ✅. N개는 수동 적용이 필요합니다:\"\n  Then list each failed fix with the exact Figma right-panel value to enter manually.\n\nStep 4: Continue the loop\n  Never stop the entire fix loop because one fix failed. Skip the failed fix and continue.\n```\n\n**Operation type mapping — common audit fixes:**\n\n| Issue Type | Operation | Key Parameters |\n|---|---|---|\n| Off-grid width\u002Fheight | `SET_WIDTH` \u002F `SET_HEIGHT` | nodeId, value (snapped to 8pt) |\n| Off-grid padding | `SET_PADDING` | nodeId, paddingTop\u002FRight\u002FBottom\u002FLeft |\n| Off-grid gap | `SET_ITEM_SPACING` | nodeId, itemSpacing |\n| Auto-layout direction | `SET_LAYOUT_MODE` | nodeId, layoutMode |\n| Auto-layout alignment | `SET_PRIMARY_AXIS_ALIGN_ITEMS` | nodeId, primaryAxisAlignItems |\n| Text color contrast fail | `SET_FILL_COLOR` | nodeId, color: {r,g,b,a} in 0–1 range |\n| Font size too small | `SET_FONT_SIZE` | nodeId, fontSize |\n| Rename unlabelled layer | `RENAME_LAYER` | nodeId, name |\n| Touch target too small | `SET_WIDTH` + `SET_HEIGHT` | nodeId, 44 (minimum) |\n\n**If `perform_editing_operations` is not available:** Fall back to design direction mode for all fixes — describe the change spatially and provide the exact Figma right-panel values to enter manually. Never silently skip without informing the user.\n\n### F5.5: Generate Design System Rules (optional, post-audit)\n\nAfter the audit and fix loop complete, if the user asks \"can you generate design system rules?\" or \"set up design system enforcement\" — or if the audit found significant token\u002Fnaming issues — offer to call `create_design_system_rules`.\n\n```\nWhen to offer:\n  → Cat 17 (Tokens) score \u003C 70 — significant hardcoding found\n  → Component health \u003C 50% — low component coverage\n  → User explicitly asks for design system setup or enforcement\n  → Code Connect mappings were found (F3.6) — rules can reference real components\n\nWhat it does:\n  → Generates design system rules for the connected repository based on the\n    Figma file's component structure, token definitions, and naming conventions\n  → Rules can enforce: component naming, token usage, spacing scale, radius scale\n\nHow to offer (after fix loop):\n  English: \"I found significant design system gaps. Want me to generate design\n            system enforcement rules for your codebase based on this Figma file?\"\n  Korean: \"디자인 시스템 격차가 발견되었습니다. 이 Figma 파일을 기반으로 코드베이스에\n           대한 디자인 시스템 적용 규칙을 생성할까요?\"\n\nIf yes → call create_design_system_rules on the file key\nIf the call fails or is unavailable → note \"Design system rule generation requires\n  Figma Dev Mode and a connected repository\" and skip.\n```\n\n---\n\n## Step 1.5: Set Confidence Level — and act on it\n\nDeclare confidence based on input type, then **change audit behaviour accordingly**. Confidence is not just a label.\n\n| Input Type | Confidence | Behaviour changes |\n|---|---|---|\n| Figma file via MCP | 🟢 High | Full audit. All deductions apply. Exact values cited. |\n| Code (HTML\u002FCSS\u002FReact) | 🟢 High | Full audit. All deductions apply. Quote actual values in fixes. |\n| Screenshot \u002F image | 🟡 Medium | Visual audit only. Reduce deductions by 50% for issues that require exact values (spacing, token usage, exact px). Flag estimated values explicitly. Skip Design Tokens category entirely. |\n| Description only | 🔴 Low | Do not run a scored audit. Instead: ask for visuals, explain what you *can* observe from the description, list likely risk areas. Never assign a score on description alone. |\n\n**At 🟡 Medium confidence (screenshot input):**\n- Flag every estimated value: > \"Spacing appears to be ~12px (estimated from visual)\"\n- Do not cite exact hex values — describe color relationship instead: > \"Text appears low contrast against the background — likely below 4.5:1\"\n- Skip categories that are impossible to assess visually: Design Tokens, exact Typography metrics\n- Add a banner at the top of the report in the user's detected language:\n  - English: *⚠️ **Medium confidence audit** — input was a screenshot. Values are estimated from visual inspection. For an exact audit, share the Figma file or component code.*\n  - Korean: *⚠️ **중간 신뢰도 감사** — 스크린샷을 기반으로 했습니다. 값은 시각적 검토에 의해 추정되었습니다. 정확한 감사를 위해 Figma 파일 또는 컴포넌트 코드를 공유해 주세요.*\n- Apply a **−50% deduction modifier** to all 🟡 Warning and 🟢 Tip issues that depend on exact values. Only 🔴 Critical and 🚫 Blocker visual issues (clear contrast failures, missing states visible in screenshot) take full deductions.\n- **🚫 Blockers on screenshots:** Only flag as Blocker if the violation is visually unambiguous (e.g. clearly failing contrast, clearly missing label). Downgrade to 🔴 Critical with a note if confidence is insufficient to confirm a legal violation.\n\n**At 🟢 High confidence (Figma or code):**\n- Cite exact values in every issue: \"padding: 13px — should be 12px or 16px (8pt grid)\"\n- Reference specific layer names (Figma) or line numbers (code)\n- Full deductions apply, no modifiers\n\n---\n\n## Step 1.6: Code Input Extraction (HTML \u002F CSS \u002F React \u002F Vue)\n\nWhen the input is code (not a Figma file), extract audit data using this parallel spec. This ensures the Type Scale Stack, component health, consistency checks, and microcopy analysis all work on code input — not just Figma.\n\n### Code Audit Scope Selector\n\nBefore extracting values, check the size and nature of the input:\n\n```\nIf input is a single component file (\u003C 150 lines):\n  → Proceed directly with full audit. No need to ask.\n\nIf input is a large file or multiple files (150+ lines or 3+ files):\n  → Present scope widget before auditing:\n    question: \"This is a large codebase — what should I focus on?\"\n    type: multi_select\n    options:\n      \"Full audit — everything \u002F 전체 감사\"\n      \"Accessibility only (Cat 6, 7) \u002F 접근성\"\n      \"Design tokens & consistency (Cat 5, 17) \u002F 토큰 & 일관성\"\n      \"Responsive & layout (Cat 3, 10) \u002F 반응형 & 레이아웃\"\n      \"Typography & color (Cat 1, 2) \u002F 타이포그래피 & 색상\"\n      \"Motion & states (Cat 8, 11) \u002F 모션 & 상태\"\n\nIf the user has already indicated focus in their message\n(e.g. \"check the accessibility\", \"is the contrast ok\"):\n  → Skip the widget, infer the scope, note it in the report header.\n```\n\nState the audit scope at the top of the report under the REPORT HEADER:\n- English: `\"Scope: [selected categories] — [N] files, ~[N] lines\"`\n- Korean: `\"범위: [선택된 카테고리] — [N]개 파일, 약 [N]줄\"`\n\n### Framework Detection — Do This First\n\nBefore extracting any values, identify the framework. This changes how values are extracted and how fixes are written.\n\n```\nSignals to look for:\n\n  HTML\u002FCSS (vanilla)\n    → \u003Cdiv>, \u003Cbutton>, \u003Cinput> tags with class=\"\" or style=\"\"\n    → Standalone .css or .html files\n    → No import statements or JSX syntax\n\n  React \u002F JSX\n    → import React \u002F import { useState } \u002F import { ... } from ...\n    → JSX syntax: \u003CComponent \u002F>, className=, onClick=\n    → .jsx or .tsx file extension\n    → Possible: styled-components, CSS modules, inline styles\n\n  Vue\n    → \u003Ctemplate>, \u003Cscript setup>, \u003Cstyle scoped> blocks\n    → v-bind, v-model, :class, @click directives\n    → .vue file extension\n\n  Tailwind CSS (any framework)\n    → className \u002F class values with utility prefixes:\n      text-*, bg-*, p-*, m-*, gap-*, rounded-*, border-*, font-*, leading-*\n    → Often combined with React or Vue\n\n  CSS-in-JS (styled-components \u002F emotion)\n    → const Wrapper = styled.div`...`\n    → css`...` template literals\n    → Values are in JS template strings, not CSS files\n\n  CSS custom properties \u002F design tokens\n    → var(--token-name) in CSS values\n    → :root { --color-primary: #... } definitions\n\nDeclare the detected framework at the top of the audit:\n  \"Detected: React + Tailwind CSS\"\n  \"Detected: Vue 3 (Composition API) + CSS Modules\"\n  \"Detected: Vanilla HTML\u002FCSS\"\n\nThis declaration affects:\n  - How values are extracted (see per-category specs below)\n  - How fixes are written (Tailwind class swaps vs CSS property changes vs JSX prop changes)\n  - Which categories get code-specific superpower checks (see Cat 6, 8, 9, 13, 17)\n```\n\n### Design System Detection (run after framework detection)\n\nAfter identifying the framework, check for a known component library or design system. This changes how issues are interpreted — overriding a design system's defaults is often the root cause, not the symptom.\n\n```\nDetection signals:\n\n  Material UI (MUI) \u002F Joy UI\n    → import { Button, TextField, ... } from '@mui\u002Fmaterial' or '@mui\u002Fjoy'\n    → sx prop usage: sx={{ color: '...' }} or sx={{ p: 2 }}\n    → theme.palette.*, theme.spacing(), ThemeProvider\n\n  Chakra UI\n    → import { Box, Stack, ... } from '@chakra-ui\u002Freact'\n    → \u003CBox p={4} color=\"gray.700\"> — Chakra prop shorthand\n    → ChakraProvider in root\n\n  shadcn\u002Fui\n    → import { Button } from \"@\u002Fcomponents\u002Fui\u002Fbutton\"\n    → cn() utility from \"lib\u002Futils\" for class merging\n    → Radix UI primitives as peer deps (package.json: @radix-ui\u002F*)\n\n  Ant Design\n    → import { Button, Form, ... } from 'antd'\n    → ConfigProvider in root\n\n  Radix UI (headless)\n    → import * as Dialog from '@radix-ui\u002Freact-dialog'\n    → Direct Radix primitive imports\n\n  Bootstrap \u002F React-Bootstrap\n    → className=\"btn btn-primary\" or import { Button } from 'react-bootstrap'\n    → bootstrap CSS imported\n\n  None detected → treat as custom\u002Fvanilla (standard audit rules apply)\n\nDeclare at the top of the audit:\n  \"Detected: React + MUI v5\"\n  \"Detected: Next.js + shadcn\u002Fui + Tailwind CSS\"\n  \"Detected: Vue 3 + Ant Design\"\n```\n\n**Design system — system-specific issue types (add these to relevant categories when a DS is detected):**\n\n```\nMUI \u002F Joy UI:\n  Cat 6 — Accessibility:\n    → button:focus { outline: none } overriding MUI's focus-visible → 🔴 Critical\n      \"Overriding MUI's focus-visible breaks keyboard accessibility — remove the override\n       or use theme.components.MuiButton.styleOverrides.root with focus-visible targeting\"\n    → Calling .MuiButton-root CSS override without :focus-visible scope → 🟡\n  Cat 17 — Tokens:\n    → Hardcoded color values bypassing theme.palette → 🟡 \"Use theme.palette.primary.main\"\n    → sx={{ fontSize: '14px' }} instead of sx={{ fontSize: 'body2.fontSize' }} → 🟢 Tip\n\nChakra UI:\n  Cat 3 — Spacing:\n    → \u003CBox p=\"13px\"> instead of \u003CBox p={3}> (Chakra spacing scale: 3 = 12px) → 🟡\n    → Arbitrary spacing string bypassing Chakra's scale → 🟡\n  Cat 17 — Tokens:\n    → Hardcoded color strings bypassing the Chakra color scheme (\"gray.700\" is correct; \"#374151\" is not) → 🟡\n\nshadcn\u002Fui:\n  Cat 5 — Consistency:\n    → Direct className overrides on shadcn components without using the cn() utility → 🟡\n      (bypasses variant system — use variant prop or extend via cva())\n    → Multiple custom button implementations alongside shadcn's Button → 🟡\n\nAnt Design:\n  Cat 5 — Consistency:\n    → Direct style prop overrides on antd components instead of ConfigProvider\u002Ftheme → 🟡\n  Cat 6 — Accessibility:\n    → antd Form.Item without name prop → 🟡 (label\u002Finput association breaks)\n\nGeneral rule for all design systems:\n  → If a DS is detected AND a hardcoded value overrides its scale → always flag\n    with the system-specific fix path, not just the generic CSS fix\n  → Never flag system defaults as issues — only flag when the defaults are\n    overridden in a way that breaks the design or accessibility\n```\n\n### Typography extraction from code\n```\nCollect all unique font-size values across the codebase\u002Fcomponent:\n  - CSS: font-size declarations (px, rem, em)\n  - React\u002FVue: inline styles, className references to utility classes (e.g. text-sm, text-lg)\n  - Convert rem to px (base 16px unless overridden): 1rem = 16px, 0.875rem = 14px\n\nMap to roles by relative size and frequency (same logic as Figma):\n  - Largest → heading, next → subheading, most-frequent → body, smallest → caption\n\nCheck against typography.md rules and flag issues.\nTrigger Type Scale Stack widget with extracted sizes — same as Figma path.\n```\n\n### Color extraction from code\n```\nCollect all color values:\n  - CSS: color, background-color, border-color (hex, rgb, hsl, var(--token))\n  - Tailwind: color utility classes (text-gray-900, bg-white, border-blue-500)\n  - CSS variables: resolve var(--color-x) to actual hex if defined in the file\n\nFor each foreground\u002Fbackground pair visible in context:\n  - Run WCAG luminance contrast check (same algorithm as F3.5)\n  - Trigger Contrast Checker widget if any pair fails\n\nHardcoded values (not var(--token)) → flag for Cat 17 (token coverage)\n```\n\n### Spacing extraction from code\n```\nCollect spacing values:\n  - CSS: padding, margin, gap, width, height in px\n  - Tailwind: spacing utility classes (p-4 = 16px, m-3 = 12px, gap-2 = 8px)\n\nTailwind spacing scale: 1 unit = 4px. So p-4 = 16px ✅, p-3 = 12px ✅, p-[13px] = off-grid 🟡.\n\nCheck for off-grid values (not multiples of 4). Trigger 8pt Grid Visualizer widget on first offender.\n```\n\n### Component health from code\n```\nInstead of layer tally, assess structural patterns:\n  - Are UI elements defined as reusable components\u002Ffunctions? (React: \u003CButton>, Vue: \u003CBaseInput>) → ✅\n  - Are there inline one-off HTML structures with no component wrapper? → 🟡\n  - Count unique component definitions vs total render instances\n\nIf the input is a single component file (not an app):\n  - Note \"Single component input — cross-file component coverage cannot be assessed\"\n  - Audit the internal structure for prop hygiene, named slots, etc.\n```\n\n### Microcopy extraction from code\n```\nCollect all string literals that appear in the UI:\n  - Button children: \u003Cbutton>Submit\u003C\u002Fbutton>, \u003CButton>OK\u003C\u002FButton>\n  - Input placeholders: placeholder=\"Enter email\"\n  - Labels: \u003Clabel>First name\u003C\u002Flabel>\n  - Error strings: \"Invalid input\", \"Required\"\n  - Empty state text\n\nApply the same per-role checks as Cat 12. Cite line numbers instead of node IDs:\n  🟡 placeholder=\"eg: 5\" (line 47) — informal prefix. Use e.g. 5 or a unit hint.\n```\n\n### 2-frame comparison from code\n```\nIf the user shares 2+ component files or code snippets in the same session:\n  - Extract and compare button border-radius, primary color, body font-size across files\n  - Flag cross-file inconsistencies the same way as the Figma 2-frame compare\n```\n\n---\n\n## Step 1.7: Code Fix Output Format\n\nWhen the input is code, fixes must be output as actual before\u002Fafter code diffs — not descriptions. This is the code equivalent of F5 (Figma fix loop).\n\n### Fix format rules\n\n**Always output diffs in this format for every code fix:**\n\n```\nIssue: [issue description]\nFile: [filename or \"component\" if single file] · Line [N] (if known)\n\nBefore:\n  [exact original code — 1–5 lines of context]\n\nAfter:\n  [corrected code with the fix applied]\n\nWhy: [one-sentence reason referencing the rule]\n```\n\n**Framework-aware fix output:**\n\n```\nVanilla CSS fix:\n  Before: padding: 13px;\n  After:  padding: 12px;   \u002F* snapped to 4pt grid *\u002F\n\nTailwind fix:\n  Before: className=\"p-[13px]\"\n  After:  className=\"p-3\"  \u002F* 12px — nearest grid value *\u002F\n\nReact inline style fix:\n  Before: style={{ padding: 13 }}\n  After:  style={{ padding: 12 }}\n\nCSS custom property fix (prefer this over hardcoded):\n  Before: color: #8a8a8a;\n  After:  color: var(--color-text-secondary);\n\nAria fix:\n  Before: \u003Cimg src=\"logo.png\" \u002F>\n  After:  \u003Cimg src=\"logo.png\" alt=\"Company logo\" \u002F>\n\nFocus style fix:\n  Before: button:focus { outline: none; }\n  After:  button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }\n```\n\n**Fix grouping:** When the same issue repeats across lines, show one representative diff and note the others:\n```\n  Fix shown for line 23. Apply the same pattern to lines 31, 47, 89.\n```\n\n**When to offer a fix loop:**\nAfter completing the audit report, if there are 🔴 Critical issues, offer:\n- English: *\"Want me to output corrected code for all critical issues?\"*\n- Korean: *\"모든 중요 문제에 대한 수정된 코드를 출력해 드릴까요?\"*\n\nIf yes → output diffs for every critical in severity order, then warnings if requested.\n\n---\n\n## Step 2: Run the Design Audit\n\n> ⚠️ **OUTPUT FORMAT IS MANDATORY — DO NOT DEVIATE**\n> Every audit MUST end with a scored report using the Strict Output Template in Step 3.\n> This means: a numeric score out of 100, score arithmetic shown explicitly, issues grouped\n> by severity (🚫\u002F🔴\u002F🟡\u002F🟢), an Accessibility Score, and the What Next widget.\n> Do NOT produce a generic UX review, bullet-point critique, or free-form feedback instead.\n> If you are unsure of any value, estimate it and flag with 🟡 Medium confidence — but always\n> produce the scored report. Skipping the score is never acceptable.\n\nCheck each category. Skip clearly inapplicable ones. Mark each issue:\n\n- 🔴 **Critical** — Breaks usability or accessibility. Must fix. **(-8 points each)**\n- 🟡 **Warning** — Weakens the design. Should fix. **(-4 points each)**\n- 🟢 **Tip** — Polish-level improvement. Nice to have. **(-1 point each)**\n\n**Scoring formula (always show this explicitly in every report):**\n```\nScore = 100 − (blockers × 12) − (criticals × 8) − (warnings × 4) − (tips × 1)\n```\nShow the arithmetic inline so the user can see exactly how the score was reached. Example:\n> Score: 100 − (3 × 8) − (5 × 4) − (2 × 1) = 100 − 24 − 20 − 2 = **54\u002F100**\n\nNever just show the final number. The breakdown makes the score feel earned and tells the user exactly what to fix to move the needle. If 🟡 Medium confidence applies a −50% modifier, show that too:\n> Score: 100 − (2 × 8) − (3 × 4 × 0.5) − (1 × 1 × 0.5) = 100 − 16 − 6 − 0.5 = **77\u002F100** *(medium confidence modifier applied to warnings\u002Ftips)*\n\n---\n\n### CATEGORY 1: Typography\n*Full rules → `references\u002Ftypography.md`*\n\n- [ ] **Hierarchy** — Clear visual difference between headings, subheadings, body? (Size, weight, or color should vary meaningfully.)\n- [ ] **Font count** — Max 2 font families. More = visual chaos.\n- [ ] **Body text size** — Min 14px, 16px preferred. Never below 12px for any visible text.\n- [ ] **Line height** — 1.4–1.6× the font size for body text.\n- [ ] **Line length** — 60–80 characters per line. Wide lines (100+ chars) tire the eyes.\n- [ ] **Text contrast** — WCAG AA: 4.5:1 for normal text, 3:1 for large text (18px+).\n- [ ] **Alignment** — Don't randomly mix left-aligned and center-aligned body text.\n\n**→ Widget trigger:** Always attempt to trigger the **Type Scale Stack** widget on Figma or code input — do not wait for a typography issue to be found first. Extract all font sizes from `get_design_context` data directly:\n\n```\nFrom get_design_context, collect all unique fontSize values across all text nodes.\nMap each size to its likely role based on relative size and usage frequency:\n  - Largest 1–2 sizes → heading (h1, h2)\n  - Mid-range sizes → subheading \u002F label (h3, h4, label)\n  - Most frequent size → body\n  - Smallest sizes → caption \u002F helper\n\nThen check:\n  - Any body text fontSize \u003C 14 → 🔴 Critical\n  - Two sizes within 2px of each other → 🟡 Warning (too close to distinguish)\n  - Same fontSize used for visually different roles → 🟡 Warning (relies on weight alone)\n  - No size below 12px → ✅\n  - Scale ratio between adjacent levels (e.g. body→h2) \u003C 1.2 → 🟡 Warning (too flat)\n  - More than 5 distinct font sizes → 🟡 Warning (scale too complex)\n\nPass the collected sizes and roles as data to the widget.\nIf get_design_context returns no text nodes or fontSize data, skip the widget silently.\n```\n\nIntroduce with one sentence in the user's detected language:\n- English: *\"Here's how your type scale stacks up visually.\"*\n- Korean: *\"타입 스케일을 시각적으로 확인해 보세요.\"*\n\n---\n\n### CATEGORY 2: Color & Contrast\n*Full rules → `references\u002Fcolor.md`*\n\n- [ ] **WCAG contrast** — Normal text ≥ 4.5:1, large text ≥ 3:1, UI components ≥ 3:1.\n- [ ] **Color-only meaning** — Never use color as the *only* signal. Pair with icon or text.\n- [ ] **Palette size** — 1 primary + 1 accent + neutrals beats many colors.\n- [ ] **Color consistency** — Same color = same meaning everywhere.\n- [ ] **Low-contrast combos** — Light gray on white, yellow on white, white on light blue all commonly fail.\n- [ ] **Color blindness risk** — Red\u002Fgreen pairs (most common — affects ~8% of men), blue\u002Fyellow pairs, and low-saturation combinations all pose risk. Never rely on hue alone to convey state.\n\n**→ Widget trigger:** If any contrast issue is found — whether from `get_variable_defs` color token analysis (preferred) or from visual screenshot assessment — use the Visualizer to render the **Contrast Checker** widget. Pre-populate the foreground and background hex values from the failing pair. When contrast was calculated from design tokens, show the exact token names alongside the hex values (e.g. `color\u002Ftext\u002Fsecondary #8A8A8A on color\u002Fsurface\u002Fdefault #FFFFFF — ratio: 3.1:1 ❌`). The widget shows all 5 WCAG pass\u002Ffail levels live, a real text preview at heading\u002Fbody\u002Flabel sizes, and automatically calculates the nearest passing hex value as a fix suggestion. Introduce with one sentence in the user's detected language:\n- English: *\"Use this to test fixes — the widget calculates the exact color adjustment needed.\"*\n- Korean: *\"이 도구로 수정 사항을 바로 테스트해 보세요 — 통과 가능한 정확한 색상값을 자동으로 계산해 드립니다.\"*\n\n**Color blindness context — add to every Cat 2 color issue flagged:**\nFor each failing or risky color pair, append a one-line color blindness note:\n```\nPair type → Color blindness note to append:\n\n  Red + Green (e.g. red error on green success, red text on green bg):\n    → \"⚠️ Deuteranopia\u002FProtanopia risk — red and green are indistinguishable for ~8% of men.\n       Add a non-color signal: icon, pattern, or label.\"\n\n  Red\u002FOrange + background (error states, alerts):\n    → \"⚠️ Protanopia risk — reds appear dark brown\u002Fblack. Pair with an icon (✕, ⚠) and text.\"\n\n  Blue + Yellow \u002F Blue + Orange:\n    → \"⚠️ Tritanopia risk — blue and yellow are confused. Use contrast + shape cues.\"\n\n  Low saturation pairs (grey on grey, muted tones):\n    → \"⚠️ All types — low-saturation pairs affect all color blindness types. Increase contrast.\"\n\n  High-contrast black\u002Fwhite pairs:\n    → No color blindness note needed — safe for all types.\n\nOnly add the note when the pair is actually present in the design. Never add generic warnings\nto every color. One line, appended after the fix suggestion.\n```\n\n---\n\n### CATEGORY 3: Spacing & Layout\n*Full rules → `references\u002Fspacing.md`*\n\n- [ ] **8-point grid** — Spacing\u002Fsizing should be multiples of 8 (or 4). Arbitrary values look accidental.\n- [ ] **Proximity** — Related items close together, unrelated far apart.\n- [ ] **Padding consistency** — Uniform padding inside cards\u002Fcontainers.\n- [ ] **Breathing room** — Enough whitespace? Dense UIs overwhelm.\n- [ ] **Alignment** — Elements align to a shared edge or center.\n- [ ] **Content margins** — Consistent left\u002Fright margins, not edge-to-edge.\n\n**→ Widget trigger:** If any off-grid spacing value is found, use the Visualizer to render the **8pt Grid Visualizer** widget. Pre-populate the input with the first offending value found. The widget shows the value on a ruler alongside valid grid neighbours, calculates the snap distance, and pre-colors all common spacing values as on\u002Foff-grid. Introduce with one sentence in the user's detected language:\n- English: *\"Here's where that value sits on the grid and what to snap it to.\"*\n- Korean: *\"해당 값이 그리드에서 어디에 위치하는지, 어디로 맞춰야 하는지 확인해 보세요.\"*\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nOff-grid value detection:\n  → Collect all padding, margin, gap, width, height values in px\n  → Flag any value not divisible by 4 → 🟡 Warning\n  → Flag any value not divisible by 8 → 🟢 Tip (4pt is acceptable, 8pt is preferred)\n  → Tailwind: arbitrary values like p-[13px], gap-[22px] → 🟡\n  → Tailwind standard classes (p-4, gap-3) are on-grid by definition → ✅\n\n  Deduplicate: if the same off-grid value appears 5+ times, report once with count:\n    🟡 \"padding: 13px — appears in 7 places. Snap to 12px (p-3) or 16px (p-4).\"\n\nPadding consistency:\n  → Cards\u002Fpanels with mismatched padding sides (paddingTop ≠ paddingLeft etc.) → 🟡\n    Exception: intentional asymmetric padding (e.g. more horizontal than vertical) is fine\n    if it appears consistently across all similar components.\n  → Mixed shorthand: some components use padding: 16px, others padding: 16px 24px → 🟡\n\nz-index escalation:\n  → z-index values outside expected ranges (see spacing.md z-index table) → 🟡\n  → z-index: 9999 or z-index: 99999 on non-dev-tool elements → 🟡\n  → Multiple elements with the same z-index in overlapping contexts → 🟡\n\nContent margin check:\n  → Body\u002Fmain container with no max-width → 🟢 Tip (content stretches on wide screens)\n  → max-width > 1440px on body text containers → 🟢 Tip\n  → margin: 0 with no padding on outermost container → 🟡 (content touches screen edge)\n\nLogical properties (RTL safety):\n  → margin-left \u002F margin-right used in layout (not decorative) → 🟢 Tip\n    (prefer margin-inline-start \u002F margin-inline-end for RTL compatibility)\n  → padding-left \u002F padding-right on nav or directional containers → 🟢 Tip\n```\n\n---\n\n### CATEGORY 4: Visual Hierarchy & Focus\n\n- [ ] **One primary action per screen** — One thing should be obviously most important.\n- [ ] **Reading patterns** — Users scan in F or Z patterns. Key info along those paths.\n- [ ] **Size = importance** — Bigger = more important. Check it maps correctly.\n- [ ] **Contrast = importance** — High contrast = foreground. Check it maps correctly.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nFont-size prominence mapping:\n  → Collect all font-size values across the file (same as Cat 1 extraction)\n  → Map: largest = most prominent, most frequent = body, smallest = least prominent\n  → If the largest font-size element is not the primary CTA or heading → 🟡 Warning\n    (visual hierarchy may be inverted — the biggest thing should matter most)\n  → If body copy and a CTA\u002Fbutton share the same font-size → 🟡 Warning\n    (no size signal to distinguish the action from surrounding text)\n\nz-index stacking ladder:\n  → Collect all z-index values across the file\n  → Map relative stacking: base content (0–1) \u003C sticky headers (10–20) \u003C dropdowns (100–200)\n    \u003C modals (300–400) \u003C tooltips (500+) \u003C dev overlays (9999)\n  → z-index values not following a logical step ladder → 🟡 Warning\n    (e.g. modal at z-index 5 when a sticky header is at z-index 10 = modal renders behind header)\n  → Multiple elements at the same z-index in potentially overlapping contexts → 🟡\n  → z-index: 9999 \u002F 99999 on non-overlay elements → 🟡 (escalation smell)\n\nElement weight ratios:\n  → Identify the primary CTA (largest button, most prominent button by class\u002Ftype)\n  → Compare its font-weight and font-size against surrounding body text\n  → Primary CTA font-weight ≤ body font-weight → 🟡 Warning (CTA doesn't feel more important)\n  → Primary CTA font-size = body font-size with no weight or color differentiation → 🟡\n\nOverchoice check:\n  → Collect all interactive sibling elements (buttons, links, cards) within the same container\n  → If 4+ siblings share identical: font-size, font-weight, and background-color (or all lack background)\n    AND none is visually differentiated as primary → 🟡 Warning\n    \"4+ equal-weight options with no primary action — users experience decision paralysis.\n     Establish one clear primary action per section.\"\n  → If 6+ sibling options share identical visual treatment → 🔴 Critical\n    (Overchoice Paradox: too many undifferentiated choices measurably reduce decision quality and\n     completion rates. Demote, group, or hide lower-priority options.)\n  → Exception: lists (ul\u002Fol), nav menus, and data tables are exempt — overchoice applies to\n    action-oriented UI (CTAs, product cards, feature choices), not content lists.\n  → Korean: \"4개 이상 동일한 시각적 비중의 선택지 — 결정 마비 위험. 주요 액션을 명확히 구분하세요.\"\n\nOnly run this category if:\n  → Font-size data was successfully extracted (Cat 1 extraction already done)\n  Otherwise: note \"Visual hierarchy inferred from screenshot — see Cat 1 for typography data\"\n```\n\n---\n\n### CATEGORY 5: Consistency\n*Corner radius full rules → `references\u002Fcorner-radius.md`*\n\n- [ ] **Component reuse** — Buttons, inputs, cards identical throughout. No one-off styles.\n- [ ] **Icon family** — All icons from the same set (same style, same stroke weight).\n- [ ] **Corner radius scale** — Radii should come from a fixed set (e.g. 4, 8, 12, 16, 24px, full). Arbitrary values (7px, 11px) look accidental.\n- [ ] **Nested radius rule** — When an element sits inside another, outer radius = inner radius + padding. If the inner element has 8px radius and 12px padding, the outer must be ~20px. Mismatched nesting makes corners look \"poking out.\"\n- [ ] **Size-proportional radius** — Larger elements need larger radii. A small badge with 12px radius looks right. A large modal with 4px radius looks barely rounded.\n- [ ] **Pill shapes are intentional** — border-radius ≥ 50% of height creates a pill. Should be deliberate (tags, toggles, badges) not accidental.\n- [ ] **Zero radius is a choice** — Sharp corners (0px) should be a design language decision, not a forgotten default.\n- [ ] **Contextual radius** — Modals\u002Fsheets anchored to screen edges should have rounded top corners, square bottom. Floating elements fully rounded.\n- [ ] **Interaction states** — Hover, active, disabled states all visually distinct.\n\n**2-frame consistency compare mode:**\nWhen the audit session has 2+ frames audited (e.g. file has multiple pages, or the user shares a second frame for comparison), automatically cross-check these values between frames:\n\n```\nCross-frame checks (run silently, report only mismatches):\n  - Button corner radius: same value on both frames?\n  - Primary button fill color: same hex\u002Ftoken?\n  - Body font size: same value?\n  - Input field height: same?\n  - Primary heading font weight: same?\n  - Icon style: outline vs filled — consistent?\n\nReport cross-frame inconsistencies as:\n  🟡 Warning: \"[Property] differs between frames: [Frame A] = [value], [Frame B] = [value]\"\n  Example: \"Button corner radius: 8px on NTIR form, 4px on Dashboard screen — pick one.\"\n\nOnly run cross-frame checks when you have context data for 2+ frames in the session.\nSingle-frame audits skip this silently — do not mention it.\n```\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nMultiple button implementations:\n  → Collect all button-like elements: \u003Cbutton>, \u003Ca role=\"button\">, elements with onClick\n  → Group by visual role: primary (filled), secondary (outlined), ghost (text-only)\n  → If primary buttons have more than 1 unique background-color value → 🔴 Critical\n    (multiple primary button colors = broken visual language)\n  → If buttons of the same role have different border-radius values → 🟡 Warning\n  → If buttons of the same role have different font-size values → 🟡 Warning\n\nInconsistent border-radius:\n  → Collect all border-radius values applied to cards, panels, modals, buttons, inputs\n  → Group by element type (cards together, buttons together, inputs together)\n  → More than 2 distinct radius values per element type → 🟡 Warning\n    \"Cards use 3 different radius values: 4px, 8px, 12px — pick one.\"\n  → Arbitrary radius values (7px, 11px, 13px) not on a defined scale → 🟢 Tip\n\nColour consistency:\n  → Collect all background-color \u002F color values used for the same semantic role\n    (e.g. all primary button backgrounds, all body text colors)\n  → Same semantic role using 2+ different hex values (without token aliasing) → 🟡\n    \"Primary button uses #7c3aed in one place and #6d28d9 in another\"\n\nDuplicate style blocks:\n  → Scan for CSS rule blocks with identical property sets applied to different selectors → 🟢 Tip\n    (suggests a component opportunity — these should share a class)\n  → React\u002FVue: identical JSX style props repeated across 3+ components → 🟢 Tip\n\nInteraction state coverage:\n  → For each interactive element type (button, link, input, card), check:\n    → :hover defined? → ✅\n    → :focus or :focus-visible defined? → ✅\n    → :active defined? → 🟢 Tip if missing\n    → .disabled or [disabled] styled? → 🟡 if missing\n  → Inconsistency: some buttons have :hover, others don't → 🟡 Warning\n```\n\n---\n\n### CATEGORY 6: Accessibility (A11y \u002F WCAG)\n\n- [ ] **Touch targets** — Interactive elements ≥ 44×44px (iOS) or 48×48dp (Material).\n- [ ] **Focus states** — Visible focus ring on every keyboard-navigable element.\n- [ ] **Alt text readiness** — Meaningful images need alt text. Decorative = `aria-hidden`.\n- [ ] **Form labels** — Visible label on every input. Placeholder alone is not a label.\n- [ ] **Error messages** — Text description of errors, not just red border\u002Fcolor change.\n- [ ] **Reading order** — Visual order matches logical\u002FDOM order for screen readers.\n- [ ] **Motion sensitivity** — Animations respect `prefers-reduced-motion`.\n- [ ] **Link clarity** — Links distinguishable from text by more than color alone.\n\n**📋 Code input: deeper checks available (run these automatically)**\n```\nWhen auditing HTML\u002FReact\u002FVue code, check directly:\n\n  aria-label \u002F aria-labelledby\n    → Every \u003Cbutton> or \u003Ca> without visible text must have aria-label\n    → Icon buttons: \u003Cbutton aria-label=\"Close\">\u003CIcon \u002F>\u003C\u002Fbutton> ✅\n    → Missing: \u003Cbutton>\u003CIcon \u002F>\u003C\u002Fbutton> → 🔴 Critical\n\n  alt attributes on \u003Cimg>\n    → \u003Cimg src=\"...\" \u002F> (no alt) → 🔴 Critical\n    → \u003Cimg src=\"...\" alt=\"\" \u002F> (decorative, intentional empty) → ✅\n    → \u003Cimg src=\"logo.png\" alt=\"Company logo\" \u002F> → ✅\n\n  focus styles\n    → button:focus { outline: none } or *:focus { outline: none } → 🔴 Critical\n    → :focus-visible with visible outline → ✅\n    → Search for outline: none \u002F outline: 0 across all CSS\n\n  role attributes\n    → Custom interactive elements (\u003Cdiv onClick=...>) missing role=\"button\" → 🟡\n    → Landmark roles present: role=\"main\", role=\"nav\", role=\"complementary\" → ✅\n\n  tabIndex misuse\n    → tabIndex > 0 on any element → 🟡 (breaks natural tab order)\n    → tabIndex=\"-1\" on programmatically focused elements → ✅\n\n  input label association\n    → \u003Cinput id=\"email\" \u002F> must have \u003Clabel for=\"email\"> or aria-label → 🔴 if missing\n    → Placeholder-only inputs → 🔴\n\n  Color contrast (code path)\n    → Extract foreground\u002Fbackground pairs from CSS, run WCAG check programmatically\n    → More precise than visual estimate — cite exact ratio\n\n  SVG accessibility:\n    → Inline \u003Csvg> used decoratively (icon, illustration) without aria-hidden=\"true\" → 🔴 Critical\n      Correct: \u003Csvg aria-hidden=\"true\" focusable=\"false\">...\u003C\u002Fsvg>\n      Why: Screen readers announce SVG contents as text if not hidden, creating noise\n    → Inline \u003Csvg> used as a meaningful image (logo, chart, diagram) without role=\"img\"\n      AND a \u003Ctitle> element → 🔴 Critical\n      Correct: \u003Csvg role=\"img\" aria-labelledby=\"icon-title\">\u003Ctitle id=\"icon-title\">Company logo\u003C\u002Ftitle>...\u003C\u002Fsvg>\n    → \u003Csvg> with focusable=\"true\" (IE default) in an icon-only button → 🟡 Warning\n      (creates double tab stop — icon receives focus separately from its button wrapper)\n    → \u003Cuse href=\"...\"> or \u003Cuse xlink:href=\"...\"> referencing a \u003Csymbol> — check the \u003Csymbol> has a \u003Ctitle> → 🟡\n```\n\n---\n\n### CATEGORY 7: Forms & Inputs\n\n- [ ] **Label placement** — Labels above inputs (not beside or inside). Fastest to scan.\n- [ ] **Input sizing** — Wide enough to show typical content.\n- [ ] **Required field marking** — Asterisk (*) with legend, or label optional fields instead.\n- [ ] **Validation timing** — Validate on blur (leaving field), not only on submit.\n- [ ] **Error placement** — Error messages directly below the relevant field.\n- [ ] **Field grouping** — Related fields visually grouped (less space within, more between groups).\n- [ ] **Submit button state** — Loading state while submitting. Disable after first click.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\ninput type correctness:\n  → \u003Cinput type=\"text\"> for email → 🟡 should be type=\"email\"\n  → \u003Cinput type=\"text\"> for password → 🔴 should be type=\"password\"\n  → \u003Cinput type=\"text\"> for phone → 🟡 should be type=\"tel\"\n  → \u003Cinput type=\"text\"> for numbers → 🟡 should be type=\"number\" or inputMode=\"numeric\"\n  → \u003Cinput type=\"text\"> for URLs → 🟡 should be type=\"url\"\n  → \u003Cinput type=\"submit\"> instead of \u003Cbutton type=\"submit\"> → 🟢 Tip (button is more styleable)\n\nautocomplete attributes:\n  → Name fields missing autocomplete=\"name\" \u002F autocomplete=\"given-name\" → 🟡\n  → Email fields missing autocomplete=\"email\" → 🟡\n  → Password fields missing autocomplete=\"current-password\" or \"new-password\" → 🟡\n  → Credit card fields missing autocomplete=\"cc-number\" etc. → 🟡\n  → Cite the field and the missing value\n\nrequired + aria-required:\n  → \u003Cinput required> without aria-required=\"true\" → 🟢 Tip (redundant but explicit for AT)\n  → Required inputs with no visual indicator (* or \"(required)\" label) → 🟡\n\naria-describedby for error messages:\n  → Error message element exists but not linked via aria-describedby on its input → 🟡\n  → Correct: \u003Cinput aria-describedby=\"email-error\"> ... \u003Cspan id=\"email-error\">...\u003C\u002Fspan>\n\nfieldset + legend for grouped inputs:\n  → Radio groups or checkbox groups without \u003Cfieldset>\u003Clegend> → 🟡\n  → Only one radio\u002Fcheckbox option → skip this check\n\ninputMode for mobile keyboards:\n  → Numeric inputs missing inputMode=\"numeric\" or inputMode=\"decimal\" → 🟢 Tip\n  → This triggers the correct soft keyboard on mobile\n\nnovalidate + custom validation:\n  → \u003Cform> without novalidate when custom validation JS exists → 🟡 (browser + custom = double errors)\n  → \u003Cform novalidate> with no custom validation JS visible → 🟡 (validation silently disabled)\n\ndisabled vs readonly:\n  → \u003Cinput disabled> when the intent is read-only display → 🟢 Tip\n    (disabled excludes from form submission; readonly keeps the value but prevents editing)\n```\n\n---\n\n### CATEGORY 8: Motion & Animation\n*Full rules → `references\u002Fanimation.md`*\n\n- [ ] **Purpose** — Every animation orients, gives feedback, or shows a relationship. No pure decoration.\n- [ ] **Duration** — UI transitions: 150–300ms. Page transitions: 300–500ms. Longer feels sluggish.\n- [ ] **Easing** — Ease-out for entering elements, ease-in for exiting. Linear feels mechanical.\n- [ ] **Reduced motion** — Non-animated version for `prefers-reduced-motion` users.\n- [ ] **No infinite autoplay loops** — Distract and exhaust users. Pause after 3 loops or on hover.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nprefers-reduced-motion:\n  → Search for @media (prefers-reduced-motion: reduce) in all CSS\u002Fstyled-components\n  → If any animation or transition exists and no reduced-motion query found → 🔴 Critical\n  → Correct pattern:\n      @media (prefers-reduced-motion: reduce) {\n        *, *::before, *::after {\n          animation-duration: 0.01ms !important;\n          transition-duration: 0.01ms !important;\n        }\n      }\n\nanimation-duration values:\n  → Extract all transition: and animation: duration values\n  → > 500ms on a UI interaction (not page transition) → 🟡 Warning\n  → > 1000ms on anything except intentional loading → 🔴 Critical\n  → linear easing on transitions → 🟡 (cite the property and value)\n\nanimation-iteration-count:\n  → infinite on any element without a pause\u002Fhover mechanism → 🟡 Warning\n  → Cite element selector and property\n\nCSS transition on all properties:\n  → transition: all ... → 🟡 Warning (causes jank, prefer specific properties)\n  → transition: color 200ms ease-out → ✅\n```\n\n---\n\n### CATEGORY 9: Dark Mode (if applicable)\n\n- [ ] **Not just inverted** — Dark mode requires redesigned colors, not flipped ones.\n- [ ] **Background depth** — Lighter dark grays for elevated surfaces (cards, modals). Not pure black.\n- [ ] **Saturation** — Reduce vivid brand colors in dark mode — they look garish on dark.\n- [ ] **Shadow replacement** — Use lighter surface colors for elevation instead of shadows.\n- [ ] **Icon & image legibility** — Icons\u002Fimages still readable on dark backgrounds.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nDetect if dark mode is implemented:\n  → Search for @media (prefers-color-scheme: dark) in CSS\n  → Search for [data-theme=\"dark\"] or .dark selector patterns\n  → Search for dark: utility prefix (Tailwind dark mode)\n  → If any: audit dark mode implementation. If none: note as 🟢 Tip if product likely needs it.\n\nIf dark mode is found, check:\n\n  Color swap pattern:\n    → ✅ Good: CSS custom properties swapped in dark media query\n        :root { --bg: #ffffff; --text: #111111; }\n        @media (prefers-color-scheme: dark) { :root { --bg: #1a1a1a; --text: #f0f0f0; } }\n    → 🔴 Bad: Separate hardcoded hex values in dark selectors (token system is broken)\n        .dark .card { background: #1c1c1c; color: #ffffff; } ← hardcoded\n\n  Pure black backgrounds:\n    → background: #000000 or bg-black in dark mode → 🟡 Warning\n    → Prefer #0f0f0f–#1e1e1e range for depth\n\n  Contrast in dark mode:\n    → Run WCAG check on dark mode color pairs too (not just light mode)\n    → Dark mode often passes light mode checks but fails its own\n\n  Tailwind dark mode:\n    → Check if darkMode: 'class' or 'media' is configured\n    → Inconsistent dark: prefix usage across components → 🟡\n\n  color-scheme property:\n    → \u003Cmeta name=\"color-scheme\" content=\"dark light\"> or CSS `color-scheme: dark light`\n      absent when dark mode IS implemented → 🟢 Tip\n      (without this, browser chrome — scrollbars, form inputs — stays light even in dark mode)\n    → color-scheme: dark (only) when the product has a light mode toggle → 🟡 Warning\n      (locks browser chrome to dark regardless of user preference)\n```\n\n---\n\n### CATEGORY 10: Responsive & Adaptive\n\n- [ ] **Breakpoints** — Mobile (320–480px), tablet (768px), desktop (1024px+) considered.\n- [ ] **No overflow** — Long words or fixed-width containers don't break on small screens.\n- [ ] **Mobile touch targets** — Bigger targets and more spacing than desktop.\n- [ ] **Image scaling** — Images scale without awkward cropping or overflow.\n- [ ] **Type scaling** — Large desktop headings (48px) scaled down to 28–32px on mobile.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nBreakpoint coverage:\n  → Collect all @media queries in CSS\u002Fstyled-components\u002FTailwind\n  → If only one breakpoint found (or none) → 🟡 Warning\n  → If no mobile-first breakpoints (min-width) → 🟡 (desktop-first with max-width is harder to maintain)\n  → Tailwind: check for sm:, md:, lg:, xl: prefix usage — missing sm: on any layout element → 🟡\n  → Flag the specific elements that have no responsive variant\n\nFixed-width traps:\n  → width: [value]px on containers (not icons or images) → 🟡 (use max-width or %)\n  → Fixed pixel widths > 480px with no responsive override → 🔴 (will overflow on mobile)\n  → min-width values that exceed mobile viewport (320px) → 🟡\n\nOverflow risks:\n  → overflow: hidden on a container without a max-width → 🟡 (clips content on small screens)\n  → Long unbreakable strings: no word-break or overflow-wrap rule on text containers → 🟡\n  → white-space: nowrap on text that could be long → 🟡\n\nImage responsiveness:\n  → \u003Cimg> without max-width: 100% or w-full → 🟡 (overflows container on small screens)\n  → \u003Cimg> with fixed width\u002Fheight attributes and no CSS override → 🟡\n  → Missing srcset or sizes attributes on large hero images → 🟢 Tip (performance)\n  → object-fit missing on images inside fixed-height containers → 🟡\n\nViewport meta tag (HTML only):\n  → Missing \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> → 🔴 Critical\n    (without this, mobile browsers render at desktop width)\n\nFont size on mobile:\n  → body font-size \u003C 16px with no responsive override → 🟡\n    (iOS Safari auto-zooms on inputs with font-size \u003C 16px)\n  → Input font-size \u003C 16px → 🟡 (triggers zoom on focus on iOS)\n\nTailwind responsive audit:\n  → Elements using fixed Tailwind width classes (w-96, w-80) without sm:\u002Fmd: override → 🟡\n  → Text size classes without responsive scaling (text-5xl with no sm:text-3xl) → 🟡\n  → hidden \u002F flex \u002F block classes without responsive context → note if suspicious\n\nViewport units:\n  → height: 100vh on mobile without dvh fallback → 🟡\n    (100vh includes browser chrome on mobile, causing content to be hidden)\n  → Correct: height: 100dvh (dynamic viewport height) or min-height: 100svh\n```\n\n---\n\n### CATEGORY 11: Loading, Empty & Error States\n*The forgotten 30% — most beginner UIs only design the \"happy path.\" Read `references\u002Fstates.md` for full guidance.*\n\n- [ ] **Loading state** — Every data fetch needs a loading indicator. Skeleton screens preferred over spinners for content-heavy layouts. Never show a blank screen.\n- [ ] **Empty state** — What does an empty list, inbox, or dashboard look like? Should include an illustration or icon, a friendly explanation, and a clear next action (\"Create your first task →\").\n- [ ] **Error state** — Network failures, server errors, and not-found pages need their own designed state. Not just a console error or blank screen.\n- [ ] **Partial failure** — What if only some data loads? Design for partial states, not just all-or-nothing.\n- [ ] **Success state** — After a form submission or action, confirm it worked. A toast, a green banner, or a state change — something must close the loop.\n- [ ] **Disabled state** — Disabled buttons and inputs should look visually distinct (reduced opacity, no pointer cursor) and ideally explain why they're disabled.\n- [ ] **Consistency** — Loading\u002Fempty\u002Ferror states should match the overall visual style — not be plain browser defaults or unstyled fallbacks.\n\n**→ Widget trigger:** If any missing state is found, always render the **States Coverage Map** widget — even for a single missing state. Pre-populate the grid with the components identified in the audit and mark states as present, missing, or N\u002FA based on what was observed. Mark cells as N\u002FA only when a state genuinely cannot apply to that component (e.g. \"Empty\" on a Button). Introduce with one sentence in the user's detected language:\n- English: *\"Here's the full picture of which states are designed and which are missing.\"*\n- Korean: *\"어떤 상태가 디자인되어 있고 어떤 상태가 빠져 있는지 전체 현황을 확인해 보세요.\"*\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nLoading state detection:\n  → Search for conditional renders based on loading\u002FisLoading\u002FisPending\u002FisFetching flags\n  → Component fetches data (useEffect + fetch \u002F useQuery \u002F useSWR) with no loading branch → 🔴 Critical\n  → Loading branch renders null or nothing → 🔴 Critical\n  → Loading branch renders a spinner → ✅ (tip: skeleton preferred for content-heavy layouts)\n  → aria-live=\"polite\" or aria-busy=\"true\" absent on dynamically updated regions → 🟡 Warning\n    (screen readers won't announce content updates without aria-live)\n  → Correct: \u003Cdiv aria-live=\"polite\" aria-busy={isLoading}> ... \u003C\u002Fdiv>\n\nEmpty state detection:\n  → Conditional render for empty array\u002Fnull data that renders null or nothing → 🔴 Critical\n    \"No empty state — users see a blank screen when data is empty\"\n  → Empty state renders only a text string with no action → 🟡 Warning\n    \"Empty state has no next action — add a CTA or guidance\"\n  → Well-formed empty state: icon\u002Fillustration + explanation + CTA → ✅\n\nError state detection:\n  → try\u002Fcatch or .catch() \u002F isError flag with no error UI branch → 🔴 Critical\n  → Error state renders raw error.message string → 🟡 Warning\n    (technical error messages are not user-friendly — use a human message)\n  → Error state has no retry action → 🟡 Warning\n  → Well-formed error state: friendly message + retry or back action → ✅\n\nDisabled state detection:\n  → \u003Cbutton disabled> with no visual distinction beyond default browser style → 🟡\n  → Disabled button with no tooltip or explanation of why → 🟢 Tip\n  → cursor: not-allowed absent on disabled elements → 🟢 Tip\n\nSuccess state detection:\n  → Form submit handler with no success feedback (no toast, no banner, no state change) → 🟡\n  → Success message auto-dismisses before user can read it (timeout \u003C 3000ms) → 🟡\n\nKorean report labels for this category:\n  → 로딩 상태 누락 \u002F 빈 상태 누락 \u002F 오류 상태 누락 \u002F 비활성화 상태 스타일 없음 \u002F 성공 피드백 없음\n\nPeak-End Rule:\n  Users judge entire flows by two moments: the emotional peak and the final screen.\n  This makes success\u002Fcompletion states disproportionately important — they are the \"end.\"\n\n  → Check all success\u002Fcompletion screens (form submitted, purchase complete, onboarding done,\n    file uploaded, account created):\n    → Success screen displays only a generic \"Done\" or \"Success\" with no detail → 🟡 Warning\n      \"The last screen of a flow shapes the user's memory of the whole experience.\n       Add: what was completed, what happens next, and a positive reinforcement signal.\"\n    → Success screen auto-redirects in \u003C 2000ms before user can read it → 🟡 Warning\n    → Success screen has no positive visual signal (color, icon, illustration, animation) → 🟡\n    → Well-formed success screen: names the completed action + next step + positive visual → ✅\n\n  → Check the \"peak\" moment — the primary CTA interaction (submit, purchase, confirm):\n    → Button shows no pressed\u002Factive state during interaction → 🟡 (no tactile feedback)\n    → No loading state between tap and result → 🟡 (also caught by Cat 11 loading check)\n\n  Korean: 피크-엔드 법칙 — 완료 화면 미흡 \u002F 성공 화면 즉시 리다이렉트 \u002F 시각적 강화 요소 없음\n\nGoal Gradient Theory:\n  People increase effort and motivation as they get closer to completing a goal.\n  Progress indicators that don't communicate proximity to completion miss this effect.\n\n  → Scan for multi-step flows (checkout, onboarding, forms, wizards):\n    → 3+ step flow with no visible step counter or progress bar → 🟡 Warning\n      \"No progress signal — users don't know how close they are to done, reducing completion rates.\"\n    → Progress bar present but always shows the same fill regardless of step → 🔴 Critical\n      (static progress bar is misleading — users expect it to advance)\n    → Step counter says \"Step 3\" without a total (e.g. \"of 5\") → 🟡 Warning\n      \"Without knowing the total, users can't judge proximity to completion.\"\n    → Step counter shows \"Step 3 of 4\" — total visible → ✅\n    → Progress bar fill increases proportionally per step → ✅\n    → Final step visually signals it's the last step (e.g. \"Last step\", filled bar, changed CTA label) → ✅ strong signal\n\n  → Code checks:\n    → Stepper component without aria-valuenow \u002F aria-valuemax → 🟡 (also Cat 6)\n    → Progress bar with static width value (width: 50% hardcoded, not dynamic) → 🔴\n    → Step counter rendered as plain text with no semantic role (role=\"status\" or aria-live) → 🟡\n\n  Korean: 목표 경사 이론 — 진행 표시 없음 \u002F 정적 진행 바 \u002F 전체 단계 수 미표시\n```\n\n---\n\n### CATEGORY 12: Content & Microcopy\n*The words inside a UI are part of the design. Read `references\u002Fmicrocopy.md` for full guidance.*\n\n**On Figma\u002Fcode input: read every text node.** `get_design_context` returns all text content. Extract and check each one — do not guess. Group them by role:\n\n```\nText content extraction (Figma + code):\n  1. Collect all text node values from get_design_context\n  2. Classify each by role:\n     - CTA buttons: text nodes inside button components\n     - Labels: text nodes associated with inputs (above\u002Fbeside)\n     - Placeholders: text nodes with placeholder-style content (\"Search\", \"Enter...\", \"eg:\")\n     - Error messages: text nodes near error states or with error styling\n     - Empty state messages: text nodes in empty\u002Fzero-state frames\n     - Section headers \u002F titles: largest text nodes in a section\n  3. Apply checks per role (see below)\n  4. Cite the exact text content and node ID in each issue\n     e.g. 🟡 \"Placeholder 'eg: 5' (node 68:27994) — informal prefix. Use '0' or unit hint.\"\n```\n\nPer-role checks:\n- [ ] **Button labels are verbs** — \"Save Changes\", \"Send Message\" not \"OK\", \"Submit\", \"Yes\"\n- [ ] **Error messages are human** — \"Invalid input\" → 🔴. \"Please enter a valid email\" → ✅\n- [ ] **Placeholder ≠ label** — Placeholders hint at format (e.g. \"name@example.com\"), never replace a label. Flag any placeholder that duplicates its label exactly.\n- [ ] **Placeholder prefix style** — \"eg:\", \"e.g.\" → 🟡 informal. Use the example value directly or a unit label.\n- [ ] **Destructive actions are explicit** — \"Delete\" dialogs should name what's being deleted. \"Are you sure?\" alone → 🟡\n- [ ] **Consistent terminology** — Flag if the same concept uses different words across text nodes (e.g. \"workspace\" and \"project\" used interchangeably)\n- [ ] **Tone consistency** — Formal in one section, casual in another → 🟡\n- [ ] **No lorem ipsum** — Any \"lorem ipsum\" or \"placeholder text\" string → 🔴 Critical at Dev handoff or later\n- [ ] **Empty states have direction** — \"No results found\" alone → 🟡. Should include a next action.\n- [ ] **Required field legend** — If * is used for required fields, check for a \"* Required fields\" legend somewhere in the frame. Missing → 🟢 Tip.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nButton label audit:\n  → Collect all \u003Cbutton>, \u003Ca role=\"button\">, and submit-type elements and extract their text content\n  → Labels that are not verbs or verb phrases → 🟡 Warning\n    ❌ \"OK\", \"Yes\", \"Submit\", \"Click here\", \"More\"\n    ✅ \"Save changes\", \"Send message\", \"Get started\", \"Delete account\"\n  → Icon-only buttons with no aria-label → 🔴 Critical (also caught by Cat 6, flag once)\n  → Button text identical to page heading (no specificity) → 🟡\n    e.g. two \"Submit\" buttons on the same page with no differentiating context\n\nError message audit:\n  → Scan all string literals used in error\u002Fvalidation contexts (near catch blocks, validation fns, error state renders)\n  → Strings that are purely technical → 🟡 Warning\n    ❌ \"Invalid input\", \"Error 422\", \"Request failed\", \"null\", \"undefined\"\n    ✅ \"Please enter a valid email address\", \"Something went wrong — try again\"\n  → Error strings with no guidance on how to fix → 🟡\n  → aria-describedby linked error messages (cross-check with Cat 7) → ✅\n\nPlaceholder audit:\n  → Collect all placeholder=\"...\" attribute values\n  → Placeholder that exactly duplicates its label text → 🟡\n    e.g. label=\"Email\" + placeholder=\"Email\" — redundant, adds no value\n  → Placeholder starting with \"eg:\", \"e.g.\", \"ex:\" → 🟡 informal prefix\n    Prefer: use the example directly — placeholder=\"name@example.com\"\n  → Placeholder used as sole label (no visible \u003Clabel>) → 🔴 (also Cat 7)\n\nLorem ipsum \u002F filler content:\n  → Any string containing \"lorem ipsum\", \"placeholder text\", \"TBD\", \"TODO\", \"FIXME\" in UI-facing strings → 🔴 Critical at Dev handoff stage\n  → Flag line number and surrounding component\n\nTerminology consistency:\n  → Collect all nouns used for the same concept across the file\n  → If 2+ different terms are used for the same entity → 🟡 Warning\n    e.g. \"workspace\" in one component, \"project\" in another, \"team\" in a third — all meaning the same thing\n\nDestructive action copy:\n  → Alert\u002Fconfirm dialogs or delete modal text that reads only \"Are you sure?\" → 🟡\n    Must name the specific thing being deleted: \"Delete 'Project Alpha'? This cannot be undone.\"\n\nKorean report labels for this category:\n  → 버튼 라벨 동사 누락 \u002F 오류 메시지 비인간적 \u002F 플레이스홀더 = 라벨 중복 \u002F\n     비공식 플레이스홀더 접두사 \u002F 로렘 입숨 발견 \u002F 용어 불일치 \u002F 파괴적 동작 문구 부재\n``` (if applicable)\n*Only audit this category if the product targets multiple languages or RTL locales (Arabic, Hebrew, Persian, Urdu). Read `references\u002Fi18n.md` for full guidance.*\n\n- [ ] **No hardcoded strings** — All visible text should come from a translation file, not be baked into the component. Check for any hardcoded labels, tooltips, or error messages.\n- [ ] **Text expansion budget** — German and Finnish can be 30–40% longer than English. Buttons, labels, and nav items must accommodate longer text without breaking layout. Test with a long string.\n- [ ] **RTL layout mirroring** — In RTL languages, the entire layout flips: left becomes right. Navigation, icons, progress indicators, and reading direction all reverse. Use `dir=\"rtl\"` and CSS logical properties (`margin-inline-start` instead of `margin-left`).\n- [ ] **RTL-safe icons** — Directional icons (arrows, chevrons, back buttons) must flip in RTL. Non-directional icons (heart, star, trash) stay the same.\n- [ ] **Date, time & number formats** — These vary by locale. Don't hardcode formats like \"MM\u002FDD\u002FYYYY\" — use locale-aware formatting (e.g., `Intl.DateTimeFormat`).\n- [ ] **Currency & units** — Symbol position and decimal separators differ by locale (€1,234.56 vs 1.234,56 €). Never assume.\n- [ ] **No text in images** — Images with embedded text can't be translated. Use CSS overlays or separate text layers instead.\n- [ ] **Font support** — Does the chosen font support all target scripts? Latin fonts won't render Arabic or CJK characters — a system fallback font will kick in and look inconsistent.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nHardcoded string detection:\n  → Scan all JSX\u002Ftemplate content for bare string literals inside UI elements\n  → \u003Cbutton>Submit\u003C\u002Fbutton> when no i18n wrapper → 🟡 if i18n is likely needed\n  → \u003Cp>No results found\u003C\u002Fp> hardcoded → 🟡\n  → Compare against: t('key'), i18n.t('key'), $t('key'), \u003CFormattedMessage id=\"...\"\u002F> — these are ✅\n  → Only flag as 🔴 if evidence of multi-language intent exists (e.g. i18n library imported but some strings not wrapped)\n\nRTL CSS properties:\n  → margin-left \u002F margin-right \u002F padding-left \u002F padding-right \u002F text-align: left → 🟡 if RTL needed\n  → margin-inline-start \u002F padding-inline-end \u002F text-align: start → ✅ logical properties\n  → position: absolute with left: \u002F right: without RTL override → 🟡\n\nIntl API usage:\n  → Hardcoded date formats like \"MM\u002FDD\u002FYYYY\" or toLocaleDateString() without locale → 🟡\n  → new Intl.DateTimeFormat(locale, options) → ✅\n  → Hardcoded currency symbols ($, €) outside of a locale formatter → 🟡\n\ndir attribute:\n  → Check for dir=\"rtl\" implementation pattern on root or document\n  → CSS [dir=\"rtl\"] selectors for flip overrides → ✅\n\nOnly run this category if:\n  - An i18n library is imported (react-i18next, vue-i18n, next-intl, etc.), OR\n  - The user explicitly asks for i18n review, OR\n  - The file contains non-English strings\n  Otherwise: skip silently.\n```\n\n---\n\n\n### CATEGORY 14: Elevation & Shadows\n*Full rules → `references\u002Felevation.md`*\n\n- [ ] **Shadow scale** — Shadows should come from a defined scale (e.g. sm, md, lg, xl) — not arbitrary values. Each level should be used consistently for the same type of element.\n- [ ] **Shadow = elevation** — Shadows communicate how high above the page an element floats. Cards sit low (subtle shadow), modals sit high (strong shadow), tooltips highest. Check the hierarchy makes sense.\n- [ ] **Shadow color** — Shadows should use a dark, slightly saturated color (e.g. `rgba(0,0,0,0.08)`) — never pure black. On colored backgrounds, tint the shadow with the surface color.\n- [ ] **No shadows in dark mode** — Shadows are invisible on dark backgrounds. Use lighter surface colors for elevation instead (e.g. a card is slightly lighter gray than the page background).\n- [ ] **No decorative shadows** — Shadows should only appear on elevated elements. Don't use shadows purely for decoration or emphasis on flat elements.\n- [ ] **Consistent blur & offset** — A consistent offset-to-blur ratio (e.g. offset-y = 1\u002F3 of blur) makes shadows feel physically grounded. Mismatched values look amateur.\n- [ ] **Multiple light sources** — Don't combine a top-shadow and a bottom-shadow on the same element unless intentional. Pick one light source direction and stick to it.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nbox-shadow value audit:\n  → Collect all box-shadow declarations across CSS\u002Fstyled-components\u002FTailwind\n  → Arbitrary shadow values not matching a defined scale → 🟡 Warning\n    ❌ box-shadow: 0 3px 7px rgba(0,0,0,0.11) — arbitrary, not from a scale\n    ✅ box-shadow: var(--shadow-md) or Tailwind shadow-md\n  → More than 3 distinct box-shadow values used for the same element type (e.g. cards) → 🟡\n    \"Cards use 4 different shadow values — establish a shadow scale\"\n\nShadow color audit:\n  → box-shadow using pure black rgba(0,0,0,1) or #000000 → 🟡 Warning\n    \"Pure black shadows look heavy — use rgba(0,0,0,0.08–0.20) for natural depth\"\n  → box-shadow using an opaque color (no alpha channel) → 🟡\n  → On colored surfaces: shadow color should be tinted with the surface color, not neutral black → 🟢 Tip\n\nElevation hierarchy check:\n  → Collect elements by type: cards, modals, dropdowns, tooltips, sticky headers\n  → Compare their shadow values — higher elements must have stronger shadows\n  → Modal shadow ≤ card shadow → 🟡 Warning (elevation hierarchy inverted)\n  → Tooltip shadow ≤ modal shadow → 🟡\n\nMultiple shadows on same element:\n  → Element with both a top and bottom box-shadow without clear design intent → 🟡\n  → More than 2 box-shadow layers on a single element → 🟡\n\nDark mode shadow check:\n  → box-shadow retained in dark mode without override → 🟡 Warning\n    \"Shadows are invisible on dark backgrounds — use a lighter surface color for elevation instead\"\n  → Correct pattern: @media (prefers-color-scheme: dark) { box-shadow: none; background: [elevated-surface-color]; }\n  → Tailwind: dark:shadow-none present → ✅\n\nBlur-to-offset ratio:\n  → Extract offset-y and blur-radius from each box-shadow\n  → offset-y > blur-radius (e.g. 0 8px 4px) → 🟢 Tip (offset larger than blur looks unnatural)\n  → Recommended ratio: blur = 2–3× offset-y\n\nKorean report labels for this category:\n  → 그림자 스케일 미준수 \u002F 순수 검정 그림자 사용 \u002F 높낮이 계층 역전 \u002F\n     다크 모드에서 그림자 미제거 \u002F 블러-오프셋 비율 부적절\n```\n\n---\n\n### CATEGORY 15: Iconography\n*Full rules → `references\u002Ficonography.md`*\n\n- [ ] **Consistent icon family** — All icons from the same set (e.g. all Phosphor, all Lucide, all Material). Never mix outline icons from one library with filled icons from another.\n- [ ] **Consistent style within family** — Stick to one style: all outline, all filled, or all duotone. Mixing styles inside one library looks inconsistent.\n- [ ] **Optical sizing** — Icons should be sized at standard grid-friendly values: 16, 20, 24, 32, 40, 48px. Avoid 18px, 22px, 26px — they fall between optical grid lines.\n- [ ] **Stroke weight consistency** — Outline icons have a stroke weight. Don't use 1px icons next to 2px icons — they feel mismatched even when both are \"outline.\"\n- [ ] **Touch target padding** — Icons used as interactive buttons need padding to reach 44×44px minimum. A 24px icon needs 10px padding on each side.\n- [ ] **Icon meaning consistency** — The same icon should mean the same thing everywhere. Don't use a star for both \"favourite\" and \"rating\" in the same product.\n- [ ] **Label pairing** — Icons without labels are ambiguous for non-expert users. Always pair with a visible label or tooltip. Exception: universally understood icons (✕ close, ☰ menu, ⌕ search).\n- [ ] **Optical alignment** — Icons often have invisible padding baked in. When aligning icons with text, align to optical center, not bounding box edge.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nIcon sizing audit:\n  → Collect all \u003Csvg>, \u003Cimg>, and icon component width\u002Fheight values\n  → Flag sizes not on optical grid: 16, 20, 24, 32, 40, 48px → 🟢 Tip\n    \"Icon sized at 18px — optical grid values are 16px or 20px\"\n  → Inconsistent sizes across icons of the same visual role → 🟡 Warning\n    \"Nav icons are 20px and 24px — pick one\"\n\nSVG icon accessibility:\n  → \u003Csvg> inside a \u003Cbutton> or \u003Ca> without aria-hidden=\"true\" on the SVG → 🔴 Critical\n    (the SVG will be announced by screen readers — use aria-hidden on the SVG,\n     and aria-label on the parent button instead)\n  → Icon-only \u003Cbutton> with no aria-label and a hidden SVG → 🔴 Critical\n    (both the SVG is hidden AND there's no label — completely inaccessible)\n  → \u003Cimg> used as icon without alt=\"\" (decorative) or alt=\"[description]\" (meaningful) → 🔴\n  → Icon font (class=\"fa-...\", class=\"material-icons\") with no aria-hidden and no label → 🔴\n\nStroke weight:\n  → Multiple stroke-width values on \u003Cpath> \u002F \u003Cline> elements across icon SVGs → 🟡 Warning\n    \"Icons use strokeWidth 1 and 2 — inconsistent weight\"\n  → Only flag if 2+ different SVG elements are present in the same file\n\nTouch target:\n  → \u003Cbutton> or \u003Ca> containing only an icon with width or height \u003C 44px and\n    no padding to compensate → 🔴 Critical\n    \"Icon button is 24×24px with no padding — minimum tappable size is 44×44px\"\n```\n\n---\n\n### CATEGORY 16: Navigation Patterns\n*Full rules → `references\u002Fnavigation.md`*\n\n- [ ] **Clear current location** — Users should always know where they are. Active nav items must be visually distinct (color, weight, indicator bar) — not just slightly different.\n- [ ] **Tabs vs nav** — Tabs switch between views of the same content. Nav moves between different sections. Don't use tabs for top-level navigation or nav for in-page switching.\n- [ ] **Breadcrumbs for depth** — Any page more than 2 levels deep needs breadcrumbs. They should show the full path and every crumb should be clickable (except the current page).\n- [ ] **Back button behavior** — \"Back\" should always go to the previous screen, not the previous URL. In modals and flows, \"Back\" should not close the entire flow unexpectedly.\n- [ ] **Mobile navigation** — Bottom navigation bar for 3–5 primary destinations on mobile. Hamburger menu acceptable for secondary items but not primary navigation.\n- [ ] **Active state contrast** — Active\u002Fselected nav items must meet 3:1 contrast ratio against inactive items — not just a subtle color shift that's easy to miss.\n- [ ] **Overflow handling** — What happens when there are too many nav items? Tabs should scroll horizontally or collapse into a \"More\" dropdown. Never let them clip or wrap awkwardly.\n- [ ] **Navigation consistency** — The nav should look and behave identically on every page. Never change which items appear, their order, or their style between sections.\n\n**📋 Code input: direct checks available (run these automatically)**\n```\nSemantic nav element:\n  → Navigation container uses \u003Cnav> element → ✅\n  → Navigation built with \u003Cdiv> with no role=\"navigation\" → 🟡 Warning\n  → Multiple \u003Cnav> elements without aria-label to distinguish them → 🟡\n    Correct: \u003Cnav aria-label=\"Primary\"> and \u003Cnav aria-label=\"Footer\">\n\nActive state implementation:\n  → aria-current=\"page\" on the active nav item → ✅\n  → Active state relies only on a CSS class (.active) with no aria-current → 🟡\n    (class alone doesn't communicate current page to screen readers)\n  → Active state only changes color with no weight\u002Fbackground\u002Findicator → 🟡\n    (color alone fails colorblind users — needs a secondary signal)\n\nSkip navigation link:\n  → First focusable element is a skip link targeting #main-content → ✅\n  → No skip link found → 🟡 Warning\n  → Skip link exists but target ID (#main-content) missing from DOM → 🔴 Critical\n\nTab vs nav misuse:\n  → \u003Cnav> containing elements that switch views of the same page → 🟡\n    (should be role=\"tablist\" + role=\"tab\" children)\n  → role=\"tablist\" used for top-level navigation between pages → 🟡\n    (should be \u003Cnav> with \u003Ca> links)\n\nKeyboard navigability:\n  → Nav items are \u003Cdiv>\u002F\u003Cspan> with onClick but no role=\"button\" + tabindex=\"0\" → 🔴\n  → Nav items are \u003Ca> elements with valid href → ✅\n  → Dropdown menus with no keyboard handler (Escape to close, arrow keys) → 🟡\n\nBreadcrumb implementation:\n  → \u003Cnav aria-label=\"Breadcrumb\"> wrapping the crumb list → ✅\n  → Last breadcrumb item has aria-current=\"page\" → ✅\n  → Intermediate breadcrumb items are plain text, not links → 🟡\n  → No breadcrumb on routes 3+ levels deep → 🟡\n  → Breadcrumb list uses \u003Col> (ordered) not \u003Cul> → ✅ (order matters for breadcrumbs)\n```\n\n---\n\n### CATEGORY 17: Design Tokens & Variables Health (if applicable)\n*Audit this when reviewing Figma files or codebases with a design system. Read `references\u002Ftokens.md` for full guidance.*\n\n- [ ] **Colors are tokenized** — No hardcoded hex values in components. Colors should reference a token (e.g. `color.primary.500`, `--color-brand`), not `#7c3aed` directly.\n- [ ] **Spacing is tokenized** — Spacing values reference a scale token, not arbitrary pixel values.\n- [ ] **Typography is tokenized** — Font size, weight, and line-height come from defined text style tokens, not ad-hoc values per component.\n- [ ] **Radius is tokenized** — Corner radius values reference the radius scale, not hardcoded numbers.\n- [ ] **Shadow is tokenized** — Box shadows reference elevation tokens, not custom values per element.\n- [ ] **Token naming is semantic** — Tokens should describe *purpose*, not appearance. `color.background.danger` is good. `color.red.500` used directly in a component is not — it breaks when you need to change the danger color.\n- [ ] **No magic numbers** — Any value that appears more than twice should be a token. Repeated one-off values are a sign the token system isn't being used.\n- [ ] **Dark mode uses the same tokens** — Dark mode should swap token values, not introduce new hardcoded colors. If dark mode components have their own hex values, the token system is broken.\n\n**📋 Code input: direct token audit available (run automatically — most precise path)**\n```\nCSS custom property audit:\n  → Find all :root { --token: value } definitions — these are the token system\n  → Find all var(--token) usages in component CSS\n  → Find all hardcoded values (hex, rgb, px) NOT using var()\n\n  Compute per-category coverage:\n    color_coverage    = var(--color-*) usages \u002F total color declarations × 100\n    spacing_coverage  = var(--spacing-*) \u002F total padding\u002Fmargin\u002Fgap × 100\n    radius_coverage   = var(--radius-*) \u002F total border-radius × 100\n    shadow_coverage   = var(--shadow-*) \u002F total box-shadow × 100\n\n  Report as: \"Token coverage: colors 80% · spacing 60% · radius 40% · shadows 20%\"\n  Any category \u003C 50% → 🟡 Warning\n  Any category \u003C 20% → 🔴 Critical (token system not being used)\n\nJS\u002FTS theme object audit (styled-components \u002F emotion \u002F MUI):\n  → Detect theme.colors.*, theme.spacing(), theme.shadows[] usage\n  → Hardcoded values inside styled components: color: '#7c3aed' → 🟡\n  → theme.colors.primary → ✅\n\nTailwind token audit:\n  → Tailwind config colors\u002Fspacing\u002FborderRadius\u002FboxShadow → these are the tokens\n  → Arbitrary values like bg-[#7c3aed], p-[13px], rounded-[7px] → each is 🟡\n  → Standard scale values (bg-purple-600, p-3, rounded-lg) → ✅\n\nToken naming check:\n  → --color-red: #ff0000 (describes appearance) → 🟡 rename to --color-error or --color-danger\n  → --color-error: #ff0000 (describes purpose) → ✅\n  → Tokens with numeric suffixes only (--color-500) without semantic alias → 🟢 Tip\n```\n\n---\n\n### CATEGORY 18: Ethical Design & Dark Patterns\n*Full rules, all pattern definitions, detection signals, and the ethical persuasion reference → `references\u002Fethics.md`*\n\nThis category audits for manipulative or deceptive design patterns — not design mistakes, but intentional choices that may exploit users. Read `references\u002Fethics.md` before running this category.\n\n**When to run:** Always. Every design can be checked for ethical patterns regardless of input type or stage.\n\n**Ethics severity model** (different from standard audit severity):\n| Level | Label | Meaning | Score impact |\n|---|---|---|---|\n| 🔴 | Deceptive | Actively misleads or coerces. Violates user trust, often consumer law. | −15 pts |\n| 🟡 | Questionable | Exploitative depending on context. Warrants review. | −7 pts |\n| 🟢 | Noted | Persuasive element present. Ethical in standard use. | 0 pts |\n\n**Ethics Score** is separate from the Overall Score. Start at 100, apply ethics deductions only.\nDisplay as: **Ethics Score: X\u002F100** alongside Accessibility Score.\n\n**Detection confidence:** Always declare confidence per finding (High\u002FMedium\u002FLow) using the detection scope table in `references\u002Fethics.md`. Never flag low-confidence patterns without explicit caveat.\n\n**Checklist — run all groups:**\n\n*Group A: Deceptive Interface Patterns*\n- [ ] **Confirmshaming** — Decline\u002Fcancel copy does not shame or guilt the user for choosing it\n- [ ] **CTA hierarchy inversion** — Accept and decline actions have equivalent visual weight (especially on consent\u002Fcookie screens)\n- [ ] **Trick questions** — All consent copy uses positive, unambiguous language with no double negatives\n- [ ] **Disguised ads** — Sponsored\u002Fpromoted content is visually distinct from organic content with a clear, readable label\n- [ ] **Bait and switch** — CTA labels accurately describe the immediate next action\n- [ ] **Hidden costs** — All mandatory fees are shown from the first price display\n- [ ] **Visual misdirection** — Cost, commitment, and risk information meets the same visual standards as the CTA it accompanies\n- [ ] **Decoy pricing** — In multi-tier pricing layouts (3+ columns), no tier should be a deliberately inferior option designed only to make another tier look better. Signal: a middle or lower tier that is strictly dominated on every axis (price, features, limits) with no clear use case. Confidence: Medium — flag when detected with caveat. Korean: 디코이 가격 책정 — 의도적으로 열등한 옵션으로 중간 등급을 유도하는 패턴\n\n*Group B: Coercive Flows*\n- [ ] **Roach motel** — Cancellation\u002Fexit path is no harder than the sign-up\u002Fentry path\n- [ ] **Obstruction** — Unsubscribe, data deletion, and account closure are self-serve and reachable in ≤ 3 steps\n- [ ] **Forced action** — No non-essential data collection or permission is required to access core functionality\n- [ ] **Nagging** — Dismissed prompts stay dismissed; \"don't show again\" is permanently respected\n\n*Group C: Consent & Privacy*\n- [ ] **Privacy zuckering** — All non-essential data sharing defaults to OFF\n- [ ] **Pre-checked consent** — No marketing\u002Fdata-sharing checkbox is pre-checked by default\n- [ ] **Interface interference** — Privacy controls use consistent interaction patterns with clear state labels\n- [ ] **Drip pricing** — No fees are revealed only at the final checkout step\n\n*Group D: False Urgency & Scarcity*\n- [ ] **Countdown timers** — Any timer is backed by a real server-side expiry that does not reset\n- [ ] **False scarcity** — Scarcity claims (\"Only X left\") are backed by real-time inventory data\n- [ ] **False social proof** — Social proof numbers (\"X people viewing\") reflect real data, not hardcoded or random values\n- [ ] **Manipulative anchoring** — Crossed-out \"original\" prices, inflated RRP values, or \"was\u002Fnow\" displays must reflect a price the product was genuinely sold at. A strikethrough price that was never a real selling price is deceptive anchoring. Code signal: `text-decoration: line-through` or `.original-price` \u002F `.was-price` \u002F `.rrp` adjacent to a current price element. Confidence: Medium — flag for review. Korean: 조작적 앵커링 — 실제로 판매된 적 없는 취소선 가격 또는 부풀린 정가 표시\n\n*Group E: Emotional Manipulation*\n- [ ] **Guilt-based copy** — Inactivity, cancellation, and decline states are addressed neutrally, not shamefully\n- [ ] **Fear appeals** — Risk language is proportionate to actual risk; no exaggerated consequences for conversion\n- [ ] **Toying with emotion** — No patterns that deliberately engineer anxiety, FOMO, or regret as conversion mechanisms\n\n*Group F: Regulatory Compliance Baseline*\nThese checks apply across most jurisdictions (EU, US, UK, Canada, Brazil, Australia). They are UI-detectable signals — not a legal audit. Flag as 🚫 Blocker when a legal requirement is clearly absent; 🟡 Warning when the implementation is ambiguous or weak. Always append: *\"Verify with legal counsel for your specific jurisdiction and industry.\"*\nKorean caveat: *\"이 항목은 법률 감사가 아닌 UI 신호 감사입니다. 관할 지역 및 산업별 요건은 법률 전문가와 확인하세요.\"*\n\n- [ ] **Cookie & consent banner** — If cookies beyond strictly necessary are used, a consent banner must be present. Check for: banner presence; \"Reject All\" \u002F \"Decline\" option at equal visual prominence to \"Accept All\" (GDPR, PECR, CCPA requirement — CTA hierarchy inversion here is a 🚫 Blocker); granular consent categories (marketing, analytics, functional) rather than a single all-or-nothing toggle.\n  Code signal: absence of any consent-related class names (`cookie-banner`, `consent-`, `gdpr-`, `cmp-`) or `localStorage`\u002F`sessionStorage` consent keys → 🚫 if cookies are clearly being set.\n  Korean: 쿠키 동의 배너 — \"모두 거부\" 버튼이 \"모두 수락\"과 동등한 시각적 비중을 가져야 함\n\n- [ ] **Subscription & auto-renewal disclosure** — Before a subscription purchase is confirmed, the following must be visible: renewal frequency, renewal amount, and cancellation method. A \"free trial → paid\" conversion must disclose the date and amount of the first charge before the user commits.\n  Code signal: checkout\u002Fpayment form with no text matching renewal\u002Fbilling cycle patterns near the CTA → 🟡 Warning.\n  Korean: 구독 자동 갱신 고지 — 결제 확인 전 갱신 주기, 금액, 취소 방법이 명시되어야 함\n\n- [ ] **Privacy at point of collection** — Forms collecting sensitive personal data (email, phone, DOB, national ID, payment, health, location) must include a visible \"why we need this\" note or a privacy policy link directly at the collection point — not just in the footer.\n  Code signal: `\u003Cinput type=\"email\u002Ftel\u002Fdate\u002Fnumber\">` inside a form with no adjacent `\u003Ca href>` linking to a privacy policy and no inline explanation text → 🟡 Warning.\n  Korean: 수집 시점 개인정보 고지 — 민감 데이터 입력 필드 근처에 수집 목적 또는 개인정보처리방침 링크 필요\n\n- [ ] **Right of withdrawal \u002F cancellation policy** — E-commerce and subscription checkout flows must link to a cancellation or returns policy before the final purchase confirmation. A \"Buy Now\" or \"Confirm Order\" CTA with no visible policy link nearby is non-compliant in EU\u002FUK\u002Fmany US states.\n  Code signal: final checkout CTA (`type=\"submit\"`, \"pay now\", \"confirm order\" label patterns) with no adjacent link text matching \"cancel\", \"return\", \"refund\", \"withdrawal\" → 🟡 Warning.\n  Korean: 청약 철회 \u002F 취소 정책 — 최종 결제 확인 버튼 근처에 취소·환불 정책 링크 필요\n\n- [ ] **Age gate for restricted content** — Products that could be accessed by minors but involve age-restricted content (alcohol, gambling, adult content, financial products in some jurisdictions) must present an age verification mechanism before access. A DOB picker or age confirmation checkbox that can be trivially bypassed (no backend verification) is a weak gate — flag as 🟡.\n  Code signal: presence of age-gated content indicators in route names \u002F class names (`\u002Fadults-only`, `age-verify`, `18+`) without a corresponding gate component → 🔴 Critical.\n  Korean: 연령 제한 콘텐츠 연령 확인 — 연령 제한 콘텐츠 접근 전 연령 확인 절차 필요\n\n- [ ] **Accessibility legal baseline** — WCAG 2.1 AA is a legal requirement under: ADA \u002F Section 508 (US), European Accessibility Act (EU — mandatory from June 2025), PSBAR (UK public sector), DDA (Australia), AODA (Canada). Any WCAG AA failure is therefore potentially a legal liability, not just a UX issue. Cat 6 Blocker-tier issues in this audit carry legal weight — do not treat them as optional fixes.\n  Note: if the product is a public-sector website (EU\u002FUK) or a service covered by the EAA, all 🚫 Cat 6 Blockers are legal compliance failures.\n  Korean: 접근성 법적 기준 — WCAG 2.1 AA는 미국(ADA), EU(유럽 접근성법), 영국(PSBAR), 호주(DDA), 캐나다(AODA)에서 법적 의무 사항임\n\n**Before flagging any pattern:** Check the Ethical Persuasion reference in `references\u002Fethics.md`. Do not flag legitimate persuasion techniques (genuine social proof, real urgency, positive progress framing, transparent anchoring).\n\n---\n\n### CATEGORY 19: Nielsen's Usability Heuristics\n*Full rules, all heuristic definitions, detection signals, and the Usability Score → `references\u002Fheuristics.md`*\n\n**Scope:** Audits the 6 heuristics with genuine gaps not covered by existing categories. H4, H5, H8, H9 are already covered by Cat 5, 7, 4, 11\u002F12 respectively — note this in the report but do not re-audit them here.\n\n**When to run:**\n- Always on Full audits\n- Skip on Quick audits unless user specifically requests heuristic review\n- Triggers on: \"heuristic review\", \"Nielsen audit\", \"usability heuristics\", \"H1\u002FH2\u002FH6...\" etc.\n- Korean triggers: \"휴리스틱 검토\", \"닐슨 감사\", \"사용성 휴리스틱\", \"H1\u002FH2\u002FH6 확인\"\n\n**Usability Score** is separate from the Overall Score and the Accessibility Score. Start at 100, apply standard deduction tiers. Display as: **Usability Score: X\u002F100**\n\nScoring bands:\n- **90–100** → Heuristically sound \u002F 사용성 기준 충족\n- **70–89** → Minor usability gaps \u002F 사소한 사용성 문제\n- **50–69** → Significant usability issues \u002F 심각한 사용성 문제\n- **\u003C 50** → Fundamental failures \u002F 근본적인 사용성 실패\n\n**Checklist:**\n\n*H1 — Visibility of System Status (gaps only) \u002F 시스템 상태 가시성*\n- [ ] **Async button feedback \u002F 비동기 버튼 피드백** — Every button triggering an async action has a loading\u002Fdisabled state during processing\n- [ ] **Form submit confirmation \u002F 폼 제출 확인** — Every form submission confirms success with a toast or confirmation screen\n- [ ] **Multi-step progress \u002F 멀티스텝 진행 표시** — Flows with 3+ steps have a visible progress indicator *(detailed progress bar checks → Cat 11 Goal Gradient Theory)*\n\n*H2 — Match Between System and Real World \u002F 시스템과 현실 세계의 일치*\n- [ ] **No jargon in UI \u002F UI 내 전문 용어 없음** — No raw error codes, stack traces, or developer terms in user-facing copy\n- [ ] **Icon meaning \u002F 아이콘 의미** — Icons match their conventional real-world meaning in context\n- [ ] **Locale-aware formats \u002F 로케일 형식** — Dates and numbers use `Intl` formatting, not hardcoded patterns\n\n*H3 — User Control and Freedom (gaps only) \u002F 사용자 제어 및 자유*\n- [ ] **Modal exit \u002F 모달 종료** — All modals have a visible close mechanism and respond to Escape key\n- [ ] **Flow back navigation \u002F 플로우 뒤로 가기** — Multi-step flows have a Back option on every step except the first\n- [ ] **Destructive confirmation \u002F 파괴적 작업 확인** — Permanent destructive actions have confirmation dialogs naming what's being deleted\n\n*H6 — Recognition Rather Than Recall \u002F 기억보다 인식*\n- [ ] **Nav labels \u002F 내비게이션 라벨** — Primary navigation items have visible text labels alongside icons\n- [ ] **Persistent labels \u002F 지속적인 라벨** — Form labels remain visible during and after input\n- [ ] **Selection visibility \u002F 선택 가시성** — Dropdown triggers show the currently selected value; selected options are visually distinct\n\n*H7 — Flexibility and Efficiency of Use \u002F 사용의 유연성 및 효율성*\n- [ ] **Keyboard shortcuts \u002F 키보드 단축키** — Power user shortcuts are hinted in tooltips on frequently-used actions (productivity tools)\n- [ ] **Bulk actions \u002F 일괄 작업** — Management-oriented lists support bulk selection where clearly warranted\n- [ ] **Preference persistence \u002F 환경설정 저장** — User preferences are saved across sessions where relevant\n\n*H10 — Help and Documentation \u002F 도움말 및 문서*\n- [ ] **Helper text \u002F 도움말 텍스트** — Fields with format requirements show guidance before the user submits\n- [ ] **Actionable errors \u002F 실행 가능한 오류 메시지** — Every error message states what went wrong AND how to fix it\n- [ ] **Contextual help \u002F 상황별 도움말** — Complex or technical fields have tooltips\n- [ ] **Onboarding \u002F 온보딩** — Empty states and first-use screens give clear next-step guidance\n\n**Note in report:**\n- English: \"H4 (Consistency), H5 (Error Prevention), H8 (Aesthetics), H9 (Error Recovery) are covered by Cat 5, 7, 4, and 11\u002F12 respectively — see those categories for full results.\"\n- Korean: \"H4(일관성), H5(오류 예방), H8(미적 디자인), H9(오류 복구)는 각각 Cat 5, 7, 4, 11\u002F12에서 다룹니다.\"\n\n---\n## Step 3: Score & Report\n\n### Scoring Formula\n\nStart at **100 points**. Deduct for every issue found:\n\n| Severity | Deduction | When to use |\n|---|---|---|\n| 🚫 **Blocker** | **−12 points** | Violates a legal or compliance standard — WCAG AA, GDPR, PECR, consumer protection law. Cannot ship as-is. |\n| 🔴 **Critical** | **−8 points** | Breaks usability or accessibility for a significant user population. Must fix before shipping. |\n| 🟡 **Warning** | **−4 points** | Degrades experience. Should fix. |\n| 🟢 **Tip** | **−1 point** | Polish-level improvement. Nice to have. |\n\n**Floor is 0** — score never goes negative.\n\n**Blocker vs Critical — the distinction:**\nBlockers are not \"worse Criticals\" — they are a different class of issue. A Blocker violates an external legal or compliance standard that exists independently of design opinion. A Critical breaks usability badly but is a design quality failure, not a legal one.\n\n```\nBlocker examples (legal\u002Fcompliance basis):\n  🚫 Text contrast below WCAG AA 4.5:1 (Cat 2) — WCAG 2.1 SC 1.4.3\n  🚫 Interactive element with no accessible name (Cat 6) — WCAG 2.4.6\n  🚫 Keyboard-inaccessible interactive element (Cat 6) — WCAG 2.1.1\n  🚫 Meaningful image missing alt text (Cat 6) — WCAG 1.1.1\n  🚫 prefers-reduced-motion absent when animations exist (Cat 8) — WCAG 2.3.3\n  🚫 Pre-checked marketing consent checkbox (Cat 18) — GDPR\u002FPECR\n  🚫 Non-essential cookies defaulting to ON (Cat 18) — GDPR\u002FePrivacy\n  🚫 Skip link missing or broken (Cat 16) — WCAG 2.4.1\n  🚫 Form input with no label (Cat 7) — WCAG 1.3.1\n\nCritical examples (usability basis, not legal):\n  🔴 Missing touch target size (Cat 6) — best practice, not strict law\n  🔴 Missing error\u002Fempty\u002Floading states (Cat 11)\n  🔴 CTA hierarchy inversion on non-consent screens (Cat 18)\n  🔴 Off-brand or broken dark mode (Cat 9)\n```\n\n**When in doubt between Blocker and Critical:** If you can cite a specific WCAG success criterion number, GDPR article, or consumer law provision — it's a Blocker. If it's a usability or design quality judgment — it's a Critical.\n\n### Issue Deduplication — Required\n\nWhen the same problem appears across multiple nodes, **never list it multiple times**. Deduplicate into a single issue entry with an exact count and node ID list.\n\n```\nRule: If the same root cause affects N nodes → one issue entry, not N entries.\n\nFormat:\n  🔴 [Issue name] — affects N nodes\n  Nodes: [id1], [id2], [id3] (+ N more if >5 — list first 5 only)\n  Fix: [single fix that resolves all instances]\n\nExamples:\n  ✅ Good: \"Off-grid column width (60.17px) — 3 nodes: 456:49851, 456:49873, 456:49895\"\n  ❌ Bad:  \"Column 5 off-grid\" + \"Column 10 off-grid\" + \"Column 11 off-grid\" (3 separate entries)\n\n  ✅ Good: \"Input field missing Error state — 10 nodes: 68:27912, 68:27927, 68:27943 (+7 more)\"\n  ❌ Bad:  Listing each input as a separate critical issue\n\nDeduplication also applies to scoring:\n  A repeated issue (same root cause, N nodes) counts as ONE issue for deduction purposes.\n  Exception: if fixing each instance requires a separate action (different values, different\n  components), count each as separate — but still group them visually in the report.\n```\n\nThis keeps reports scannable. A report with 3 grouped issues is more actionable than one with 15 separate entries that all say the same thing.\n\n### Accessibility Score\nIn addition to the overall score, always surface a separate **Accessibility Score** combining Categories 2, 6, 7, 15, and 16:\n\n- Start at 100, apply the same 4-tier deduction formula to issues in those 5 categories only\n- Cat 15 is included because it now contains WCAG Blocker-level SVG accessibility checks (aria-hidden, role=\"img\", icon-button labels) that are legal violations, not just design opinions\n- 🚫 Blocker issues in these categories use −12 (legal violations — WCAG AA)\n- Display as: **Accessibility Score: X\u002F100**\n- If any 🚫 Blocker issues exist: append *\"⚠️ Contains legal compliance failures\"*\n\nScoring bands:\n- **90–100** → WCAG AA compliant — production-ready\n- **70–89** → Minor gaps, no Blockers\n- **50–69** → Significant gaps — likely has Blockers\n- **\u003C 50** → Failing — legal risk, do not ship\n\n**Always show the maths:**\n> Score: 100 − (1 × 🚫 12) − (2 × 🔴 8) − (3 × 🟡 4) − (1 × 🟢 1) = **59\u002F100** ⚠️ Contains legal compliance failures\n\n**Korean label:** 접근성 점수 *(Cat 2, 6, 7, 15, 16)*\n\n---\n\n### Strict Output Template\n\n> ⚠️ **MANDATORY — ALL AGENTS — NO EXCEPTIONS**\n> This template is not optional. Every audit report must use this exact structure regardless\n> of input type (Figma, code, screenshot, live URL, wireframe). Do not substitute a free-form\n> critique, UX review, or bullet-point list. The scored report IS the output.\n\nEvery audit report must use this exact structure — sections marked *(always)* appear on every audit. Sections marked *(conditional)* appear only when applicable.\n\n---\n\n#### REPORT HEADER *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔍  DESIGN AUDIT REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Field        | Value                                    |\n|--------------|------------------------------------------|\n| Input        | [component\u002Fpage name]                    |\n| Type         | [Figma MCP \u002F HTML \u002F React \u002F Screenshot]  |\n| Framework    | [detected framework] *(code only)*       |\n| Confidence   | [🟢 High \u002F 🟡 Medium \u002F 🔴 Low]           |\n| Scope        | [frame name + page \u002F filename]           |\n| Date         | [date]                                   |\n\n*(Figma only)*\n| Component Health | [N]% coverage · [N] detached · [N] unnamed |\n| Auto Layout      | [N]% frames using Auto Layout · [N] manual-position frames |\n| Code Connect     | [N] mapped · [N] unmapped *(if available)* |\n\n*(Code only)*\n| Design System  | [MUI \u002F Chakra \u002F shadcn\u002Fui \u002F Ant Design \u002F Radix \u002F None detected] |\n| Token Coverage | colors [N]% · spacing [N]% · radius [N]% |\n```\n\n> ⚠️ **Medium confidence audit** — input was a screenshot. Values are estimated.\n> For an exact audit, share the Figma file or code.\n> *(Only show this block when confidence is Medium)*\n\n---\n\n#### SCORES *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📊  SCORES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nOverall       [██████████░░░░░░░░░░]  [X]\u002F100\nAccessibility [████████░░░░░░░░░░░░]  [X]\u002F100  *(Cat 2, 6, 7, 15, 16)*\nEthics        [███████████████░░░░░]  [X]\u002F100  *(Cat 18)*\nUsability     [████████████░░░░░░░░]  [X]\u002F100  *(Cat 19 — H1\u002FH2\u002FH3\u002FH6\u002FH7\u002FH10)*\n              ↳ H4 Consistency → Cat 5 · H5 Error Prevention → Cat 7 · H8 Aesthetics → Cat 4 · H9 Recovery → Cat 11\u002F12\n\nScore formula: 100 − ([N] × 🚫 12) − ([N] × 🔴 8) − ([N] × 🟡 4) − ([N] × 🟢 1) = [X]\u002F100\n⚠️ Ethics Score uses its own formula: 🔴 −15 (Deceptive) · 🟡 −7 (Questionable) · 🟢 0 (Noted) — do not apply the standard formula to Ethics.\n\n[One sentence — what dragged the score down most.]\n```\n\n**Progress bar generation rule:**\n- Bar is 20 characters wide. Fill = round(score \u002F 5) filled blocks.\n- Use `█` for filled, `░` for empty.\n- Example: 68\u002F100 → 14 filled → `██████████████░░░░░░`\n- Omit Ethics and Usability bars if those categories were not audited.\n- Append `⚠️ Legal compliance failures` after Accessibility score if any 🚫 Blockers present.\n\n```\n### Score by Category\n\n| Category | Score | Bar | 🚫 | 🔴 | 🟡 | 🟢 |\n|---|---|---|---|---|---|---|\n| 1 · Typography | X\u002F10 | ██████░░░░ | 0 | 1 | 2 | 0 |\n| 2 · Color & Contrast | X\u002F10 | █████░░░░░ | 1 | 0 | 1 | 0 |\n| [other audited categories] | X\u002F10 | ██████████ | — | — | — | — |\n\n*(Bar is 10 chars wide. Fill = score value. █ filled, ░ empty. Score ≤ 5 → render bar in red context.)*\n*(Only include audited categories. Use — for unchecked severity levels.)*\n*(Score bands: ≥ 8 → ✅ good · 5–7 → 🟡 needs work · ≤ 4 → 🔴 critical · Korean: ≥ 8 → ✅ 양호 · 5–7 → 🟡 개선 필요 · ≤ 4 → 🔴 심각)*\n```\n\n---\n\n#### ISSUES *(always — follow deduplication rules)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🚫  BLOCKERS  ·  cannot ship  ·  −12pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit this entire section if no Blockers found)*\n\n> **[Issue name]**\n> [What's wrong — one sentence]\n> Fix: [Specific how-to]\n> Legal basis: [WCAG SC X.X.X \u002F GDPR Article X]\n> Location: [node IDs \u002F line numbers]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔴  CRITICAL ISSUES  ·  must fix  ·  −8pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]**\n> [What's wrong — one sentence]\n> Fix: [Specific how-to]\n> Why: [One sentence rule reference]\n> Location: [node IDs \u002F line numbers]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟡  WARNINGS  ·  should fix  ·  −4pts each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]**\n> [What's wrong] → Fix: [how-to]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟢  TIPS  ·  nice to have  ·  −1pt each\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n> **[Issue name]** — [What's wrong] → [Fix]\n```\n\n---\n\n#### POSITIVES *(always — min 2, max 4)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✅  WHAT'S WORKING WELL\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [Specific genuine positive — not generic praise]\n- [Specific genuine positive]\n```\n\n---\n\n#### CROSS-FRAME INCONSISTENCIES *(conditional — only when 2+ frames audited)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n⚡  CROSS-FRAME INCONSISTENCIES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Property | Frame A | Frame B |\n|---|---|---|\n| [Property] | [value] | [value] |\n```\n\n---\n\n#### RE-AUDIT DELTA *(conditional — only on 2nd+ audit in session)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📈  PROGRESS SINCE LAST AUDIT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nScore:    [prev] → [current]  ([+\u002F−N] pts)\nFixed:    ✅ [category] (+Npts)  ✅ [category] (+Npts)\nOpen:     🔴 [N] critical issues remaining\nNew:      [N] new issues found\n```\n\n**After the delta text block, render a Visualizer widget showing a before\u002Fafter score bar pair:**\n```\nTwo horizontal bars, stacked:\n  Previous:  ████████████░░░░░░░░  [prev]\u002F100\n  Current:   ███████████████░░░░░  [current]\u002F100  [+N ↑ in green \u002F −N ↓ in red]\n\nBar width: 20 chars. Colour: previous bar in muted gray (#888), current bar in #534AB7 (improved)\nor #E24B4A (regressed). Delta badge right-aligned.\n```\n- English intro: *\"Here's how your score moved since the last audit.\"*\n- Korean intro: *\"지난 감사 이후 점수 변화를 확인해 보세요.\"*\n- If score is unchanged: show both bars at same fill, no delta badge, note \"No change in overall score.\"\n\n---\n\n#### REPORT FOOTER *(always)*\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*Audit run with Design Auditor Skill v1.2.13 · [input type] · [confidence level]*\n*Re-audit after fixes to track progress.*\n*수정 후 재감사를 실행하여 진행 상황을 추적하세요.*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n\n---\n\nAfter the report, immediately render:\n1. **Radar chart** (Step 3b) — always\n2. **Issue Priority Matrix widget** — always if 3+ issues\n3. **Severity filter widget** — if 5+ issues\n4. **\"What next?\" widget** (Step 4) — always\n\n**Issue Priority Matrix — effort\u002Fimpact heuristics:**\n\nEffort (1–10): 1–2 = single value change · 3–4 = one component rework · 5–6 = multi-component refactor · 7–9 = architectural change\n\nImpact (1–10): 9–10 = breaks a11y or core usability · 6–8 = degrades experience · 3–5 = polish-level · 1–2 = cosmetic\n\nUse deterministic positioning (no random jitter). Render severity as both color AND a letter inside the dot (C\u002FW\u002FT) for colorblind accessibility. Axis labels: English: \"Effort to Fix\" (x) \u002F \"Impact on Design\" (y) · Korean: \"수정 난이도\" (x) \u002F \"개선 효과\" (y) — use the user's detected language. Introduce with one sentence in the user's detected language:\n- English: *\"Here's every issue mapped by how hard it is to fix versus how much it will improve the design — start in the top-left.\"*\n- Korean: *\"발견된 모든 문제를 수정 난이도와 개선 효과 기준으로 매핑했습니다 — 왼쪽 위부터 시작하세요.\"*\n\n### Step 3b: Radar Chart Visualizer (always run after report)\n\nImmediately after presenting the markdown report, use the Visualizer tool to render an interactive radar chart widget. This gives users a visual at-a-glance summary of all category scores.\n\n**How to generate it:**\n- Extract the per-category scores (X\u002F10) from the audit you just ran\n- Use only the categories that were actually audited (skip ones marked as not applicable)\n- Pass real scores — do not use placeholder data\n- Use three colours based on score band: `#534AB7` (purple) for scores 8–10, `#E8A838` (amber) for scores 6–7, `#E24B4A` (red) for scores ≤ 5 — applied to both the filled shape segments and the dots\n- Label categories scoring ≤ 5 in red bold, 6–7 in amber, 8–10 in muted gray\n- Each segment and label must be clickable via `sendPrompt()` to drill into that category\n- Show a compact score-bar legend below the chart listing all audited categories\n- Display the overall score in the centre of the radar\n\n**Session history awareness:**\nStore the current overall score in a JS variable accessible to the widget. If a previous score exists in the session (from a re-audit), show a delta badge next to the centre score:\n- Score improved: `+N ↑` in green\n- Score dropped: `−N ↓` in red  \n- No change: omit the badge\n\n**Tone:** Introduce the chart with one short sentence in the user's detected language before the Visualizer call:\n- English: *\"Here's a visual breakdown of how your design scores across each category — red spots are your highest-priority fixes.\"*\n- Korean: *\"각 카테고리별 디자인 점수를 시각적으로 확인해 보세요 — 빨간 영역이 가장 우선적으로 수정해야 할 부분입니다.\"*\n\n**Fallback (if Visualizer is unavailable or rendering fails):**\nDo not skip the visual entirely. Fall back to the Score by Category table from the Strict Output Template — it carries the same per-category data in tabular form. Add a note:\n- English: *\"(Radar chart unavailable in this context — see Score by Category table above.)\"*\n- Korean: *\"(이 환경에서는 레이더 차트를 표시할 수 없습니다 — 위의 카테고리별 점수 표를 참고하세요.)\"*\n\n---\n\n### Severity Filter\nAfter presenting the report, offer a filter widget using ask_user_input if there are 5+ issues:\n\n- question: \"Would you like to filter the issues?\"\n- type: single_select\n- options: \"Show only 🔴 Critical \u002F 심각한 문제만\" \u002F \"Show 🔴 + 🟡 \u002F 심각 + 경고\" \u002F \"Show everything \u002F 전체 보기\" \u002F \"No filter \u002F 필터 없음\"\n\nApply the filter and re-present only the relevant issue sections. Score and category breakdown always remain visible regardless of filter.\n\n### Re-audit: Session Progress Tracker\n\nMaintain a running audit history across the session. Every time an audit completes, record:\n- Overall score\n- Accessibility score\n- Count of 🔴 critical \u002F 🟡 warning \u002F 🟢 tip issues\n- Timestamp label (e.g. \"Audit 1\", \"Audit 2\")\n\n**On re-audit**, open with a delta summary before the report in the user's detected language:\n- English: *\"Since the last audit: score improved from [X] → [Y]. 🔴 issues down from [N] to [N]. Here's what's new...\"*\n- Korean: *\"지난 감사 이후: 점수가 [X] → [Y]로 향상되었습니다. 🔴 심각한 문제가 [N]개에서 [N]개로 감소했습니다. 변경된 내용은 다음과 같습니다...\"*\n\nThen show only the **changed or new** issues — do not re-list resolved ones. Acknowledge wins explicitly in the user's detected language:\n- English: *\"✅ Fixed since last audit: Color & Contrast (+3pts), States (+4pts)\"*\n- Korean: *\"✅ 지난 감사 이후 수정됨: 색상 대비 (+3점), 상태 (+4점)\"*\n\n**After the radar chart**, if 2+ audits exist in the session, render a second small Visualizer widget — a simple horizontal progress bar or sparkline showing score history across audits (e.g. 58 → 71 → 84). Keep it minimal: one line, scores as labels, no axes. This helps users feel the momentum of improvement.\n\n---\n\n## Step 4: Offer to Fix\n\nAfter every report and radar chart, present a **\"What next?\" widget** using the ask_user_input tool:\n\n- question: \"What would you like to do next?\"\n- type: multi_select\n- options:\n  - \"Fix all Critical issues \u002F 심각한 문제 모두 수정\"\n  - \"Fix a specific issue \u002F 특정 문제 수정\"\n  - \"Teach me the rules behind my top issues \u002F 핵심 문제 원리 설명\"\n  - \"Wireframe to Spec \u002F 와이어프레임 스펙 출력\"\n  - \"Developer handoff report \u002F 개발자 전달 보고서\"\n  - \"Explain an issue \u002F 문제 설명\"\n  - \"Re-audit \u002F 재감사\"\n  - \"Export report \u002F 보고서 내보내기\"\n  - \"Export to Canva \u002F Canva로 내보내기\"\n  - \"Show session progress \u002F 세션 진행 상황\"\n\n**If \"Fix all Critical issues\"** → loop through each 🔴 issue one by one:\n1. Show issue name + before\u002Fafter diff (code) or design direction (screenshot)\n2. Ask using ask_user_input:\n   - question: \"Apply this fix? (Issue N of N)\"\n   - type: single_select\n   - options: \"Yes, apply it \u002F 적용\" \u002F \"Skip this one \u002F 건너뛰기\" \u002F \"Stop fixing \u002F 중단\"\n3. Apply or skip based on response, confirm each applied fix with ✅\n4. Move to the next 🔴 issue\n5. After all 🔴 issues are resolved or skipped: \"All critical fixes done. Want to continue with 🟡 warnings?\"\nNever batch-apply all fixes at once without per-issue confirmation.\n\n**If \"Fix a specific issue\"** → present a widget listing all 🔴 and 🟡 issues by name, let the user pick one, then show the before\u002Fafter diff and apply the fix.\n\n**If \"Teach me the rules behind my top issues\"** → pick the 3 highest-severity unique issue types from the audit and deliver a focused design principle lesson for each. Format:\n\n```\nFor each of the top 3 issues (🚫 first, then 🔴, then 🟡):\n\n  📐 Lesson [N]: [Rule name]\n  ─────────────────────────\n  The rule: [One sentence stating the design principle, not the fix]\n  Why it exists: [One sentence on the human reason — perception, cognition, law, etc.]\n  What it looks like when broken: [Real-world analogy or concrete example]\n  What it looks like when fixed: [Concrete before\u002Fafter contrast]\n  Where to learn more: [Relevant reference — WCAG SC, Nielsen heuristic, known article title]\n```\n\n- Use plain language — this mode targets learners, not experts\n- If beginner mode is active: no jargon, maximum one technical term per lesson with an inline definition\n- If experienced mode: go deeper, cite the cognitive science or perceptual research behind the rule\n- Korean: deliver the full lesson in Korean if the user's language is Korean\n\n**After all 3 lessons, render a Visualizer card widget — one card per lesson:**\n```\nLayout: 3 horizontal cards (or stacked on mobile)\nEach card:\n  Header:  [emoji] Lesson [N] · [Rule name]  — background #534AB7 (purple), white text\n  Body:    The rule (one line, bold) + Why it exists (one line, muted)\n  Footer:  \"Learn more: [reference]\" — small, linked if possible\n\nCard border: 1px solid #E8E8E8 · radius: 8px · padding: 16px\n```\n- English intro: *\"Here are the 3 design principles behind your top issues — tap any card to drill in.\"*\n- Korean intro: *\"상위 3개 이슈의 디자인 원칙을 카드로 정리했습니다 — 카드를 탭해 더 자세히 알아보세요.\"*\n- Each card header should be clickable via `sendPrompt()` to trigger \"Explain [Rule name] in more detail\"\n- After the widget: *\"Apply any of these fixes? I can edit the code or Figma directly.\"*\n  Korean: *\"수정을 도와드릴까요? 코드나 Figma에서 직접 변경할 수 있습니다.\"*\n\n**If \"Explain an issue\"** → present a widget listing all issues found. When one is selected:\n- Explain what the rule is and why it exists (1–2 sentences)\n- Show a real-world example of what it looks like when broken vs fixed\n- Explain the impact on users (e.g. \"users with low vision won't be able to read this\")\n- Cite the specific rule from the relevant reference file\n- If beginner mode is active: use plain language with no assumed knowledge\n- If experienced mode: go deeper — cite WCAG success criterion, link to relevant spec\n\n**If \"Re-audit\"** → re-run the audit on the same input:\n```\nScope for re-audit:\n  - Use the exact same scope as the original audit (same categories, same WCAG level)\n  - Do NOT re-ask settings unless the user explicitly requests a scope change\n  - State at the top: \"Re-audit — same scope as Audit [N]\"\n  - Show delta summary before the new report (see Re-audit delta section in Strict Output Template)\n  - Only list issues that changed — resolved, newly found, or worsened\n  - Unchanged issues from the previous audit: do not re-list, just note \"N issues unchanged\"\n\nIf the user shares updated code or a new Figma link before selecting Re-audit:\n  → Use the new input automatically. Note: \"Re-auditing updated version.\"\n```\n\n**If \"Show session progress\"** → render the session sparkline widget showing all audit scores in the current session, with issue count deltas per audit. Only show this option if 2+ audits have been run.\n\n**If \"Developer handoff report\"** → produce a structured handoff document using this exact template:\n\n```\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🛠️  DEVELOPER HANDOFF REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Field          | Value                          |\n|----------------|--------------------------------|\n| Component\u002FPage | [name]                         |\n| Audit date     | [date]                         |\n| Overall score  | [X]\u002F100                        |\n| A11y score     | [X]\u002F100                        |\n| Ethics score   | [X]\u002F100  *(if audited)*        |\n| Usability score| [X]\u002F100  *(if audited)*        |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🚫  BLOCKERS — fix before any other work\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit section if no Blockers)*\n\n| # | Issue | Location | Fix | Legal basis |\n|---|---|---|---|---|\n| 1 | [issue] | [node \u002F line] | [fix] | [WCAG SC \u002F GDPR] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔴  CRITICAL FIXES — required before shipping\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| # | Issue | Location | Fix | Exact value |\n|---|---|---|---|---|\n| 1 | [issue] | [node \u002F line] | [what to change] | [value] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🎨  CSS \u002F TOKEN SPEC\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Property | Current | Correct | Token |\n|---|---|---|---|\n| color | #999 | #666 | --color-text-secondary |\n| padding | 13px | 12px | --spacing-3 |\n| border-radius | 7px | 8px | --radius-md |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n♿  ACCESSIBILITY CHECKLIST\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] [aria fix needed]\n- [ ] [focus state needed]\n- [ ] [label needed]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔵  CODE CONNECT MAPPING  *(if available)*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Figma Component | Code Component | Status |\n|---|---|---|\n| Button\u002FPrimary | \u003CButton variant=\"primary\"> | ✅ Mapped |\n| Modal\u002FConfirm | — | 🟡 Unmapped |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟡  WARNINGS — non-blocking, should fix\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [warning 1]\n- [warning 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🟢  TIPS — polish level, nice to have\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Omit section if no Tips)*\n\n- [tip 1]\n- [tip 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✅  WHAT'S ALREADY CORRECT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [positive 1]\n- [positive 2]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*Generated by Design Auditor Skill v1.2.13*\n*Design Auditor Skill v1.2.13 생성*\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n```\n\n**Korean note — 개발자 전달 보고서:** When the user is in Korean mode, render the handoff report with these translations:\n- Title: `🛠️ 개발자 전달 보고서`\n- Field labels: `컴포넌트\u002F페이지` · `감사 날짜` · `전체 점수` · `접근성 점수` · `윤리 점수` *(감사된 경우)* · `사용성 점수` *(감사된 경우)*\n- Section headers:\n  - `🚫 블로커 — 다른 작업보다 먼저 수정` · *(블로커 없으면 섹션 생략)*\n  - `🔴 치명적 수정 — 배포 전 필수`\n  - `🎨 CSS \u002F 토큰 스펙`\n  - `♿ 접근성 체크리스트`\n  - `🔵 코드 커넥트 매핑` *(사용 가능한 경우)*\n  - `🟡 경고 — 비차단, 수정 권장`\n  - `🟢 팁 — 마감 수준, 선택 사항` · *(팁 없으면 섹션 생략)*\n  - `✅ 이미 올바른 항목`\n- Table column headers: `이슈` · `위치` · `수정 방법` · `법적 근거` · `정확한 값` · `속성` · `현재값` · `올바른 값` · `토큰` · `Figma 컴포넌트` · `코드 컴포넌트` · `상태`\n- Footer: `*Design Auditor Skill v1.2.13 생성*`\n\n**If \"Export report\"** → create a downloadable `.md` file via file_create containing:\n- The full audit report in the Strict Output Template format\n- All widgets rendered as static markdown tables (scores, issue list, category breakdown)\n- The dev handoff section appended at the end\n- Filename: `design-audit-[component-name]-[date].md`\n\n**If \"Export to Canva\"** → generate a visual audit report card in Canva using the Canva connector. This is a stakeholder-friendly format — not the raw markdown report, but a clean visual summary.\n\n```\nWhen to offer:\n  → After any completed audit when Canva connector is available\n  → Add \"Export to Canva \u002F Canva로 내보내기\" as an option in the \"What next?\" widget\n\nWhat to generate (use Canva generate-design tool, type: \"doc\"):\n  Query: \"Design audit report card with score [X\u002F100], \n          accessibility score [X\u002F100], ethics score [X\u002F100], \n          [N] critical issues, [N] warnings, [N] tips. \n          Professional, clean layout with score rings and issue summary.\"\n\nContent to include in the Canva doc:\n  1. Header: \"Design Audit — [component\u002Fpage name]\" + date\n  2. Score ring or badge: Overall [X\u002F100] · A11y [X\u002F100] · Ethics [X\u002F100]\n  3. Issue summary table: 🚫 [N] Blockers · 🔴 [N] Critical · 🟡 [N] Warnings · 🟢 [N] Tips\n  4. Top 3 critical issues with one-line fix each\n  5. What's working well (2–3 positives)\n  6. Footer: \"Generated by Design Auditor Skill v1.2.13\"\n\nAfter generating:\n  → Present the Canva design to the user\n  → Note: \"This is a shareable visual summary — for the full technical report, use Export Report.\"\n\nIf Canva connector is unavailable:\n  → Skip this option silently in the widget. Do not mention it.\n```\n\n**If \"Wireframe to Spec\"** → produce a structured design specification document. This mode is different from the audit — it doesn't score, it annotates. Use all available context data (Figma layer data, screenshot, code structure) to produce a spec a developer could build from.\n\n```\n## 📐 Design Spec — [Component\u002FScreen Name]\n\n**Input type:** [Figma wireframe \u002F Greyscale screenshot \u002F Sketch]\n**Spec generated:** [date]\n**Fidelity:** Wireframe — values are recommended, not measured \u002F 와이어프레임 — 값은 권장사항이며 실측값이 아닙니다\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📐  LAYOUT & DIMENSIONS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(~ prefix = estimated. Confirm with designer before development.)*\n\n| Element | Width | Height | Notes |\n|---|---|---|---|\n| [Container] | [value or \"full width\"] | [value or \"auto\"] | [note] |\n| [Section] | [value] | [value] | [note] |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n📏  SPACING\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(All values snapped to 8pt grid. Arbitrary wireframe values adjusted to nearest multiple.)*\n\n| Location | Value | Notes |\n|---|---|---|\n| Page margins | 16px (mobile) \u002F 48px (desktop) | Standard if not specified |\n| Section gap | [value] | Between major sections |\n| Component padding | [value] | Inside cards\u002Fcontainers |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🔤  TYPOGRAPHY\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n| Role | Font size | Weight | Line height | Notes |\n|---|---|---|---|---|\n| Heading | [value] | Bold | 1.2× | |\n| Subheading | [value] | SemiBold | 1.35× | |\n| Body | 16px | Regular | 1.5× | Minimum recommended |\n| Caption | 13px | Regular | 1.4× | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🧩  COMPONENTS REQUIRED\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Infer missing states — every interactive element needs: default, hover\u002Ffocus, disabled)*\n\n| Component | Variant | States required | Notes |\n|---|---|---|---|\n| [Button] | [Primary\u002FSecondary\u002FGhost] | Default, Hover, Loading, Disabled | |\n| [Input] | [Text\u002FSelect\u002FCheckbox] | Default, Focus, Error, Disabled | |\n| [Card] | [Standard] | Default, Hover | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n✍️  COPY PLACEHOLDERS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Buttons are verbs. Errors say what went wrong + how to fix.)*\n\n| Location | Placeholder shown | Suggested copy | Notes |\n|---|---|---|---|\n| [CTA button] | \"Button\" | \"Get started\" | Use specific verb |\n| [Empty state] | \"No data\" | \"No [items] yet — [action]\" | |\n| [Error state] | \"Error\" | \"Something went wrong — [next step]\" | |\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n🖱️  INTERACTION NOTES\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] [Element]: on click → [expected behaviour]\n- [ ] [Form]: validate on blur, not on submit\n- [ ] [Modal trigger]: trap focus when open, restore on close\n- [ ] [Scroll]: [sticky header \u002F infinite scroll \u002F paginated?]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n♿  ACCESSIBILITY REQUIREMENTS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n- [ ] All interactive elements have visible focus states\n- [ ] Form inputs have visible labels (not placeholder-only)\n- [ ] Images have alt text slots\n- [ ] Reading order: [describe logical DOM order]\n- [ ] Keyboard navigation: [describe tab flow]\n- [ ] [Any WCAG-specific requirements based on component type]\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n❓  OPEN QUESTIONS\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n*(Gaps in the wireframe that must be decided before development)*\n\n- [ ] [Question about content\u002Fdata source]\n- [ ] [Question about edge cases — empty state, max content, overflow]\n- [ ] [Question about responsive behaviour at mobile breakpoint]\n- [ ] [Question about loading state if this fetches data]\n\n---\n*Generated by Design Auditor Skill v1.2.13 · Wireframe to Spec mode*\n*디자인 스펙 문서 · Design Auditor Skill v1.2.13 생성*\n*Values marked ~ are estimated. Confirm with designer before development.*\n*~ 표시 값은 추정치입니다. 개발 전 디자이너에게 확인하세요.*\n```\n\n**Korean note — 와이어프레임 스펙:** When the user is in Korean mode, translate the spec as follows:\n- Title: `## 📐 디자인 스펙 — [컴포넌트\u002F화면 이름]`\n- Field labels: `입력 유형` · `스펙 생성일` · `충실도`\n- Section headers (keep emoji, translate label):\n  - `📐 레이아웃 & 치수` · *(~ 접두사 = 추정치. 개발 전 디자이너에게 확인하세요.)*\n  - `📏 간격` · *(모든 값은 8pt 그리드에 맞춤. 와이어프레임의 임의 값은 가장 가까운 배수로 조정.)*\n  - `🔤 타이포그래피`\n  - `🧩 필요한 컴포넌트` · *(누락된 상태 추론 — 모든 인터랙티브 요소에 필요: 기본, 호버\u002F포커스, 비활성화)*\n  - `✍️ 카피 플레이스홀더` · *(버튼은 동사. 오류는 무엇이 잘못됐는지 + 수정 방법을 설명.)*\n  - `🖱️ 인터랙션 노트`\n  - `♿ 접근성 요구사항`\n  - `❓ 미결 질문` · *(개발 전에 결정해야 할 와이어프레임의 공백)*\n- Table column headers: `요소` · `너비` · `높이` · `비고` · `위치` · `값` · `역할` · `폰트 크기` · `굵기` · `행 높이` · `컴포넌트` · `변형` · `필요한 상태` · `위치` · `표시된 플레이스홀더` · `제안 문구`\n\n**Wireframe to Spec mode behaviour:**\n- Do NOT run a scored audit — no score, no severity labels, no issue list\n- Infer missing values using standard defaults from reference files (spacing.md, typography.md, states.md)\n- Flag every inferred\u002Festimated value clearly with ~ prefix or \"(recommended)\" note\n- Always include Open Questions — gaps in the wireframe are valuable to surface\n- If Figma MCP is active: use `get_design_context` layer data for exact values, fall back to estimates where data is missing\n- If screenshot only: all layout values are estimated — state this clearly at the top\n- Output as a downloadable `.md` file: `design-spec-[component-name]-[date].md`\n\nThen respond based on their selection. If they dismiss the widget, fall back to a language-appropriate line:\n- English: *\"Want me to apply any of these fixes? I can edit the code directly, or if you're in Figma, I can make changes there too. Or if you'd rather learn how to do it yourself, I can walk you through it step by step.\"*\n- Korean: *\"이 중에서 수정을 도와드릴까요? 코드를 직접 수정하거나 Figma에서 변경할 수 있습니다. 직접 해보고 싶으시면 단계별로 안내해 드릴게요.\"*\n\n### Ambiguous Input Widget\nIf the user triggers the skill but shares nothing (e.g. just says \"audit this\" with no attachment), use ask_user_input before asking in prose:\n\n- question: \"What are you sharing for the audit?\"\n- type: single_select\n- options: \"Figma link \u002F Figma 링크\" \u002F \"Screenshot \u002F 스크린샷\" \u002F \"Code (HTML\u002FCSS\u002FReact) \u002F 코드\" \u002F \"Written description \u002F 텍스트 설명\"\n\n**In Figma (🟢 High confidence, MCP active)**: Call `perform_editing_operations` → specific node IDs → verify with `get_screenshot` after each change. See F5 and `references\u002Ffigma-mcp.md` for operation types and safety rules. If `perform_editing_operations` is unavailable, fall back to design direction.\n\n**In code**: Always show a before\u002Fafter diff when fixing:\n```\n\u002F\u002F BEFORE\npadding: 13px 22px;\ncolor: #aaa;\n\n\u002F\u002F AFTER\npadding: 12px 24px;  \u002F* 8pt grid *\u002F\ncolor: #666;          \u002F* 4.5:1 contrast on white *\u002F\n```\n\n**In screenshots (🟡 Medium confidence)**: Never write code fixes for screenshot input — there is no source to edit. Instead give **design direction**:\n- Describe the change spatially: > \"Increase the gap between the label and input field — it should feel like they breathe, roughly 1.5× the current distance.\"\n- Give the target value as a design spec, not code: > \"Text color needs to be darker — aim for at least 4.5:1 against that background. A dark gray like #333 or #444 would work.\"\n- Reference visual landmarks: > \"The card padding looks tight on the left side — match it to the top padding so all four sides feel equal.\"\n- If the user needs code, prompt them: > \"If you can share the component code or Figma file, I can give you the exact value to change.\"\n\n**Teaching mode**: Walk through the fix step by step instead of doing it for them.\n\n---\n\n## Reference Files\n\n- `references\u002Ftypography.md` — Font rules, sizing, line height, hierarchy, type scale algorithm\n- `references\u002Fcolor.md` — Contrast ratios, WCAG luminance formula, palette guidance\n- `references\u002Fspacing.md` — 8-point grid, layout, proximity rules\n- `references\u002Ffigma-mcp.md` — Figma MCP workflow, page structure, component health, safe editing patterns\n- `references\u002Fstates.md` — Loading, empty, error, success & disabled state patterns + code checks\n- `references\u002Fmicrocopy.md` — Button labels, error messages, placeholder rules, per-role audit guide\n- `references\u002Ftokens.md` — Design token naming, two-tier system, token health scoring, dark mode architecture\n- `references\u002Fi18n.md` — Internationalization, RTL layout, locale-aware formatting\n- `references\u002Fcorner-radius.md` — Nested radius rule, radius scale, size-proportional rounding\n- `references\u002Felevation.md` — Shadow scale, elevation hierarchy, dark mode depth, code shadow audit\n- `references\u002Ficonography.md` — Icon families, optical sizing, touch targets, meaning consistency\n- `references\u002Fnavigation.md` — Tabs, breadcrumbs, back buttons, mobile nav, active states\n- `references\u002Fanimation.md` — Easing curves, duration scales, reduced motion, Figma Smart Animate naming, code animation checks\n- `references\u002Fethics.md` — Ethical design & dark patterns: full taxonomy (20 patterns across 5 groups), detection signals, ethics severity model, ethics score, ethical persuasion reference\n- `references\u002Fheuristics.md` — Nielsen's 10 Usability Heuristics: H1\u002FH2\u002FH3\u002FH6\u002FH7\u002FH10 gap coverage, detection signals, Usability Score, quick reference checklist\n",{"name":5,"version":24,"description":7},"1.2.13","main","6d80f3aba1c1dd6c29729d8e3019577b9411126c","organized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill",0,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library","https:\u002F\u002Fgithub.com\u002Fmhrsdev","2026-07-05 06:21:49",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mhrsdev\u002FAI-Agent-Skills-Library --skill design-auditor",{"tool":38,"command":39},"bunx","bunx skills add mhrsdev\u002FAI-Agent-Skills-Library --skill design-auditor",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mhrsdev\u002FAI-Agent-Skills-Library --skill design-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"README_KR.md","REFERENCE","参考文档",20040,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002FREADME_KR.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"README.md",3955,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002FREADME.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fanimation.md",12210,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fanimation.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fcolor.md",9279,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fcolor.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fcorner-radius.md",11373,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fcorner-radius.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Felevation.md",8379,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Felevation.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fethics.md",48686,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fethics.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Ffigma-mcp.md",13269,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Ffigma-mcp.md",{"path":81,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fheuristics.md",32815,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fheuristics.md",{"path":85,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fi18n.md",8723,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fi18n.md",{"path":89,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Ficonography.md",6952,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Ficonography.md",{"path":93,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fmicrocopy.md",10450,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fmicrocopy.md",{"path":97,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fnavigation.md",11928,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fnavigation.md",{"path":101,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fspacing.md",11377,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fspacing.md",{"path":105,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fstates.md",12144,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Fstates.md",{"path":109,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Ftokens.md",9639,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Ftokens.md",{"path":113,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Ftypography.md",9164,"https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Ffrontend-ui-design\u002Fclaude-design-auditor-skill\u002Freferences\u002Ftypography.md",[117,124,130,137,144,151],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M785CANS10KGVX2B6JHZ2QX5","static-project-gallery-upload","Use when a user provides project\u002Fportfolio\u002Fgallery images for a static website and wants them displayed on the site, exact duplicate images removed, visually related building views kept together, images optimized, and a host upload folder such as \"UP FILE\" prepared. Triggers include Persian requests like \"عکس پروژه ها\", \"تکراری نباشن\", \"توی سایت نمایش داده بشن\", \"فایل های هاست\", \"UP FILE\".","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwebsite-business-builds\u002Fstatic-project-gallery-upload\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M785C3S56JQ75Y4QTPZWH9PG","contact-location-section","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwebsite-business-builds\u002Fcontact-location-section\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M785BWRPMZH26VQYVK3X4VY3","azerbaijan-website-build","Build premium tri-lingual websites from scratch for Azerbaijani businesses. Handles data gathering (website scrape, social media, or interview), brand development, and full Astro + Tailwind build with AZ\u002FRU\u002FEN language support.","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwebsite-business-builds\u002F07-azerbaijan-website-build\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M785BMQ7C9QPACPTVEPZ4C4X","local-business-rebuild","Build a stunning new website for a local business prospect. Adapted from the full website-rebuild skill but optimized for speculative local business pitches. 10-phase process: brand extraction, SEO audit, design audit, rebuild plan, full build with design system, copy optimization, combined QA, pre-deploy checklist, and output to monorepo. Uses scraped content from prospect-scrape as input. No tools\u002Fcalculator research phase. Single combined QA round. Triggers on: \"rebuild prospect\", \"local business rebuild\", \"build prospect site\", \"rebuild their site\", \"prospect rebuild\", or any request to build a new website for a qualified prospect.","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwebsite-business-builds\u002F06-local-business-rebuild\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M785BA38WMK2QEA9QBX3G201","website-rebuild","Full website rebuild agent. Takes an existing website URL and rebuilds it from scratch into a world-class, SEO-optimized, WCAG AA accessible, visually stunning website using Astro + Tailwind CSS, deployed to Vercel via GitHub. Executes a rigorous 14-phase process: brand extraction, content scraping, SEO audit, design audit, rebuild planning, full build with design system, copy optimization, 3 QA rounds, competitive tools research, tools build, tools QA, pre-deploy checklist, and Vercel deployment. Produces 11+ documentation deliverables. Triggers on: \"rebuild website\", \"redesign website\", \"rebuild site from URL\", \"website rebuild\", \"redo this website\", \"make this website better\", \"rebuild from scratch\", \"full site redesign\", or any request to take an existing URL and create a new, professional website from it. Also triggers when the user provides a URL and asks to build\u002Fcreate\u002Fdesign a new version of that site.","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwebsite-business-builds\u002F05-website-rebuild\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M785B6YDMSVJ30MTW6QDPME9","triage","Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002Fmhrsdev\u002FAI-Agent-Skills-Library\u002Fblob\u002Fmain\u002Forganized-skills\u002Fskill-authoring-meta\u002Ftriage\u002FSKILL.md",[],[]]