← 返回 Skills 市场
davaded

Echarts Chart Skill

作者 davaded · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
809
总下载
0
收藏
4
当前安装
2
版本数
在 OpenClaw 中安装
/install echarts-ai-skill
功能描述
Generate charts from natural language or tabular data, recommend chart types, and export ECharts-based HTML or SVG. Use when users ask for one-sentence chart...
使用说明 (SKILL.md)

ECharts Chart Skill

Use this skill when the user wants chart output from a short description or from table-like data.

Workflow

  1. Translate the user's request into a ChartRequest JSON object.
  2. If the chart type is unclear, run the recommendation command first.
  3. Run the generation command to produce a stable ECharts option.
  4. Run the render command when the user wants an embeddable html or svg.

Files

  • Core types: src/types/chart.ts
  • Chart recommendation: src/core/recommend.ts
  • Option generation: src/core/spec-to-option.ts
  • Rendering: src/core/render.ts
  • Sample input: examples/study-progress.request.json
  • Universal metadata: manifest.yaml, agents/openai.yaml

Setup

npm install

Output rules

  • --out writes to an exact file path.
  • --out-dir writes the default file into a directory you choose.
  • desktop and home are valid aliases for --out-dir when the user explicitly asks for those locations.
  • ~ is expanded to the current user's home directory.
  • If no output path is provided, files default to the current working directory.

Commands

node dist/cli/recommend-chart.js --input examples\study-progress.request.json
node dist/cli/generate-chart.js --input examples\study-progress.request.json
node dist/cli/render-chart.js --input option.json --format html
node dist/cli/render-chart.js --input option.json --format svg --out D:\reports\study-chart.svg

Default output filenames:

  • Recommendation: spec.json
  • Option: option.json
  • HTML preview: preview.html
  • SVG preview: preview.svg

ChartRequest shape

{
  "title": "Monthly study completion",
  "dataset": [
    { "day": "2026-03-01", "completionRate": 62, "targetRate": 75 },
    { "day": "2026-03-02", "completionRate": 68, "targetRate": 75 }
  ],
  "goal": "trend",
  "xField": "day",
  "yField": "completionRate",
  "series": [
    { "name": "Completion", "field": "completionRate" },
    { "name": "Target", "field": "targetRate" }
  ]
}

Guidance

  • Prefer deterministic field mapping over free-form inference when the user has already named fields.
  • For pie charts, keep one category field and one metric field.
  • For scatter charts, require numeric xField and yField.
  • If the user only gave natural language, construct the smallest valid ChartRequest before calling scripts.
  • If the user needs a report artifact, render html first and svg second.
安全使用建议
This skill appears to do what it says: recommend chart types, build ECharts options, and export HTML/SVG. Before installing or running it: (1) run npm install in the repository (renderSvg requires the echarts npm package); (2) review package.json / package-lock.json if you want to validate dependencies; (3) be aware that CLI commands read any --input file you provide and can write files to paths you allow (including Desktop / home); (4) the HTML preview references echarts from jsDelivr (a public CDN) — the HTML includes your chart data inline but does not itself exfiltrate it; (5) if you will process sensitive data, run the skill in a sandboxed environment or inspect the code and dependencies first.
功能分析
Type: OpenClaw Skill Name: echarts-ai-skill Version: 0.1.1 The ECharts AI Skill is a legitimate toolkit designed to generate and export data visualizations. The code provides a structured workflow for recommending chart types, generating ECharts options, and rendering them into HTML or SVG files. While the CLI tools in 'dist/cli/args.js' allow writing to sensitive locations like the user's home or desktop directories, this behavior is explicitly documented in 'SKILL.md' and 'README.md' as a feature for exporting chart artifacts. No evidence of data exfiltration, malicious code execution, or harmful prompt injection was found; the only external network reference is a standard ECharts CDN link in the generated HTML output.
能力评估
Purpose & Capability
Name/description match the code and CLI entrypoints: recommend -> generate -> render flows are implemented. The files implement chart heuristics, option building, HTML preview (CDN script) and server-side SVG rendering. No unrelated credentials, binaries, or capabilities are requested.
Instruction Scope
SKILL.md instructs running node CLI commands that read a JSON input and write preview artifacts. The runtime will read user-provided input files and can write to arbitrary output paths (including expanded ~, 'home', 'desktop' aliases) when the user requests those. This is expected for a chart-export skill but means the agent can write files to the user's filesystem if invoked with output arguments.
Install Mechanism
There is no install spec in the registry metadata, but SKILL.md says 'npm install' and the package contains dist/ and package.json/package-lock.json; running renderSvg also dynamically imports the 'echarts' package. This is a modest coherence gap (instructions require npm install even though no platform-level install step is declared), but it is proportionate and expected for a Node-based skill.
Credentials
The skill requests no environment variables or credentials. It only uses filesystem paths provided by the user and includes a CDN URL for client-side HTML previews (echarts via jsDelivr). No sensitive services or unrelated credentials are requested.
Persistence & Privilege
The skill is not marked 'always:true' and is user-invocable. It does not modify other skills' configs or request elevated, persistent platform privileges. Autonomous invocation is allowed by default but not combined here with broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install echarts-ai-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /echarts-ai-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
echarts-ai-skill v0.1.1 - Added compiled CLI and core files to the `dist/` directory (`dist/cli` and `dist/core`) for chart recommendation, generation, and rendering. - Updated output directory logic: default output is now the current working directory if no path is specified; `desktop`/`home` used only with explicit request. - Simplified setup instructions (removed `npm run build` from README). - Clarified CLI command usage and output rules in documentation. - Updated skill metadata to version 0.1.4 and improved guidance for output and field mapping.
v0.1.0
- Initial release of echarts-chart-skill for generating charts from natural language or tabular data. - Supports chart type recommendation, ECharts option generation, and export to HTML or SVG. - Provides CLI commands for recommendation, generation, and rendering workflows. - Flexible output handling, with aliases and defaulting to Desktop or home directory. - Detailed guidance and examples included for creating and mapping `ChartRequest` objects.
元数据
Slug echarts-ai-skill
版本 0.1.1
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 2
常见问题

Echarts Chart Skill 是什么?

Generate charts from natural language or tabular data, recommend chart types, and export ECharts-based HTML or SVG. Use when users ask for one-sentence chart... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 809 次。

如何安装 Echarts Chart Skill?

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

Echarts Chart Skill 是免费的吗?

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

Echarts Chart Skill 支持哪些平台?

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

谁开发了 Echarts Chart Skill?

由 davaded(@davaded)开发并维护,当前版本 v0.1.1。

💬 留言讨论