Agent skill
A skill is a Markdown file your coding agent reads before it works. The ChartslibraryUI skill teaches it which of the 54 charts fits a request, how to install it (free charts with no setup, Pro charts with your access key), and the data rules the charts expect, such as null for a missing value and no second y-axis. It's free and contains no source code, only what the chart pages say.
Install
Claude Code (project skill; use ~/.claude/skills/ to have it in every project):
mkdir -p .claude/skills/chartslibraryui
curl -o .claude/skills/chartslibraryui/SKILL.md https://chartslibraryui.com/skill.mdCursor, Codex and other agents: save chartslibraryui.com/skill.md in your project (for example as docs/charts-skill.md) and point your rules file (AGENTS.md, .cursor/rules) at it.
To update it, download it again: it changes when charts are added.
What's inside
- Install: the free install command, the
@chartslibraryuinamespace, and the Pro setup withCLUI_TOKEN. - Rules: data shape, missing values, percentages as fractions, takeaway titles,
favorable="down"for costs, one axis only, theming through CSS variables. - Every chart: what it's for, when not to use it (and what to use instead), and its data shape.
- Without Pro: the agent uses the closest free chart and tells you which Pro chart would fit better, instead of recreating a Pro chart by hand.
Try it
Ask your agent for something like "add a chart of monthly revenue vs plan with the forecast marked". With the skill it picks the line chart, installs it, and passes your data with null for months that haven't happened.
See also Using with AI agents for the shadcn MCP server, llms.txt and charts.json.