chart-rendering
What it does
This skill picks the right chart type for a question and draws it as an image with a clear title and labels. It is for people who want a visual of an analysis instead of a long table.
When to use it
- βWhen you ask for a chart or a plot of a set of numbers.
- βWhen a result has many rows and would be easier to read as a picture.
- βWhen you want to see how a value changes over time.
Skill link
https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-dataagent/src/main/resources/shared/agents/data-agent/skills/chart-rendering/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlot our monthly signups for the past year as a line chart with a clear title and labeled axes.β
5 new skills a week. 1 minute to read.
How it works
The skill first matches the question to a chart type, such as line for change over time or bar for comparing categories. It then writes a short script that draws the chart and saves the image and the script together.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Chart Rendering Skill
Repeatable SOP for turning a result set into a chart that actually communicates the point.
Steps
Match chart type to question. Decide before drawing:
Question shape Chart "How does X change over time?" Line (single series) or multi-line "Composition / share of total" Stacked bar, or 100% stacked area "Comparison across a small set of categories" Bar (horizontal if labels are long) "Relationship between two numeric variables" Scatter "Distribution of a single variable" Histogram or box plot "Cumulative total" Area If none fit, ask the user which view they want β do not default to "any chart will do".
Prepare the data. The query result from the [[sql-analysis]] Skill should already be tidy (one row per data point, one column per dimension). If not, reshape first using pandas (
pivot,melt,groupby). Save the cleaned frame toknowledge/cache/<topic>.csvso it can be re-rendered.Render with matplotlib. Write the script to a file under
scratch/charts/<topic>.pyand execute it viashell_run. Conventions:- Title β one sentence answering the question (not "Untitled chart").
- Axes β label both, include units (
Active users (count),Date (UTC)). - Legend β include only if there is more than one series.
- Colours β use the matplotlib default palette unless the user has a
stated brand colour in
knowledge/style.md. - Output β save as PNG (
bbox_inches='tight',dpi=150) underknowledge/charts/<topic>.png.
Show and explain. In the assistant reply, link the saved image with a markdown image embed (
) and write 2β3 sentences interpreting it β what the chart shows, the one thing the user should take away, and any caveat (incomplete latest data point, outliers excluded, etc.).Keep the script reproducible. The chart file is the artefact; the script under
scratch/charts/<topic>.pyis the source of truth. If the user asks for a tweak ("can we use a log y-axis?"), edit the script and re-run β do not regenerate from scratch.
Anti-patterns
- β Pie charts with > 5 slices.
- β Charting raw counts when proportions are what the user actually asked.
- β A chart whose axes have no labels or unit.
- β Embedding the image without 2 sentences of interpretation.
When to delegate
If the user wants a multi-chart dashboard with narrative around it (e.g. "build
me a weekly product health deck"), spawn the report-writer sub-agent β
this Skill is for individual charts.
FAQ
What chart types does it use?
It can use line, stacked bar, bar, scatter, histogram, box plot and area charts, depending on the question.
What do I get back?
You get an image file and the script that made it.
What if no chart type fits?
The skill asks which view you want instead of guessing.
Details
Original description by the author
Visualise the result of an analysis as a chart (line, bar, area, scatter, etc.). Use when the user asks to "plot...", "chart...", "show me the trend of...", "visualise...", or when a numerical result has more than ~10 rows and would be easier to read as a picture. Produces an image file plus the script that generated it.
Popularity
- GitHub stars
- 6.2k
- Ranking position
- #14390
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agentscope-java
6.2kHelps your agent write non-blocking Java code for AgentScope, a multi-agent framework built on Project Reactor.
data-report
6.2kHelps your agent summarize a dataset into a report with averages, totals, ranges and trends, saved as a Markdown file.
data-transform
6.2kHelps your agent convert a data file between formats such as CSV and JSON, so the data can be used in other tools.
git-changelog
6.2kHelps your agent write a changelog or release notes from a Git history, grouped into features, fixes and other changes.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.