microsoft/chart-builder
Use this skill whenever the user asks to visualize, chart, plot, or graph data (bar, line, scatter, histogram, pie) from a CSV, table, or DataFrame. It gives the agent prebuilt, parameterized matplotlib functions so charts are produced faster and more reliably — with consistent styling and sane defaults — instead of hand-writing matplotlib each time.
npx skills add https://github.com/microsoft/cat-agent-skills --skill chart-builder
Generate charts from tabular data via the bundled scripts/charts.py toolkit.
Each function takes a DataFrame or a file path plus the columns to plot, and
saves a PNG (returning the path). It handles theming, figure sizing, label
rotation, NaN dropping, legend placement, and saving.
.csv / .tsv /.json file.
bar(data, x, y) — one value per category (horizontal=True for barh)grouped_bar(data, x, y, group) — value per category split by group(stacked=True to stack)
line(data, x, y, group=None) — value over an ordered axis, one line pergroup
scatter(data, x, y, group=None, size=None) — two numeric columnshistogram(data, y, bins=20, group=None) — distribution of one columnpie(data, x, y, donut=False) — share of y per category xtitle, xlabel, ylabel (derivedfrom column names if omitted), out (default "chart.png"; pass None to
skip saving), dpi (default 150), figsize, palette.
references/cheatsheet.md forfull signatures and a chart-selection table.
Import:
from charts import bar, line, pie
bar("sales.csv", x="region", y="revenue", title="Revenue by region",
out="revenue.png")
CLI:
python scripts/charts.py grouped_bar sales.csv \
--x region --y revenue --group quarter --stacked --out by_quarter.png
scripts/charts.py — the toolkit: load_data, apply_theme, save_fig, andsix chart functions (bar, grouped_bar, line, scatter, histogram,
pie), plus a CLI. Depends on matplotlib and pandas; runs headless.
references/cheatsheet.md — chart-selection table, full signatures, andcopy-paste CLI examples.
assets/sample_sales.csv — a small demo dataset that exercises every chart.out and dpi).Take microsoft/chart-builder from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.