ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Quantitative 0–100 design quality score across Accessibility, Usability, Visual Quality, and Token Compliance.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/design-scoreContext preview
What this command does when you run it.
Quantitative 0–100 design quality score across Accessibility, Usability, Visual Quality, and Token Compliance.
description: "Quantitative 0–100 design quality score across Accessibility, Usability, Visual Quality, and Token Compliance." argument-hint: "[url | file-path | nodeId | --screenshot <path>]" allowed-tools: ["Read", "Glob", "Bash", "mcp__plugin_playwright_playwright__browser_navigate", "mcp__plugin_playwright_playwright__browser_take_screenshot", "mcp__plugin_playwright_playwright__browser_snapshot"]
Score a design across four dimensions: Accessibility (25pts), Usability (25pts), Visual Quality (25pts), Token Compliance (25pts). Total: 0–100.
Read `${CLAUDE_PLUGIN_ROOT}/skills/design/references/ux-researcher.md` — focus on "Nielsen's Heuristics" and "WCAG AA Checklist" sections before scoring.
Check for `.naksha/project.json` (search up to 3 directory levels). If found, read:
Score each criterion with partial credit proportional to how many elements pass:
| Criterion | Max | Score | |-----------|-----|-------| | Primary text contrast ≥ 4.5:1; large text ≥ 3:1 (WCAG SC 1.4.3) | 6 | | | UI component contrast ≥ 3:1 — buttons, inputs, focus rings (SC 1.4.11) | 4 | | | All interactive elements have visible focus state (SC 2.4.7) | 4 | | | Touch targets ≥ 44×44px on mobile interactive elements (SC 2.5.5) | 4 | | | No information conveyed by color alone (SC 1.4.1) | 4 | | | Form inputs have programmatic labels, not placeholder-only (SC 1.3.1) | 3 | |
Score each of Nielsen's 10 heuristics 0–3:
| # | Heuristic | Score (0–3) | |---|-----------|------------| | 1 | Visibility of system status | | | 2 | Match between system and real world | | | 3 | User control and freedom | | | 4 | Consistency and standards | | | 5 | Error prevention | | | 6 | Recognition rather than recall | | | 7 | Flexibility and efficiency of use | | | 8 | Aesthetic and minimalist design | | | 9 | Help users recognize, diagnose, and recover from errors | | | 10 | Help and documentation | |
Usability score = `round((sum / 30) × 25)`
Score each sub-criterion 0–5:
| Sub-criterion | Max | Score | |---------------|-----|-------| | Spacing consistency (8pt grid or consistent scale; no arbitrary values) | 5 | | | Typography hierarchy (H1/H2/body visually distinct in size and weight) | 5 | | | Color usage (limited palette, harmonious, brand-consistent) | 5 | | | Whitespace and visual noise (breathing room; no clutter; clear focus) | 5 | | | Primary action prominence (CTA clearly dominant over secondary actions) | 5 | |
**If `.naksha/project.json` exists** (check `tokenFormat`, `brand.primary`, `brand.font`):
| Sub-criterion | Max | Score | |---------------|-----|-------| | Color values from token system — no raw hex/rgb/hsl | 5 | | | Typography from token system — no hardcoded font-family or arbitrary px sizes | 5 | | | Spacing from token system — values on expected grid scale (use `constraints.grid` if set, else 8pt default) | 5 | | | Component variants consistent — same border-radius, padding across similar components (cross-check against `component_patterns` if set) | 5 | | | Interactive states consistent — hover/focus/active applied uniformly | 5 | |
**v5 scoring enhancements (apply when v5 constraints are present):**
**If no project config:** Score visual consistency instead (same patterns used for same purposes throughout the design).
**URL:** Use `browser_navigate` to load the page, `browser_snapshot` for DOM structure, `browser_take_screenshot` for visual analysis.
**Local file path (.html, .css):** Read the file directly.
**`--screenshot <path>`:** Read the image file. Score visually — note that some accessibility criteria require code
Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 26 specialist roles activate automatically based on what you're building.
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Full WCAG AA accessibility audit on an HTML file — contrast ratios, keyboard navigation, semantic HTML, ARIA usage, touch…
Generate a complete brand kit from a logo and 1-2 brand colors — full palette, type scale, icon style, component tokens, and…
Define or audit a brand — positioning, visual identity system, voice and tone, and brand architecture.
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and…
Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…