← 返回 Skills 市场
chartgen-ai

Data Analysis Pro

作者 ChartGen AI · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ 安全检测通过
343
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install data-analysis-pro
功能描述
Data analysis pro skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statis...
使用说明 (SKILL.md)

ChartGen Data Analysis

Data analysis skill based on ChartGen API, supporting natural language-based data analysis, interpretation, and visualization.

Overview

This skill enables codeless data analysis through natural language interaction. It supports Text2SQL, Text2Data, and Text2Code analysis. Simply provide Excel/CSV files or JSON data to automatically execute data queries, data interpretation, and data visualization (ChatBI).

The skill will intelligently parse time, metrics, and analytical dimensions through conversational queries, then generate SQL queries for data, create interactive BI charts, structured analysis reports. Optimized for standardized vertical datasets, powered by enterprise-grade analytics engine for reliable results.

API Service: This skill uses the ChartGen API service hosted at chartgen.ai. All data is sent to https://chartgen.ai/api/platform_api/ for processing.


Quick Start

1. Apply for an API Key

You can easily create and manage your API Key at chartgen.ai. To begin with, you need to register for an account.

Steps:

  1. Visit chartgen.ai and sign up for an account
  2. Access the API management dashboard
  3. Create a new API and set the credit consumption limit
  4. Copy the API Key for use

2. Configure Environment Variable

export CHARTGEN_API_KEY="your-api-key-here"

3. Run Scripts

# Data Analysis
python scripts/data_analysis.py --query "Calculate total sales by region" --file sales.xlsx

# Data Interpretation
python scripts/data_interpretation.py --query "Analyze sales trends" --file sales.xlsx

# Data Visualization
python scripts/data_visualization.py --query "Draw a bar chart of sales by region" --file sales.xlsx

Credit Rules

  • Calling a single tool consumes 20 credits
  • You get 200 free credits per month for free accounts
  • When credits run out, you can purchase more or upgrade your account on the chartgen.ai Billing page

Scripts Reference

Script Function Use Case
data_analysis.py Data Analysis Statistics, filtering, aggregation, calculation
data_interpretation.py Data Interpretation Trend analysis, pattern discovery, report generation
data_visualization.py Data Visualization Chart generation, data display

Parameters

Common Parameters

Parameter Required Description
--query Natural language query statement
--file Local file path (.xlsx/.xls/.csv), mutually exclusive with --json
--json JSON data (string or file path), mutually exclusive with --file

Visualization Specific Parameters

Parameter Description
--output, -o Output HTML file path (defaults to /tmp/openclaw/charts/)

Data Format

File Format

Supports .xlsx, .xls, .csv Excel and CSV files.

Note: Only one of --file or --json is needed. If both are provided, --file takes precedence. File types support both row-metric-column data files and column-metric-row data files.

JSON Format

JSON data should be an array format, where each element is a row of data:

[
  {"name": "Product A", "sales": 1000, "region": "East"},
  {"name": "Product B", "sales": 1500, "region": "North"},
  {"name": "Product C", "sales": 800, "region": "South"}
]

Or pass via file:

python scripts/data_analysis.py --query "Analyze the data" --json data.json

Usage Examples

Data Analysis

# Statistical calculation
python scripts/data_analysis.py --query "Calculate total and average sales by region" --file sales.xlsx

# Data filtering
python scripts/data_analysis.py --query "Filter products with sales greater than 1000" --file sales.xlsx

# Sorting
python scripts/data_analysis.py --query "Sort by sales in descending order" --file sales.xlsx

Data Interpretation

# Trend analysis
python scripts/data_interpretation.py --query "Analyze monthly sales trends" --file monthly_sales.xlsx

# Anomaly detection
python scripts/data_interpretation.py --query "Find and explain anomalies in the data" --file data.xlsx

# Comprehensive interpretation
python scripts/data_interpretation.py --query "Provide a comprehensive analysis of this data with key insights" --file report.xlsx

Data Visualization

# Bar chart
python scripts/data_visualization.py --query "Draw a bar chart of sales by product" --file sales.xlsx

# Line chart
python scripts/data_visualization.py --query "Draw a line chart of sales trends" --file trends.xlsx

# Pie chart
python scripts/data_visualization.py --query "Draw a pie chart of sales by region" --file sales.xlsx

# Save to specific path
python scripts/data_visualization.py --query "Draw a scatter plot" --file data.xlsx -o /path/to/chart.html

Output Description

Data Analysis & Data Interpretation

Returns Markdown format text results, including analysis conclusions, data tables, etc.

