Xpersona
S

smart-charts

CLAWHUB · Unverified

32 types of charts, 3 themes, generate in 2 steps: 1. Upload data — drag and drop data files in CSV / Excel / JSON and other formats into the dialog box; 2. View results — interactive charts (HTML), and you can save the charts as images. Skill: smart-charts Owner: neuhanli Summary: 32 types of charts, 3 themes, generate in 2 steps: 1. Upload data — drag and drop data files in CSV / Excel / JSON and other formats into the dialog box; 2. View results — interactive charts (HTML), and you can save the charts as images. Tags: latest:8.3.1 Version history: v8.3.1 | 2026-09-11T13:25:44.490Z | user - Documentation update: Removed the skill-card.md file. - No

62
Rank
84
Safety
3.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 3.6K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s170fra97dyryvewpm8k1555p983efvx:smart-charts
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-neuhanli-smart-charts/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: smart-charts
version: 8.3.1
display_name: 智能图表
display_name_en: Smart Charts

description_zh: "将数据文件(CSV/TSV/TXT/XLSX/XLS/JSON)转化为独立交互式 ECharts HTML 图表——32 类图表、3 套主题,全离线无需 CDN。每张图内置事实卡(plot_stats + data_preview),其数值是解读时唯一可引用的数字:这是带可溯源事实的图表生成,不是数据分析或报告撰写。触发:用户提供或指向表格数据文件并要求出图;提到「画图/出图/可视化/生成图表/generate a chart/make a graph」;想把表格渲染成交互式 HTML 图表。不触发:要的是书面报告、叙事分析或幻灯片;没有数据文件;需要后端的仪表盘;图片/音频/视频等非表格内容。"
description_en: "Turn a data file (CSV/TSV/TXT/XLSX/XLS/JSON) into standalone interactive ECharts HTML charts - 32 chart types, 3 themes, fully offline with no CDN. Each chart ships with an embedded fact sheet (plot_stats plus data_preview) whose numbers are the only values an agent may quote in its caption: this is chart generation with traceable facts, not data analysis or report writing. TRIGGER: user supplies or points to a tabular data file and wants a chart; asks to 画图/出图/可视化/生成图表/generate a chart/make a graph; wants a table rendered as an interactive HTML chart. DO-NOT-TRIGGER: wants a written report, narrative analysis or slide deck; no data file is supplied; dashboards needing a backend; images, audio, video or other non-tabular content."
license: MIT
compatibility: "Python 3.11+; requires pandas>=3.0.1,<4, numpy>=2.4.3,<3, openpyxl>=3.1.5,<4, xlrd>=2.0.1,<3; no network access needed (ECharts JS bundled offline); install with: pip install -r requirements.txt; verify with: python scripts/cli.py --doctor"
metadata:
  author: smart-charts
  version: 8.2.2
  input_formats: ["csv", "tsv", "txt", "xlsx", "xls", "json"]
  output_format: html
  sandbox: "LLM-generated transform code runs in a restricted sandbox (keyword blacklist + AST whitelist + safe builtins); file and network I/O are blocked at the attribute and module-path level. No user confirmation required."
---

# Smart Charts

> 将数据文件(CSV/Excel/JSON)转化为交互式 ECharts HTML。支持 32 种图表类型、3 套主题预设(default/classic/dark)、多文件合并、LLM 数据转换代码(沙箱执行)。
> CLI 全参数、flags 语义、多图/多文件细节、能力边界、错误码表、交付解读完整规范、FAQ 见 [REFERENCE.md](./references/REFERENCE.md)。

***

## Activation Triggers

**TRIGGER**

* 用户提供 / 指向一个表格数据文件,要求出图、可视化、生成图表
* 用户提到「画图」「出图」「生成图表」「数据可视化」「chart」「visualization」

**DO-NOT-TRIGGER**(命中任一条请改推其他技能,不要硬接)

