data-viz-audit

data-viz-audit is a command for Claude Code from Adityaraj0421/naksha-studio. It costs 45 tokens per session (1,740 once invoked), scanned A, original, MIT.

A review of a data visualisation, such as a chart or dashboard, for whether it uses a suitable chart type, readable colours, useful annotations, and accessible patterns. A data visualisation is a graphic used to explain data.

In plain words
What is it for?
Use it to assess chart descriptions or code, review colour choices and annotations, find common chart mistakes, and receive corrected code.
Why use it?
It helps catch charts that misrepresent relationships, hide important information, or are difficult to read. When dashboard context is provided, it also checks whether the chart fits its surrounding layout.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the naksha-studio plugin — 47 commands, 7 agents shipped together

Good fit Use it to assess chart descriptions or code, review colour choices and annotations, find common chart mistakes, and receive corrected code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adityaraj0421/naksha-studio/data-viz-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Adityaraj0421/naksha-studio

Made for: Claude Code.

Or install naksha-studio, the plugin that ships this one along with the rest of its 47 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-viz-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/data-viz-audit.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/data-viz-audit)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/data-viz-audit"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/data-viz-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01740
Opus 5 $0.00023 $0.00870
Sonnet 5 $0.00009 $0.00348
Haiku 4.5 $0.00005 $0.00174

Measured 8d ago against content hash 3be58d07b8fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

data-viz-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/data-viz-audit.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/data-viz-audit $ARGUMENTS

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:

  • /data-viz-audit pie chart showing 8 revenue channels — standalone, no dashboard
  • /data-viz-audit monthly active users line chart — SaaS analytics dashboard with MRR, churn, active users KPI row
  • /data-viz-audit <paste Chart.js config here> — e-commerce admin dashboard, secondary chart slot
  • /data-viz-audit dual Y-axis line chart comparing ad spend and conversion rate

Process

1. Parse the Input

Extract from $ARGUMENTS:

  • Chart input: pasted code (HTML, Chart.js config, SVG) or plain description
  • Dashboard context: optional — surrounding layout description, screenshot reference, or explicit "standalone" note
  • Chart type claimed vs. data relationship being shown
  • Number of data series and whether data is continuous, discrete, or categorical
  • Color variables in use (hex values or CSS custom properties)

2. Phase 1 — Chart Type Audit

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:

  • 3D charts of any kind → recommend flat equivalent
  • Dual Y-axis → recommend two separate charts or indexed comparison
  • Pie chart with > 5 slices → recommend horizontal bar chart
  • Misleading truncated Y-axis → note and correct

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 167 lines · 45 tokens per session scan A 3be58d07b8fa

Subscribe to this mod's changes

data-viz-audit is a command published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 1,740 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.