Install
openclaw skills install @niu001007/data-bird轻量级数据分析 Agent。支持工作区表格与通过 http(s) 下载的 CSV/Excel,按自然语言生成 ECharts 与文字结论。(公开发布版说明)
openclaw skills install @niu001007/data-bird用途:分析 CSV / Excel,输出 ECharts JSON、Markdown/HTML/PDF 报告。适合与前端图表、Agent 工作台对接。
免费版限制:
数据来源:
http:// / https:// 链接 — 先下载到本机再分析路径请按你的 OpenClaw 部署替换下文中的
<WORKSPACE>(通常为OPENCLAW_WORKSPACE指向的目录)与<SKILL_DIR>(本 skill 安装目录,一般为<WORKSPACE>/skills/data-bird)。
web_fetch,用 exec: curl -fsSL 下载,再 --file 分析。reportMd / report_md、insight、artifacts。artifacts.reportHtmlPreviewUrl / reportPdfUrl / reportMdUrl → 在回复中直接给出可点击链接,不要只说“已保存到某路径”。<WORKSPACE>/databird/data/<WORKSPACE>/databird/output/| 用途 | 建议路径 |
|---|---|
| 下载落盘 | <SKILL_DIR>/data/<文件名>.csv 或 .xlsx |
| 工作区共享数据 | <WORKSPACE>/data/<文件名> |
| 报告输出目录 | <WORKSPACE>/databird/output/<job_id或时间戳>/ |
| 用户绝对路径 | 用户给出的绝对路径 |
--file 传该路径。http(s) URL →exec: mkdir -p <SKILL_DIR>/data
exec: curl -fsSL "<URL>" -o <SKILL_DIR>/data/table.csv
(按实际类型保存为 .csv / .xlsx / .xls。无后缀时根据响应或用户说明命名。)
<WORKSPACE>/data/、<SKILL_DIR>/data/ 等目录查找匹配的表格文件。exec: cd <SKILL_DIR> && python scripts/main.py --query "<分析问题>" --file "<本地路径或 data/xxx.csv>"
主要字段:charts、insight(conclusions / anomalies / suggestions)、reportMd 与 report_md(内容相同)、summary、artifacts。
artifacts 中会包含:
report_md_pathreport_html_pathreport_pdf_pathchart_pathschart_image_pathsreportHtmlPreviewUrlreportPdfUrlreportMdUrl问法提示:「占比」「趋势」「排名」「分布」「散点」等有助于选对图表类型。
HTTPS 表格
exec: mkdir -p <SKILL_DIR>/data
exec: curl -fsSL "https://example.com/data/report.csv" -o <SKILL_DIR>/data/report.csv
exec: cd <SKILL_DIR> && python scripts/main.py --query "趋势与对比" --file data/report.csv
工作区已有文件
exec: cd <SKILL_DIR> && python scripts/main.py --query "各品类占比" --file "<WORKSPACE>/data/sales.xlsx"
cd <SKILL_DIR> && pip install -r requirements.txt
PDF / 图表中文:skill 自带 fonts/SourceHanSansSC-Regular.otf(思源黑体),无需系统安装中文字体。若该文件缺失,见 fonts/README.md 一键下载说明。
config.yaml 中的 plan / daily_limit / enable_mysql 仅为默认体验配置;真正的 Pro 授权由 py_api 服务端校验。