chart-image

chart-image is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 70 tokens per session (828 once invoked), scanned A, original, MIT.

A chart-making tool that turns data into PNG images. It supports line, bar, pie, scatter, area, heatmap, box, and radar charts in three visual styles.

In plain words
What is it for?
Use it to visualise trends, comparisons, proportions, relationships, distributions, matrices, or several measures at once. Charts can be created through the skill or its command-line script.
Why use it?
It removes the need to write chart code and style each graph by hand. It gives you a ready-to-use image for reports or presentations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to visualise trends, comparisons, proportions, relationships, distributions, matrices, or several measures at once. Charts can be created through the skill or its command-line script.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/chart-image
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 xyva-yuangui/XyvaClaw --skill chart-image
Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw

Made for: Claude Code, Codex.

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-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/chart-image/github.svg)](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/chart-image)
Your own site
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/chart-image"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/chart-image/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-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/chart-image"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/chart-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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.00070 $0.00828
Opus 5 $0.00035 $0.00414
Sonnet 5 $0.00014 $0.00166
Haiku 4.5 $0.00007 $0.00083

Measured 12d ago against content hash f0e2c10dbbd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

chart-image 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 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/chart.py, scripts/check.py, scripts/dataviz_wrapper.py), 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.

config-base/workspace/skills/chart-image/SKILL.md · 79 lines

What it actually says

📊 chart-image(增强版)

状态:增强版已上线,功能完整。

功能

支持的图表类型(8种)

  1. 折线图 (line) - 时间序列数据
  2. 柱状图 (bar) - 分类数据比较(支持水平/堆叠)
  3. 饼图 (pie) - 比例分布
  4. 散点图 (scatter) - 相关性分析
  5. 面积图 (area) - 累积数据(支持堆叠)
  6. 热力图 (heatmap) - 矩阵数据可视化
  7. 箱线图 (box) - 数据分布统计
  8. 雷达图 (radar) - 多维数据比较

主题样式(3种)

  1. 默认主题 (default) - 白色网格,现代风格
  2. 深色主题 (dark) - 深色背景,适合演示
  3. 商务主题 (business) - 专业风格,适合报告

输出格式

  • PNG 高清图片(300dpi)
  • 保存到 ~/.xyvaclaw/output/charts/

使用方法

通过技能调用

用户说"生成图表"或"数据可视化"时自动触发。

直接脚本调用

# 折线图
python3 scripts/chart.py --type line --data "1,3,2,5,4" --labels "Mon,Tue,Wed,Thu,Fri" --title "Weekly Sales"

# 柱状图(水平)
python3 scripts/chart.py --type bar --data "45,62,38,71" --labels "Product A,Product B,Product C,Product D" --horizontal

# 散点图
python3 scripts/chart.py --type scatter --x-data "1,2,3,4,5" --y-data "2,4,6,8,10" --title "Correlation"

# 热力图
python3 scripts/chart.py --type heatmap --data "[[1,2,3],[4,5,6],[7,8,9]]" --col-labels "X,Y,Z" --row-labels "A,B,C"

# 使用深色主题
python3 scripts/chart.py --type line --data "1,3,2,5,4" --theme dark

技术实现

基于 matplotlib + seaborn + numpy 实现,提供统一的 dataviz_wrapper 接口。

高级功能

  1. 主题系统:一键切换图表风格
  2. 配置灵活:支持多种图表选项
  3. 错误处理:友好的错误提示和降级方案
  4. 性能优化:生成时间 < 3秒

开发计划

  • 今天 18:00:web-scraper 增强版
  • 明天:browser-pilot 基础版
  • 本周内:交互式图表支持(Plotly)
Files

What ships with it

3 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. 12d ago First seen · 79 lines · 70 tokens per session scan A f0e2c10dbbd3

Subscribe to this mod's changes

chart-image is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 828 once invoked, about $0.0003 per session on Opus 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-30.