ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and outputs production-ready HTML/CSS/JS
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/chart-designContext preview
What this command does when you run it.
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and outputs production-ready HTML/CSS/JS
name: chart-design description: Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and outputs production-ready HTML/CSS/JS allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"] triggers: - chart - graph - visualization - data viz - bar chart - line chart - pie chart - scatter plot - histogram - donut chart - heatmap - sankey - treemap arguments: "$ARGUMENTS"
Design a data visualization: select the right chart type, apply accessible colors, add meaningful annotations, and produce production-ready HTML/CSS/JS with Chart.js (or vanilla SVG for simple charts).
**Usage:** `/chart-design <description>`
**Examples:**
---
Extract from `$ARGUMENTS`:
Apply the chart type selection matrix from the Data Viz Designer reference:
| Data relationship → | Recommended chart | |--------------------|--------------------| | Trend over time (continuous) | Line chart | | Trend over time (discrete periods) | Vertical bar chart | | Part-to-whole (≤ 5 categories) | Donut chart | | Part-to-whole (many categories) | Stacked bar | | Comparison across categories | Grouped bar chart | | Single metric vs target | Bullet chart | | Distribution of one variable | Histogram | | Correlation between 2 variables | Scatter plot | | Ranking with long labels | Horizontal bar | | Hierarchical proportions | Treemap | | Flow between stages | Sankey diagram |
**Reject anti-patterns:** If the request implies a 3D chart, dual Y-axis, or pie with > 5 slices, note the issue and recommend the appropriate alternative.
Apply palette based on the data type:
**Sequential** (single variable, ordered values):
--data-seq-1: #dbeafe; --data-seq-2: #93c5fd; --data-seq-3: #3b82f6; --data-seq-4: #1d4ed8; --data-seq-5: #1e3a8a;
**Diverging** (values diverge from a 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 — up to 8, colorblind-safe):
--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;
Identify the key insight and add at least one annotation:
**HTML/CSS/JS output requirements:**
**Output structure:**
<figure class="chart-figure">
<figcaption id="chart-title">[Chart title]</figcaption>
<div class="chart-wrapper">
<canvas id="chart" aria-labelledby="chart-title"></canvas>
</div>
<details class="chart-data-table">
<summary>View data table</summary>
<table>...</table>
</details>
</figure>**CSS (self-contained):**
.chart-figure { margin: 0; }
.chart-wrapper { position: relative; width: 100%; height: 300px; }
figcaption {
font-size: 14px; font-weight: 600;
color: #111827; margin-bottom: 12px;
}
.chart-data-table { margin-top: 12px; font-size: 13px; }Before outputting:
---
This command does not require MCP. All output is self-contained HTML/CSS/JS using Chart.js or vanilla SVG.
---
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.
Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…
Auto-generate component documentation from Figma — props, variants, usage guidelines, spacing specs, and code snippets in…