← 返回 Skills 市场
Chart Generator 2.0.0
作者
KongBai233
· GitHub ↗
· v1.0.0
· MIT-0
841
总下载
0
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install chart-generator-2-0-0
功能描述
Data visualization tool producing SVG charts. Use when you need bar charts, line charts, pie charts, tables, sparklines, gauges,.
使用说明 (SKILL.md)
Chart Generator
数据可视化图表生成器,通过 scripts/chart.sh 生成ASCII图表或HTML文件。
为什么用这个 Skill? / Why This Skill?
- 即开即用:一条命令直接出图,不需要安装matplotlib、echarts等复杂依赖
- 双输出:终端ASCII图表(方便命令行查看)+ HTML文件(方便分享和嵌入)
- 迷你趋势图:Unicode sparkline一行搞定趋势展示
- Compared to asking AI directly: produces actual runnable chart output (ASCII art + HTML files), not just code snippets you'd need to run yourself
使用方式
脚本路径:scripts/chart.sh(相对于本skill目录)
命令一览
# ASCII 柱状图
chart.sh bar "标签1:值1,标签2:值2,标签3:值3" [--title "标题"]
# ASCII 折线图
chart.sh line "1,5,3,8,2,7" [--title "趋势"]
# ASCII 饼图(百分比条形式)
chart.sh pie "A:30,B:50,C:20" [--title "分布"]
# 格式化表格
chart.sh table "H1,H2,H3|R1C1,R1C2,R1C3|R2C1,R2C2,R2C3"
# HTML 柱状图(内联SVG,无外部依赖)
chart.sh html-bar "A:30,B:50,C:20" --output chart.html
# 迷你趋势图(Unicode块字符)
chart.sh sparkline "1,5,3,8,2,7,4,9"
# 数据看板模板(多图表组合)
chart.sh dashboard "标题"
# 进度条可视化
chart.sh progress "已完成,总数" [--title "项目进度"]
# 趋势分析(折线+变化率+统计摘要)
chart.sh trend "10,15,12,20,18,25" [--title "月度增长"]
# ASCII热力图
chart.sh heatmap "1,2,3|4,5,6|7,8,9" [--title "活跃度"]
# SVG柱状图(生成.svg文件,可浏览器打开)
chart.sh svg-bar "销售报告" "Q1:120,Q2:180,Q3:95,Q4:210" [--color blue|green|red|rainbow]
# SVG饼图(扇形+图例+百分比标签)
chart.sh svg-pie "市场份额" "苹果:35,三星:25,华为:20"
# SVG折线图(坐标轴+数据点+面积填充)
chart.sh svg-line "月度趋势" "1月:100,2月:150,3月:120"
# 帮助
chart.sh help
See also: tips.md for data visualization best practices.
数据格式
- 键值对:
"标签:数值,标签:数值"— 用于 bar, pie, html-bar - 纯数值:
"1,5,3,8,2,7"— 用于 line, sparkline - 表格:
"列头1,列头2|行1值1,行1值2|行2值1,行2值2"— 管道符分隔行,逗号分隔列
选项
--title "标题"— 图表标题(bar, line, pie)--output file.html— HTML输出文件路径(html-bar)
输出示例 / Example Output
柱状图 (bar)
$ chart.sh bar "销售:85,市场:62,研发:93,运维:41" --title "部门预算(万)"
部门预算(万)
销售 ████████████████████░ 85
市场 ███████████████░░░░░░ 62
研发 ██████████████████████ 93
运维 ██████████░░░░░░░░░░░ 41
迷你趋势图 (sparkline)
$ chart.sh sparkline "3,7,2,8,5,9,1,6"
▃▆▁█▄█▁▅
💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com
Commands
Use chart-generator help to see all available commands.
安全使用建议
This skill appears to do what it claims: generate terminal ASCII charts and export SVG/HTML files. Before installing or running it: 1) note it will write SVG/HTML files in your current directory and create a data folder (default ~/.local/share/chart-generator) containing history.log; 2) it runs local shell and embedded Python code (python3 is invoked), so run it in a restricted or test environment if you have concerns; 3) there is no network activity or credential access requested, but review any CSV/JSON files you pass in (the scripts will read them); 4) minor packaging inconsistency: the internal _meta.json ownerId differs from the registry ownerId — likely harmless but worth checking if provenance matters. If you need extra caution, run the scripts in a container or review/execute them manually rather than allowing automatic agent invocation.
功能分析
Type: OpenClaw Skill
Name: chart-generator-2-0-0
Version: 1.0.0
The chart-generator skill bundle is a legitimate data visualization tool that provides scripts for generating ASCII, SVG, and HTML charts. The core logic in scripts/chart.sh and scripts/script.sh uses Bash and embedded Python to parse data and generate visual outputs without any network calls, credential access, or suspicious execution patterns. The code includes basic sanitization for filenames and focuses entirely on its stated purpose of rendering charts and maintaining a local history log.
能力评估
Purpose & Capability
Name/description (chart generation producing ASCII/SVG/HTML) aligns with the provided scripts (scripts/chart.sh and scripts/script.sh) which implement ASCII charts, SVG exports, HTML wrappers, CSV import, and templates. The included SVG example and help text match the stated capabilities.
Instruction Scope
SKILL.md explicitly instructs running scripts/chart.sh and describes accepted input formats; the runtime instructions match the shipped scripts. Note: the scripts read local files when asked (CSV/JSON), create SVG/HTML files in the current directory, and the helper script writes to a data directory (~/.local/share/chart-generator by default). There are no steps that read unrelated system secrets or call external endpoints.
Install Mechanism
No install spec is provided (instruction-only install), and the package includes shell and Python scripts only. No remote downloads or archive extraction are performed by an installer. The embedded Python runs inline in chart.sh and writes files locally; this is expected for a self-contained script-based tool.
Credentials
The skill declares no required environment variables or credentials. At runtime the scripts use CHART_DIR/XDG_DATA_HOME/HOME to determine a data directory (normal behavior for local tooling). There are no requests for unrelated secrets or tokens.
Persistence & Privilege
The scripts create a data directory (default: ${XDG_DATA_HOME:-$HOME/.local/share}/chart-generator) and append a history.log entry for each chart created. The skill does not request always:true and does not modify other skills. Users should be aware it will write files to their home directory and the current working directory.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chart-generator-2-0-0 - 安装完成后,直接呼叫该 Skill 的名称或使用
/chart-generator-2-0-0触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Chart Generator 2.0.0.
- Generate various chart types (bar, line, pie, table, sparkline, gauges) as ASCII art or HTML/SVG files.
- No need for complex dependencies; generate charts with simple commands.
- Dual outputs: visually rich terminal ASCII art and shareable HTML/SVG files.
- Supports mini trendlines, dashboards, progress bars, heatmaps, and more.
- Includes multi-language documentation and usage examples.
元数据
常见问题
Chart Generator 2.0.0 是什么?
Data visualization tool producing SVG charts. Use when you need bar charts, line charts, pie charts, tables, sparklines, gauges,. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 841 次。
如何安装 Chart Generator 2.0.0?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chart-generator-2-0-0」即可一键安装,无需额外配置。
Chart Generator 2.0.0 是免费的吗?
是的,Chart Generator 2.0.0 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Chart Generator 2.0.0 支持哪些平台?
Chart Generator 2.0.0 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chart Generator 2.0.0?
由 KongBai233(@kongbai233)开发并维护,当前版本 v1.0.0。
推荐 Skills