chart-design

chart-design is a skill for Claude Code from Avinava/document-design-system. It costs 134 tokens per session (1,861 once invoked), scanned A, original, MIT.

A guide to designing honest, accessible charts for numerical data as inline SVG images. It covers common charts such as bars, lines, distributions, scatter plots, and small multiples.

In plain words
What is it for?
Use it to choose chart types, label data, select colors, and build charts for measured values, trends, distributions, and comparisons.
Why use it?
It helps charts communicate comparisons accurately and avoids misleading choices such as truncated bar axes or unnamed percentage denominators.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the document-design-system plugin — 6 skills, 36 commands shipped together

Good fit Use it to choose chart types, label data, select colors, and build charts for measured values, trends, distributions, and comparisons.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avinava/document-design-system/chart-design
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.

Any agent
npx skills add Avinava/document-design-system --skill chart-design
Clone the repo
git clone --depth 1 https://github.com/Avinava/document-design-system

Made for: Claude Code.

Or install document-design-system, the plugin that ships this one along with the rest of its 6 skills, 36 commands.

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 chart-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/avinava/document-design-system/chart-design/github.svg)](https://agentmods.dev/skills/avinava/document-design-system/chart-design)
Your own site
<a href="https://agentmods.dev/skills/avinava/document-design-system/chart-design"><img src="https://agentmods.dev/badge/skills/avinava/document-design-system/chart-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chart-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/avinava/document-design-system/chart-design"><img src="https://agentmods.dev/badge/skills/avinava/document-design-system/chart-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 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.00134 $0.01861
Opus 5.5 $0.00054 $0.00744
Sonnet 5.5 $0.00027 $0.00372
Haiku 4.5 $0.00013 $0.00186

Measured 18d ago against content hash 5955694131ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chart-design 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 18d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render_chart.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/chart-design/SKILL.md · 130 lines

How it starts

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

Chart Design

A chart is an argument about numbers. Its job is to make one comparison faster than a table would — and to make the wrong reading hard.

Choose a chart only when it reveals a relationship faster than a table. A chart of four values is slower to read than four labelled numbers, because the reader has to decode the encoding before they get the data.

The honesty rules

These are not stylistic. Breaking them changes what the reader concludes.

  • Bar and column charts start at zero. A truncated bar axis multiplies apparent differences by an arbitrary factor. If small differences matter, use a line chart, a dot plot, or state the values.
  • Line charts may use a non-zero axis — they encode position, not length — but the axis must be labelled and the truncation visible.
  • Area encodes one quantity, not two. Doubling both width and height quadruples the area for a doubled value.
  • Percentages name their denominator, near the chart, not buried in a footnote.
  • Equal visual weight means equal comparability. Do not put two different units on one axis.
  • Time on an axis is continuous. Missing months appear as zero or as a marked gap, never by silently closing up.
  • State when a scale is logarithmic, in the axis label, not the caption.
  • Categories are categories, even when they look like numbers. Years, quarters, ports, and version numbers are labels, not measurements. Put them on a categorical (band) scale. Left on a continuous scale, 2020…2025 gets positioned by arithmetic distance, and a missing year silently becomes a gap the data never had.

If the data does not support the chart's implicit claim, change the chart, not the axis.

Choosing a form

The reader needs Form
Rank and compare categories Horizontal bars, sorted descending
Compare a value across time periods Columns, chronological
A trend, or many series over time Line
Used versus available against a limit Limit ledger (single track)
Composition of a whole, 2–3 parts Stacked bar, labelled
Composition of a whole, many parts Ranked bars — not a pie
How a total is built from its parts Waterfall bridge — parts must sum to the total
Relationship between two measures Scatter
The same comparison across groups Small multiples
Distribution shape Histogram or box plot

Read the full file on GitHub · 130 lines

Files

What ships with it

6 files 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. 18d ago Changed · -1 lines · +3 tokens per session 5955694131ed
  2. 1mo ago First seen · 131 lines · 131 tokens per session scan A a547aa940a56

Subscribe to this mod's changes

chart-design is a skill published in the GitHub repository Avinava/document-design-system (2 stars, last pushed 19d ago), licensed MIT. It adds 134 tokens to every session and 1,861 once invoked, about $0.0005 per session on Opus 5.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-31.

Related

Other skills, from other repositories

ui-ux-audit

Audits web UI and raises it from competent to exceptional. Catches what AI tools ship and people notice at once: broken or shifting layouts, cards and values off a shared line, orphaned words and lone grid items, drifting radii, gutters, ratios and component sizes, text overflow, missing states, poor contrast, small…

EnchStyle/ui-ux-audit-skill · 225 tokens

ui-ux-laws

Priority-ordered rulebook of core UX/UI laws, cognitive-psychology principles, Nielsen's usability heuristics, and accessibility requirements that Claude must actively apply (not just cite) whenever it designs, builds, redesigns, reviews, or critiques any user interface — websites, web/mobile apps, dashboards, forms…

AmirGhl/ui-ux-laws · 203 tokens

design-component

Design a UI component spec to the house quality bar (anatomy, variants, sizes, the 8 states, token mapping, and accessibility). Use when the user wants to design or document a component (button, input, tabs, toast, combobox, date picker, modal, etc.) at the spec level before or alongside code. For generating framework…

plugin87/ux-ui-agent-skills · 81 tokens

design-screen

Design or build a page, screen, landing page, website, app or UI from a request - the whole job, end to end. Use this for "design a landing page", "build a settings screen", "make me a website", "design the onboarding", "ออกแบบหน้าเว็บ", "ทำหน้า landing", "ออกแบบ UI", "ทำแอป". It runs the pipeline no single skill…

plugin87/ux-ui-agent-skills · 151 tokens

critique

Adversarial design critique of the current work. Render it, look at it, and argue for rejection. Run after the gates are green, never instead of them.

plugin87/ux-ui-agent-skills · 37 tokens

scaffold-project

Scaffold a new design-product project that matches the recommended Claude Code layout (the reference structure). Use when starting a fresh product/app that will be built with this design system.

plugin87/ux-ui-agent-skills · 39 tokens