data-viz

A code-based toolkit guide for building interactive charts, dashboards, and data-reporting interfaces with libraries such as Recharts, Nivo, D3, and Tremor.

In plain words
What is it for?
Use it to create metric displays, line and bar charts, heatmaps, maps, flow diagrams, custom visualizations, and interactive analytics views in React, HTML, or Python environments.
Why use it?
It provides a defined approach for turning data into usable interfaces without requiring a specific business-intelligence product.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/altimateai/altimate-code/data-viz
Any agent
npx skills add AltimateAI/altimate-code --skill data-viz
Clone the repo
git clone --depth 1 https://github.com/AltimateAI/altimate-code

Made for: Claude Code, Codex.

Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00189 $0.01981
Opus 5 $0.00095 $0.00991
Sonnet 5 $0.00038 $0.00396
Haiku 4.5 $0.00019 $0.00198

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

Security

Grade A, and why

data-viz 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 2d 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.

.opencode/skills/data-viz/SKILL.md · 151 lines

How it starts

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

AI-First Data Visualization

Philosophy

Build production-quality interactive data interfaces with modern component libraries — no vendor lock-in, embeddable anywhere. When no tool is specified, build code-first. When the user explicitly names a BI tool, use it — only suggest code-first if they ask for options or hit a technical blocker.

Technology Stack

Full API patterns & code: references/component-guide.md

Framework Priority

  1. React + Tailwind — Default when JSX/TSX supported
  2. HTML + CSS + Vanilla JS — Fallback (use D3 or Chart.js)
  3. Python (Plotly/Dash) — Python-only environments only

Library Selection

Library Best For
shadcn/ui charts Default first choice — general dashboards, most chart types
Recharts Line, bar, area, composed, radar — fine-grained control
Tremor KPI cards, metric displays, full dashboard layouts
Nivo Heatmaps, treemaps, choropleth, calendar, Sankey, funnel
visx Bespoke custom viz — D3-level control with React
D3.js Force-directed graphs, DAGs, maps — maximum flexibility
Victory When animation quality matters most

Supporting: Tailwind CSS · Radix UI · Framer Motion · Lucide React · date-fns · Papaparse · lodash

Building a Visualization

Step 1: Understand the Data Story

Before code, identify: What question does the data answer? Who is the audience (exec → KPIs only, analyst → drill-down, public → narrative)? What's the ONE key insight? Design around it.

Step 2: Choose Chart Type

Data Relationship Chart Type Library
Trend over time Line, Area shadcn/Recharts
Category comparison Bar (horizontal if many) shadcn/Recharts
Part of whole Donut, Treemap shadcn/Nivo
Distribution Histogram, Box, Violin Nivo/visx
Correlation Scatter, Bubble Recharts/visx
Geographic Choropleth, Dot map Nivo/D3
Hierarchical Treemap, Sunburst Nivo
Flow / Process Sankey, Funnel Nivo/D3
Single KPI Metric card, Gauge, Sparkline Tremor/shadcn
Multi-metric overview Dashboard grid of cards Tremor + shadcn
Ranking Horizontal bar, Bar list Tremor
Column/model lineage Force-directed DAG D3
Pipeline dependencies Hierarchical tree, DAG D3/Nivo
Multi-dimensional quality Radar/Spider Recharts
Activity density over time Calendar heatmap Nivo
Incremental change breakdown Waterfall Recharts (custom)

Read the full file on GitHub · 151 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 151 lines · 189 tokens per session scan A 3fffc2fbe92c

Subscribe to this mod's changes

data-viz is a skill published in the GitHub repository AltimateAI/altimate-code (803 stars, last pushed 2d ago), licensed MIT. It adds 189 tokens to every session and 1,981 once invoked, about $0.0009 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.

Related

Other skills, from other repositories

data-divergence

Investigate why two datasets that should agree don't — two pipelines writing the same logical table, a rollup vs the detail it aggregates, a dashboard vs its source, one environment vs another. Use when row counts, totals, or date ranges disagree and the question is what happened rather than just what differs. Covers…

andre-salvati/databricks-template · 123 tokens

sql-diagram

Diagram a SQL query and explain what it shows — either its execution steps (mode=plan) or its column lineage (mode=lineage) — then trace it through small data so the defects the picture cannot show become visible. Use when asked to visualize, diagram, explain or review what a query does, how it joins its tables, or…

andre-salvati/databricks-template · 121 tokens

project-costs

Run the project cost report and write the analysis into it. Use when asked about this project's cloud spend, cost anomalies, spikes or trends, DBU/DSU consumption, per-job or per-pipeline cost, or the AWS vs Databricks split. Runs make project-costs (AWS Cost Explorer + Databricks system.billing), then analyses the…

andre-salvati/databricks-template · 93 tokens

explore

Use this whenever you need to know what is actually in a database, warehouse, or DuckDB file before you trust it: ranked inventory of what exists, column profiles, PII detection, grain and data-quality problems, verified join inference, Mermaid ER diagrams, guarded ad-hoc SQL probes, and k-means segmentation…

exmergo/dex · 309 tokens

transform

Use this to author and change a dbt project: bootstrap a project in a repo that has none (transform init), write or refactor model SQL from staging to marts, add tests and docs in schema.yml, manage dependencies, and define or update the semantic layer (dbt semantic models / MetricFlow: entities, dimensions, measures…

exmergo/dex · 317 tokens

maintain

Use this to keep a dbt project correct as the warehouse and the business change. It detects drift on four axes and proposes the fix: schema drift (source columns and tables added, dropped, retyped, or renamed), volume drift (a row count that collapsed, a table that emptied, a load that half-failed), grain drift (a key…

exmergo/dex · 300 tokens