* 要的是带结论叙事的报告/周报/复盘/汇报文档 → 用报告类技能(本技能只出图 + 可溯源事实)
* 没有数据文件(纯文字描述、口头想法)
* 需要后端的 dashboard、图片/音频/视频等非表格内容
* 地图渲染:内置仅中国省级(`china`);全球/国外/市级等需用户自备 GeoJSON 文件(`--geo-path`),本技能不代为下载

***

## 契约(5 条,MUST)

1. 列名解析后会被规范化:转小写、特殊字符→`_`(如 `总学时`→`总_学时`),中文保留;`--x-axis`/`--y-axis`/transform 必须引用规范化后的列名
2. transform 沙箱:可用变量仅 `df`/`pd`/`np`(`np.select`/`np.where` 可用),支持多语句(`;` 或换行分隔),必须产出名为 `result` 的 DataFrame;禁止 import/open/try/类定义(黑名单 + AST 白名单强制校验,违规返回带 `suggestion` 的错误)
3. pie/bar 等按「1 个分类列(name) + 1 个数值列(value)」读数据;分类频次图先用 transform 聚合成 name/value 两列,再指定 `--x-axis name --y-axis value`
4. 成功时 stdout:`success`/`html_path`/`chart_type`/`title`/`source_rows`/`plotted_rows`/`unique_entities`/`data_rows`/`data_preview`(绘图数据前 10 行,口径校对用)/`annotation_source`/`plot_stats`(绘图数据完整统计摘要,写解读用;32 类全覆盖)
5. **校对口径直接读 stdou

_meta.json

{
  "ownerId": "kn79pyxtj74g738ryrh52tmxb582y1bh",
  "slug": "smart-charts",
  "version": "8.3.1",
  "publishedAt": 1789133144490
}

references/REFERENCE.md

# Reference

Detailed reference for installation, capability boundaries, CLI usage, programmatic API, and delivery annotation. For the contract, hard constraints, chart type table, and transform templates, see [SKILL.md](../SKILL.md).

---

## Installation

```bash
pip install -r requirements.txt
```

Dependencies (compatible ranges, no longer `==` pinned): `pandas>=3.0.1,<4.0.0`, `numpy>=2.4.3,<3.0.0`, `openpyxl>=3.1.5,<4.0.0`, `xlrd>=2.0.1,<3.0.0`. ECharts JS is bundled in `assets/` (no CDN, fully offline).

Environment self-check: `python {skill_base}/scripts/cli.py --doctor` — prints a version matrix (Python / pandas / numpy / openpyxl / xlrd: required minimum vs installed vs `ok`) plus `assets/` integrity, as JSON. Read-only: parses no data and writes no files. Run it before blaming the skill when versions have drifted; to reproduce an exact old environment, `pip install pkg==<installed version from --doctor>`.

Self-test (developer): `python {skill_base}/scripts/regression_check.py` — end-to-end regression suite (real CLI subprocesses): validator unit tests incl. sandbox escape PoCs, all parsers, 32 chart types, multi-chart mode, flags/themes/lang, transform golden patterns, error paths, plus the P0/P1/P2 fix cases (sandbox closure, total-row exclusion, trend ordering, gauge target, grain reconciliation, column-name collision). Test data goes to a temp dir; exit 0 = all pass.

---

## Capability Boundaries

**Supported:** CSV (.csv=comma / .tsv=tab / .txt=auto-detect delimiter), Excel (.xlsx/.xls), JSON (.json,支持 1 层嵌套对象,自动展开为「父.子」点分列,列名规范化后为「父_子」); 32 chart types (see SKILL.md); 3 themes (`--theme default|classic|dark`); multi-file auto-merge (recommended ≤ 10 files); single file ≤ 100 MB (≤ 50 MB recommended); auto-detects UTF-8/GBK/GB2312/UTF-16/Latin-1.

**Not supported:** Databases (export to CSV first), real-time/streaming data, >100 MB files, nested JSON >1 level, non-tabular data (images/audio/video). Auto-merge requires ≥50% column overlap.

