微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

AI一键生成专业图表与报告

Analysis Data · v1.0.6
办公 安全 A 级 作者 chartgen-ai 公开目录收录
985 下载 0 安装 2k 收藏 20 浏览

简介

AI驱动的数据可视化与分析平台,支持全类型图表、数据洞察、报告生成,无需编程即可创建专业可视化。

原始描述

Use this skill when the user wants to create visualizations (charts, dashboards, diagrams, Gantt, PPT), analyze data (Excel/CSV upload, cross-file analysis,...

通过你的 Agent 添加

安装目录:chartgen/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/analysis-data/
Codex CLI~/.codex/skills/analysis-data/
DeepSeek Harness~/.agents/skills/analysis-data/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

ChartGen是一款专用于数据可视化、分析和报告生成的AI技能。用户可通过自然语言描述需求,上传Excel/CSV/TSV文件,或结合多文件进行交叉分析,快速生成专业级图表、仪表盘和PPT报告。核心工作流包含五步:确认用户需求→通知用户并提交任务→后台轮询等待→处理完成状态→交付结果(文字摘要+可视化文件+编辑链接)。支持全系列ECharts图表类型(柱状图、折线图、饼图、热力图、桑基图等)以及流程图、甘特图、思维导图等专用图表,还能输出多页PPT演示文稿。

显著优点

技术架构安全可靠:该skill采用零外部依赖设计,仅使用Node.js内置模块(https/fs/os/path/url),从根本上消除了供应链攻击风险,依赖审计得分达100分。所有网络通信强制HTTPS加密,实现完善的输入验证机制(task_id、文件路径、channel等均通过正则校验)。

功能覆盖全面:支持20+种图表类型、多文件关联分析、异常值检测、同比趋势计算等高级分析功能,输出格式涵盖PNG图片、可编辑PPT、Excel数据文件及HTML富文本。

用户体验优化:内置多语言响应能力,强制确认机制防止误操作,背景轮询避免阻塞等待,结果自动保存本地并提供在线编辑链接。

潜在缺点与局限性

网络边界限制:所有数据处理必须发送至chartgen.ai云端服务,不支持私有化部署或自定义API端点,对数据合规要求极高的企业场景存在局限。

异步处理耗时:复杂PPT生成需等待10-20分钟,大文件分析可能接近25分钟超时上限,实时交互体验受限。

下载URL验证待完善:安全报告指出下载结果文件时仅校验HTTPS协议,未对目标域名实施白名单限制,存在潜在的SSRF风险(已披露并记录)。

文件格式支持有限:当前仅支持CSV/XLS/XLSX/TSV四种格式,不支持JSON、Parquet等现代数据格式。

适合的目标群体

  • 商业分析师与数据运营人员:快速制作销售趋势、用户画像、KPI仪表盘
  • 产品经理与项目经理:生成甘特图、流程图、产品路线图PPT
  • 学术研究人员:绘制统计图表、实验数据可视化、论文配图
  • 企业管理人员:自动化周报/月报生成,多部门数据整合分析
  • 教育培训从业者:制作课件图表、学员成绩分析、在线评测报告

使用风险

性能风险:大文件上传受网络带宽限制,超时失败需重新提交;建议预处理数据控制单文件大小。

数据隐私风险:用户数据需上传至第三方云服务,虽经TLS加密传输且明确告知用户,但敏感行业(金融、医疗、政府)需评估合规性。

依赖服务可用性:完全依赖chartgen.ai平台稳定性,服务中断将导致功能不可用,建议关键业务场景准备备用方案。

API Key管理:需用户自行配置CHARTGEN_API_KEY,密钥泄露可能导致未授权使用,建议使用专用密钥并定期轮换。

技能正文


name: chartgen description: > Use this skill when the user wants to create visualizations (charts, dashboards, diagrams, Gantt, PPT), analyze data (Excel/CSV upload, cross-file analysis, trends, outliers) or generate reports. Also use when the user mentions ChartGen or uploads spreadsheet files. user-invocable: true homepage: https://github.com/chartgen-ai/chartgen-skill metadata: openclaw: primaryEnv: CHARTGEN_API_KEY requires: runtime: - node >= 14

ChartGen AI — Data Analysis & Visualization Skill

ChartGen is an AI platform for visualization, data analysis and report generation. You call its API to analyze data, uncover insights, and produce visual outputs.

Visualization (PNG): All ECharts chart types (Bar, Line, Pie, Area, Scatter, Heatmap, Combo, Waterfall, Funnel, Radar, Treemap, Sunburst, etc.); Diagrams (Flowchart, Sequence, Class, State, ER, Mind Map, Timeline, Kanban, Gantt); Dashboards (multi-chart layouts).

Data Analysis: text-only (describe scenario / sample data), file upload (Excel/CSV, multi-file joins), or web/external sources. Supports stats, trends, outliers, YoY.

Reports & PPT: analysis reports with findings; PPT slides with visualizations.


Tool — tools/chartgen_api.js

Command Args Purpose
submit <request.json> Submit request → returns task_id
wait <task_id> Poll until done (~25 min max)
poll <task_id> Single status check
run <request.json> Submit request and poll until done
  • Request JSON shape: { "query": "...", "channel": "Web", "files": ["/absolute/path/data.xlsx"] }.
  • query: confirmed user request text.
  • channel: messaging channel name using letters, numbers, spaces, dots, underscores, or hyphens.
  • files: optional array of absolute paths to selected files.
  • Supported files: .csv, .xls, .xlsx, .tsv.
  • Network boundary: this helper sends the confirmed prompt and selected files only to https://chartgen.ai. Custom API endpoints are not supported.
  • Output: JSON with text_reply, edit_url, artifacts[] (artifact_id, image_path, title).
  • PPT artifacts also have: page_count, preview_paths[], download_path.
  • Excel/file artifacts also have: download_path, file_name, summary.
  • On error: JSON with "error" and "user_message" (for non-special errors).

Workflow — 5 Steps

STEP 1 — Confirm Before Submitting

Always respond in the user's language. Must mention using ChartGen to complete the task, and include numbered options, each on its own line:

1 ✅ Go ahead 2 ✏️ Modify 0 ❌ Cancel

Confirmation rules:

  1. Cancel = abandon forever. Never proceed with a cancelled task.
  2. Replies bind to the most recent prompt only. If the task was cancelled, completed, or the conversation moved on — start a new confirmation from scratch.
  3. When in doubt, ask — never guess.

Query rule — text requests (no files): The request JSON query field is always the user's original message, copied word-for-word. Do NOT translate, rephrase, expand, polish, or "improve" it in any way. Show this exact text in the confirmation. If user confirms → submit this exact text. If user edits → the edited text becomes the new verbatim query.

File upload: Do NOT submit immediately. Recommend 3–5 analysis tasks (numbered, noting which files). Each option's text is the exact query that will be submitted. User picks a number, types custom text, or cancels.

Text request example (reply in user's language, mention ChartGen):

Sure! Here's what I'll ask ChartGen to do for you: 📊 "Generate a monthly sales trend line chart for 2025" 1 ✅ Go ahead 2 ✏️ Modify 0 ❌ Cancel

File upload example (reply in user's language, mention ChartGen):

Got your files! Here are a few things ChartGen can do — pick one or tell me what you'd like: 1. 📊 "Monthly order trend chart" — orders.xlsx 2. 🥧 "Category breakdown pie chart" — orders.xlsx, products.xlsx 3. 📋 "Full analysis report with all files" 0. ❌ Cancel Or just type your own request!


STEP 2 — Notify User, Then Submit

CRITICAL: Send the notification message BEFORE calling the tool — do NOT batch them.

Notify (adapt to language and context):

  • Text-only: "ChartGen is working on your request, ~1–2 min..."
  • With files: "ChartGen is analyzing your data, ~2–5 min..."
  • PPT: "ChartGen is generating your PPT, ~10–20 min, please be patient..."

Then create a temporary request JSON file: Use a platform file-write API or other structured file operation. Do not create this JSON file with a shell command containing the user's query, and do not put the query, channel, or data file paths directly into the shell command.

Use an agent-generated temporary filename with safe characters, for example /tmp/chartgen_request_20260506_112900.json.

Request JSON:

{
  "query": "confirmed user text from STEP 1",
  "channel": "Web",
  "files": ["/absolute/path/data.xlsx"]
}

Omit files when no files are selected.

Then call the tool with only the request file path:

node tools/chartgen_api.js submit /tmp/chartgen_request_20260506_112900.json

The shell command must contain only the fixed command words and the agent-generated request JSON path.

Save the returned task_id for STEP 3.

Error handling:

  • "api_key_not_configured" → Tell user to get a key at https://chartgen.ai/chat → Menu → API, then set via export CHARTGEN_API_KEY="key" or save to ~/.chartgen/api_key. Stop here.
  • "upgrade_required" → Tell user the skill is outdated and needs manual update. See references/upgrade-skill.md for the message template. Stop here.
  • Any other error → Show the user_message field to the user. Stop here.

STEP 3 — Background Polling

Choose based on platform capabilities:

Before using any task_id, confirm it matches only letters, numbers, dots, underscores, or hyphens. If it does not, stop and report the invalid task ID instead of running a command.

A. Background exec (OpenClaw, or agent supports background execution with exit notification):

{ "tool": "exec", "params": { "command": "node tools/chartgen_api.js wait {task_id}", "background": true } }

When done, read output → STEP 4.

B. Cron (generic): poll every 90s with poll {task_id}. On terminal status (finished/error/not_found), remove cron → STEP 4. Timeout after 25 min.

C. Inline (last resort): run wait {task_id} synchronously → STEP 4.

If user asks to check a task: run poll {task_id} and report.


STEP 4 — Handle Completion

Read the output JSON status:

  • "finished" → Proceed to STEP 5. Artifacts are already saved to local image_path / download_path.
  • "error" → Show error to user, suggest retry.
  • "not_found" → Task expired, offer new request.
  • "timeout" → Inform user, offer manual check: "Check task {task_id}".

STEP 5 — Deliver Results

  1. Summarize text_reply — extract key points from ChartGen's analysis and present them concisely to the user. Keep it clear and informative.

  2. Send artifacts:

    • Charts/Dashboards/Diagrams: send image at image_path with title as caption.
    • PPT: tell user page count, send each preview_paths image, send .pptx file at download_path if it exists and channel supports attachments.
    • Excel/file: show summary (columns, rows), send file at download_path if it exists and channel supports attachments.
  3. Show edit_url — link to edit on ChartGen.

  4. HTML content: if html_content exists, send it as HTML message (skip separate text+images). Still show edit_url.

  5. Suggest next steps: "You can ask me to generate another visualization!"


Rules

  • Always respond in the user's language.
  • Always confirm before submitting — never call the tool without explicit confirmation.
  • Tell the user that confirmed prompts and selected files are sent to https://chartgen.ai.
  • Never expose API key. Never fabricate visualizations.
  • Prefer background/cron polling over blocking. Clean up crons after completion.
  • Always use image_path from results, never show raw base64.
  • Each request is independent — don't suggest modifying previous charts.
  • NEVER skip STEP 5 items: always summarize text_reply, send artifact images/files, show edit_url, and suggest next steps — even when artifacts are present.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

data-analysisvisualizationchartsbusiness-intelligencereportingppt-generationexcelcsvechartsdashboard

同类 Skill