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.
npx skills add xyva-yuangui/XyvaClaw --skill chart-imagegit clone --depth 1 https://github.com/xyva-yuangui/XyvaClawWrote 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.
[](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/chart-image)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
What it actually says
📊 chart-image(增强版)
✅ 状态:增强版已上线,功能完整。
功能
支持的图表类型(8种)
- 折线图 (line) - 时间序列数据
- 柱状图 (bar) - 分类数据比较(支持水平/堆叠)
- 饼图 (pie) - 比例分布
- 散点图 (scatter) - 相关性分析
- 面积图 (area) - 累积数据(支持堆叠)
- 热力图 (heatmap) - 矩阵数据可视化
- 箱线图 (box) - 数据分布统计
- 雷达图 (radar) - 多维数据比较
主题样式(3种)
- 默认主题 (default) - 白色网格,现代风格
- 深色主题 (dark) - 深色背景,适合演示
- 商务主题 (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 接口。
高级功能
- 主题系统:一键切换图表风格
- 配置灵活:支持多种图表选项
- 错误处理:友好的错误提示和降级方案
- 性能优化:生成时间 < 3秒
开发计划
- 今天 18:00:web-scraper 增强版
- 明天:browser-pilot 基础版
- 本周内:交互式图表支持(Plotly)
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.
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.
- 12d ago First seen · 79 lines · 70 tokens per session scan A f0e2c10dbbd3
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.
Other skills, from other repositories
skin-creator
Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.
music-search
Search cloud drives for downloadable music resources (songs, albums, lossless audio). Use this skill when the user wants to download a specific song or album. Do NOT use for general music information, lyrics, or recommendations.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
remotion-best-practices
Best practices for Remotion - Video creation in React.
openai-image-gen
Generate images with DALL-E 3 via OpenAI API. Use when user asks to create or generate images. Requires OPENAIAPIKEY.
blucli
Control Bluesound/NAD players: discovery, playback, volume, grouping, and TuneIn radio via blu CLI.