openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > data analysis pro

Data analysis pro skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statis...

媒体与内容

作者:ChartGen AI @ chartgen-ai

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.4

统计:⭐ 0 · 151 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:chartgen-ai/data-analysis-pro

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's code, instructions, and requested environment variable are consistent with a cloud-backed data-analysis/visualization tool that uploads provided files/JSON to chartgen.ai for processing — the main risk is privacy (sending your data to an external service) rather than incoherence or hidden behavior.

目的

The name/description promise (analysis, interpretation, visualization) matches the provided scripts. The single required environment variable CHARTGEN_API_KEY is exactly what a remote ChartGen API client would need. The scripts prepare file or JSON input, call ChartGen services, and return results — this aligns with the stated purpose.

说明范围

The SKILL.md and scripts instruct the agent to read a local file or JSON and upload its contents (base64-encoded) to https://chartgen.ai/api/platform_api/. This is coherent with the skill's purpose but does mean any file you pass (including sensitive data) will be transmitted to the external service. The visualization script writes HTML to /tmp/openclaw/charts by default and embeds ECharts from a public CDN (jsdelivr), which will execute when …

安装机制

No install specification — instruction-only with included Python scripts. No remote installers or archive downloads are used. The code depends on the requests library, but no installer steps are provided (user environment must already have Python and requests).

证书

Only a single env var (CHARTGEN_API_KEY) is required, which is appropriate for calling an external API. No unrelated credentials, system paths, or secrets are requested.

持久

always is false and the skill does not request persistent system privileges or modify other skills. It writes output HTML to /tmp (or user-specified path) and does not alter agent configuration or other skills.

综合结论

This skill appears to do what it says, but be aware: it uploads the full contents of any file or JSON you provide to an external service at chartgen.ai. Before using it with real or sensitive data, verify the ChartGen service's trustworthiness, privacy policy, and data retention rules; limit the API key's permissions and billing/credit exposure; avoid sending PII or credentials; run in an isolated environment if needed; and be cautious opening…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「data analysis pro」。简介:Data analysis pro skill providing three core functions: data analysis, data int…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/chartgen-ai/data-analysis-pro/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: data-analysis-pro
description: |
  Data analysis pro skill providing three core functions: data analysis, data interpretation, and data visualization.
  
  **Use Cases**:
  (1) Data Analysis - Statistics, filtering, aggregation, calculation (e.g., "Calculate total sales", "Filter data greater than 100")
  (2) Data Interpretation - Trend analysis, pattern discovery, report generation (e.g., "Analyze sales trends", "Interpret data changes")
  (3) Data Visualization - Chart generation, data display (e.g., "Draw a bar chart", "Generate a pie chart")
  
  **Trigger Keywords**: analyze data, statistics, calculate, interpret trends, generate chart, visualize, plot
  
  **Prerequisites**: Set environment variable CHARTGEN_API_KEY (obtain from chartgen.ai)
metadata:
  openclaw:
    requires:
      env:
        - CHARTGEN_API_KEY
---

# 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](https://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](https://chartgen.ai). To begin with, you need to register for an account.

**Steps:**
1. Visit [chartgen.ai](https://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

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

### 3. Run Scripts

```bash
# 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](https://chartgen.ai/billing)

---

## 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:

```json
[
  {"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:

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

---

## Usage Examples

### Data Analysis

```bash
# 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

```bash
# 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

```bash
# 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: <api-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](https://chartgen.ai) before use