**Map capability (map / lines):** only the offline **China province-level** GeoJSON is bundled (`assets/china.json`, auto-registered as `map: "china"`). Region names must be Chinese province full names or common short names (北京/广东/新疆/内蒙古…), normalized via `_REGION_ALIASES`; non-matching names are skipped and disclosed in `plot_stats.extra.unmatched`. World maps, city-level maps, or custom regions are **not supported** (would require bundling additional GeoJSON, which is out of scope).

**Network requirement:** None. ECharts JS is bundled in `assets/` and inlined into each HTML output; charts render fully offline with no external dependencies.

**Security:** transform 代码由沙箱强制校验(关键字黑名单 + AST 白名单 + 安全 builtins + 危险属性名/模块路径封禁),违规会返回带 `suggestion` 的结构化错误,按提示修正重试即可,无需用户确认。除裸名关键字外,`pd.read_csv`/`np.save`/`to_pickle` 这类属性名,以及 `pd.io.*` / `np.lib.*` 整棵子树(`pd.io.common.get_handle`、`np.lib.format.open_memmap` 等文件与网络句柄工厂)均在 AST 层被拦。机制细节见下方 Transform Code Generation。

---

## Data Parsing — CLI Reference

>

skill-card.md

## Description:

Smart Charts turns CSV, TSV, TXT, Excel, or JSON tabular data into standalone offline interactive ECharts HTML charts with embedded fact sheets.

This skill is ready for commercial/non-commercial use.

## Publisher:

[neuhanli](https://clawhub.ai/user/neuhanli)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and data-focused agents use this skill to convert supplied tabular files into interactive HTML charts, choose among supported chart types, and return captions grounded in the generated plot statistics. It is not intended for narrative reports, slide decks, backend dashboards, or non-tabular media.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated pandas/numpy transform code is executed locally in-process with weak resource containment.

Mitigation: Review transform code before execution and use subprocess or container isolation with CPU and memory limits in shared or production environments.

Risk: Untrusted or unexpectedly large tabular inputs can increase parsing and transform risk.

Mitigation: Use trusted input files, keep output directories explicit, and avoid files outside the documented size and format boundaries.

## Reference(s):

- [Smart Charts reference](artifact/references/REFERENCE.md)
- [ClawHub skill page](https://clawhub.ai/neuhanli/skills/smart-charts)

## Skill Output:

**Output Type(s):** [HTML files, JSON summaries, Shell commands, Guidance]

**Output Format:** [Standalone interactive HTML charts with JSON CLI output and concise Markdown delivery text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Charts are generated offline with bundled ECharts assets; successful runs include data previews and plot statistics for caption grounding.]

## Skill Version(s):

8.3.1 (source: SKILL.md frontmatter, server release metadata, target metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

requirements.txt

# Smart Charts - 依赖声明(兼容区间)
# 安装方式: pip install -r requirements.txt
#
# 说明:
#   - 仅声明直接依赖;传递依赖(python-dateutil/six/et-xmlfile)由 pip 自动解析
#   - 用 >=下限,<下一个大版本 的区间,不再用 == 精确锁定:
#       * == 会在共享环境里静默重写他人已装的依赖(本机实测即存在 3.0.5/2.5.2 与
#         3.0.1/2.4.3 两套漂移),且版本漂移没有任何诊断入口
#       * 下限保持原锁定版本(已验证可用);上限定在下一个大版本之前,
#         避免被 pandas 4.x / numpy 3.x 的破坏性变更打断
#   - 环境自检:python scripts/cli.py --doctor(打印版本矩阵 + 资产完整性)
#   - 需要精确复现旧环境时,按 --doctor 输出的版本号手工 pip install pkg==x.y.z

# 核心依赖 (必需)
pandas>=3.0.1,<4.0.0
numpy>=2.4.3,<3.0.0
openpyxl>=3.1.5,<4.0.0
xlrd>=2.0.1,<3.0.0

Sponsored

Ads related to smart-charts and adjacent AI workflows.