ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Audit a data visualization for chart type selection, accessible color palette, annotations, and anti-patterns. Optionally audits dashboard layout fit when context is provided. Outputs a scored checklist and corrected code.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/data-viz-auditContext preview
What this command does when you run it.
Audit a data visualization for chart type selection, accessible color palette, annotations, and anti-patterns. Optionally audits dashboard layout fit when context is provided. Outputs a scored checklist and corrected code.
name: data-viz-audit description: Audit a data visualization for chart type selection, accessible color palette, annotations, and anti-patterns. Optionally audits dashboard layout fit when context is provided. Outputs a scored checklist and corrected code. allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"] triggers: - audit chart - chart audit - chart review - review chart - data viz audit - viz audit - dashboard audit - audit dashboard - chart accessibility - colorblind chart - chart anti-pattern arguments: "<paste chart code or describe the visualization> — <dashboard context if applicable>"
Audit a data visualization end-to-end: chart type selection, accessible color palette, annotations, anti-patterns (Phase 1 — always), and dashboard layout fit (Phase 2 — only when dashboard context is provided).
**Usage:** `/data-viz-audit <chart description or code>`
**Examples:**
---
Extract from `$ARGUMENTS`:
Apply the chart type selection matrix from the Data Viz Designer reference:
| Data relationship | Correct chart | |-------------------|--------------| | Trend over time (continuous) | Line chart | | Trend over time (discrete periods) | Vertical bar | | Part-to-whole (≤ 5 categories) | Donut | | Part-to-whole (many categories) | Stacked bar | | Comparison across categories | Grouped bar | | Distribution | Histogram | | Correlation | Scatter plot | | Ranking with long labels | Horizontal bar | | Hierarchical proportions | Treemap | | Flow between stages | Sankey |
**Anti-patterns — flag and reject:**
Output format:
**Chart Type:** ✅ Correct — [chart type] matches [data relationship]
or
**Chart Type:** ❌ [Issue] — [why it's wrong] → Recommended: [alternative]
Classify the current palette as sequential, diverging, or categorical. Apply the correct palette:
**Sequential** (one variable, ordered):
--data-seq-1: #dbeafe; --data-seq-2: #93c5fd; --data-seq-3: #3b82f6; --data-seq-4: #1d4ed8; --data-seq-5: #1e3a8a;
**Diverging** (values diverge from midpoint — profit/loss, sentiment):
--data-div-neg-2: #dc2626; --data-div-neg-1: #fca5a5; --data-div-mid: #f3f4f6; --data-div-pos-1: #93c5fd; --data-div-pos-2: #1d4ed8;
**Categorical** (distinct series, colorblind-safe up to 8):
--data-cat-1: #2563eb; --data-cat-2: #16a34a; --data-cat-3: #dc2626; --data-cat-4: #d97706; --data-cat-5: #7c3aed; --data-cat-6: #0891b2; --data-cat-7: #db2777; --data-cat-8: #4b5563;
**Colorblind safety check:**
Every chart needs at least one annotation that explains the key insight:
If no annotation is present:
**Annotation:** ❌ No key insight called out → Add: [specific annotation suggestion with value/label]
Output a checklist:
| Criterion | Status | Fix | |-----------|--------|-----| | Canvas: `aria-labelledby` → `<figcaption>` | ✅/❌ | — | | Canvas: `<details>` data table fallback | ✅/❌ | — | | SVG: `role="img"` + `<title>` + `<desc>` | ✅/❌ | — | | Responsive: `width: 100%` on wrapper | ✅/❌ | — | | Tick density: 4 mobile / 8 desktop | ✅/❌ | — | | Legend: bottom on mobile, right on desktop | ✅/❌ | — |
**Skip condition:** If no dashboard context was provided in `$ARGUMENTS`, output:
> **Phase 2 skipped** — No dashboard context provided. Describe the surrounding dashboard layout (KPI row, other charts, filter bar) to audit layout fit, information hierarchy, and filter coordination.
**If dashboard context is present**, run the Dashboard Architect review:
Produce a corrected code block addressing all Phase 1 findings (and Phase 2 if
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'…