Skip to content
m4bwav edited this page Nov 11, 2026 · 3 revisions

chartwright

chartwright is a pair of agent skills that make charts from data. When you ask an AI coding agent for a chart, the chartwright skill picks the chart type from a knowledge base of 83 chart types. It then builds the chart for the place it will be read, renders it and checks the result. The second skill, chartwright-curate, adds to and corrects that knowledge base. Both lean on cw.py, a standard-library Python script that reads your CSV file itself, so the data does not have to pass through the model.

It writes 16 kinds of output. For Markdown there are Mermaid blocks, and for web pages Vega-Lite, ECharts, Plotly, Chart.js and Observable Plot. It also makes PNG and SVG images, editable PowerPoint and Excel charts, and a Word document with the chart as a picture. The rest are a Google Sheets chart request, PlantUML and D2 text, QuickChart image URLs and Unicode sparklines for a terminal. It is not a charting library and does not draw anything itself: the renderers do that, and most of them are optional.

It runs in Claude Code as a plugin, and in GitHub Copilot, Codex, Cursor and other agents that read SKILL.md skills.

Install

In Claude Code:

/plugin marketplace add https://github.com/m4bwav/chartwright.git
/plugin install chartwright@chartwright

Other agents, gh skill and the optional renderers are on Getting started.

The smallest example

Take this prices.csv.

date,price
2026-01-01,100
2026-02-01,104
2026-03-01,101
2026-04-01,110
2026-05-01,115
2026-06-01,112

From a clone of the repository, cw.py turns it into a sparkline for a terminal or a chat reply:

$ python scripts/cw.py build --chart line --target terminal --data prices.csv --x date --y price
price by date
▁▂▁▅█▆  100 -> 112 (min 100, max 115, 6 points, 2026-01-01 to 2026-06-01)

And a three-row regions.csv (North 200, South 225, East 130) into a Mermaid bar chart that GitHub, GitLab and Obsidian draw in place:

$ python scripts/cw.py build --chart bar --target mermaid --data regions.csv --x region --y sales
```mermaid
xychart-beta
    title "sales by region"
    x-axis ["North", "South", "East"]
    y-axis "sales" 0 --> 250
    bar [200, 225, 130]
```

With the skill installed you rarely type these yourself. You ask for "a bar chart of sales by region in the README", and the agent runs the same commands, looks at the result and puts it in place.

Pages

  • Getting started: read first. Every install route, the Python it needs, the optional renderers and a first chart.
  • How the skills work: what the agent does when each skill loads, step by step, and when it stops to ask.
  • How charts are picked and built: how pick scores chart types, how data reads a CSV, and what build does with duplicates, titles and errors.
  • Render targets: the 16 targets, which charts each one builds, what each needs installed, and where each has been tested.
  • Commands: every cw.py command and option, exit codes and where each message goes.
  • Recipes: a chart in a Markdown report, PowerPoint, Word, Excel, a web page, a PNG for slides, scripting pick.
  • Versions and upgrading: every release and how to update each kind of install.
  • FAQ: privacy, missing renderers, odd messages and install errors.
  • Development: the tests, the knowledge base's schema and checks, the evals and how a release is made.

Elsewhere

The current version is 0.8.4, tagged on 2026-10-03.

Works with other plugins

everscout, askwright, tokenwright: see Works with for what each pairing does.

Clone this wiki locally