Data Visualization

  1. Console Output: ECharts configuration JSON
  2. HTML File: Can be opened in browser to view the chart

Error Handling

Common errors and solutions:

Error Message Cause Solution
CHARTGEN_API_KEY not set Environment variable not set export CHARTGEN_API_KEY="your-key"
API request timeout Request timeout Check network connection and retry
File not found File does not exist Check if file path is correct
credits are insufficient Insufficient credits Recharge or contact administrator

Technical Details

  • API Base URL: https://chartgen.ai/api/platform_api/
  • Authentication: Header Authorization: \x3Capi-key>
  • Request Format: JSON
  • Timeout: 60 seconds
  • Required Environment Variable: CHARTGEN_API_KEY

See scripts/chartgen_api.py for implementation details.


Privacy Notice

Data sent to remote API: This skill reads your provided data files (CSV/XLSX/JSON), base64-encodes them, and sends them to the ChartGen API at https://chartgen.ai/api/platform_api/ for analysis and chart generation. Your data will leave your machine.

Recommendations:

  • Do not upload sensitive or regulated data
  • Use a dedicated API key with limited scope/credits
  • Review the privacy practices at chartgen.ai before use
安全使用建议
This skill is internally coherent, but it sends whatever file or JSON you provide to https://chartgen.ai for processing. Before installing or running it: (1) Verify you trust chartgen.ai and review their privacy/billing policies (especially for sensitive data). (2) Restrict the CHARTGEN_API_KEY (use minimal-permission key and billing/credit limits). (3) Test with non-sensitive sample data first. (4) Ensure your environment has the Python 'requests' package available. (5) Note the skill will save generated HTML to /tmp/openclaw/charts by default—clean up if that is a concern. If you need an offline/air-gapped workflow, this skill is not suitable.
功能分析
Type: OpenClaw Skill Name: data-analysis-pro Version: 1.0.5 The skill provides data analysis and visualization by interfacing with the ChartGen API (chartgen.ai). While it reads local files and transmits their content to a remote endpoint, this behavior is the core stated purpose of the skill and is explicitly disclosed in the 'Privacy Notice' section of SKILL.md. The Python scripts (scripts/chartgen_api.py and the CLI wrappers) are well-structured, lack obfuscation, and contain no evidence of malicious intent, such as unauthorized data access or hidden execution logic.
能力评估
Purpose & Capability
Name/description (data analysis, interpretation, visualization) match the included scripts and the ChartGen API client. Required env var CHARTGEN_API_KEY aligns with the stated ChartGen integration.
Instruction Scope
Runtime instructions and scripts only read the provided --file or --json input, base64-encode file contents, and POST them to chartgen.ai endpoints. This is within scope but means user data (files/JSON) is transmitted to an external service—an expected but important privacy/coverage consideration.
Install Mechanism
No install spec (instruction-only with included scripts) — nothing is downloaded or installed by the skill itself. The code depends on Python standard libraries and the third-party 'requests' package; the skill does not declare or install dependencies automatically.
Credentials
Only CHARTGEN_API_KEY is required and is appropriate for an external API client. No unrelated credentials, config paths, or extra secrets are requested.
Persistence & Privilege
always is false and the skill does not alter other skills or system-wide settings. It writes output HTML files to /tmp/openclaw/charts by default, which is reasonable for a visualization tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install data-analysis-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /data-analysis-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
- No file changes detected in this release. - No updates or additions to functionality, documentation, or dependencies.
v1.0.4
- Skill name updated from "data-analysis" to "data-analysis-pro" - Documentation adjusted to reflect the new skill name throughout - No code or functionality changes detected - All usage instructions, parameters, and privacy guidance remain unchanged
v1.0.3
- Added comprehensive documentation for data analysis, interpretation, and visualization using the ChartGen API. - Detailed instructions for API key setup, script usage, and supported data formats (CSV/XLSX/JSON). - Included usage examples for various scenarios like statistical calculation, filtering, trend analysis, and chart generation. - Described credit rules, output formats, common parameters, and error handling for smoother setup and troubleshooting. - Provided privacy notice and best practices for secure data handling.
元数据
Slug data-analysis-pro
版本 1.0.5
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Data Analysis Pro 是什么?

Data analysis pro skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statis... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 343 次。

如何安装 Data Analysis Pro?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install data-analysis-pro」即可一键安装,无需额外配置。

Data Analysis Pro 是免费的吗?

是的,Data Analysis Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Data Analysis Pro 支持哪些平台?

Data Analysis Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Data Analysis Pro?

由 ChartGen AI(@chartgen-ai)开发并维护,当前版本 v1.0.5。

💬 留言讨论