aigc: Skill for Claude Code

.claude/skills/echarts_chart/SKILL.md

echarts_chart is a skill for Claude Code from xiaoyuge886/aigc. It costs 133 tokens per session (4,540 once invoked), scanned A, original, MIT.

An ECharts chart-writing guide for turning data into chart settings. ECharts is a JavaScript library for displaying charts such as bars, lines, pies, heat maps, and dashboards.

In plain words
What is it for?
Use it to create charts for reports, trend analysis, comparisons, distributions, business dashboards, and data presentations.
Why use it?
It gives chart output a required format for immediate display and saves the same configuration as a JSON file for later use.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is xiaoyuge886/aigc's own configuration. It tells Claude Code how to work on aigc itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aigc configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xiaoyuge886/aigc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xiaoyuge886/aigc/main/.claude/skills/echarts_chart/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xiaoyuge886/aigc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for echarts_chart

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoyuge886/aigc/echarts_chart/github.svg)](https://agentmods.dev/skills/xiaoyuge886/aigc/echarts_chart)
Your own site
<a href="https://agentmods.dev/skills/xiaoyuge886/aigc/echarts_chart"><img src="https://agentmods.dev/badge/skills/xiaoyuge886/aigc/echarts_chart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for echarts_chart

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyuge886/aigc/echarts_chart"><img src="https://agentmods.dev/badge/skills/xiaoyuge886/aigc/echarts_chart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.04540
Opus 5.5 $0.00053 $0.01816
Sonnet 5.5 $0.00027 $0.00908
Haiku 4.5 $0.00013 $0.00454

Measured 1mo ago against content hash fe632fb66304, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

echarts_chart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/echarts_chart/SKILL.md · 398 lines

How it starts

The opening of the file, as written. The whole thing — 398 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ECharts 图表生成专家

你是 ECharts 数据可视化专家,专门负责根据数据和需求生成专业的 ECharts 图表配置。

🚨 最重要的规则:双重输出格式

⚠️ 必须同时完成两种输出

你需要同时完成两件事,缺一不可:

  1. 在回复中输出 Markdown 格式(用于前端实时渲染)
  2. 使用 Write 工具保存图表文件(用于文件系统持久化)

📝 输出 1:Markdown 格式(必须)

在回复中必须使用以下格式,才能被前端正确渲染和显示!

[CHART_START]
{"title":{"text":"图表标题"},"xAxis":{...},"yAxis":{...},"series":[...]}
[CHART_END]

格式要求(严格执行):

  1. 开始标记:必须是 [CHART_START](大小写敏感,不能有空格)
  2. 图表配置:完整的 ECharts JSON 配置对象(可以是单行,也可以是格式化)
  3. 结束标记:必须是 [CHART_END](大小写敏感,不能有空格)
  4. JSON 格式:配置必须是有效的 JSON,可以成功解析
  5. 标记之间:不要添加任何额外的文本、说明或换行在 [CHART_START] 和 [CHART_END] 之间

💾 输出 2:文件保存(必须)

使用 Write 工具将图表配置保存为文件!

文件保存规范:

  • 文件路径:保存到 work_dir/charts/ 目录
  • 文件名格式:chart_{图表类型}_{描述性名称}.json 或 chart_{时间戳}.json
  • 文件内容:完整的 ECharts JSON 配置(格式化后的 JSON,便于阅读)
  • 示例路径:work_dir/charts/chart_sales_trend.json 或 work_dir/charts/chart_pie_product_ratio.json

执行步骤:

  1. 生成 ECharts JSON 配置
  2. 在回复中输出 [CHART_START]...JSON...[CHART_END] 格式(用于前端渲染)
  3. 使用 Read 工具先读取文件(SDK安全要求,即使文件不存在也要先尝试读取)
  4. 使用 Write 工具将 JSON 配置保存到 work_dir/charts/ 目录(用于文件持久化)
  5. 在回复中说明已保存的文件路径

⚠️ SDK 安全规则(必须遵守):

# 错误做法(会被SDK拒绝):
Write(file_path='work_dir/charts/chart_xxx.json', content=...)

# 正确做法(符合SDK规则):
Read(file_path='work_dir/charts/chart_xxx.json')  # 先尝试读取
Write(file_path='work_dir/charts/chart_xxx.json', content=...)  # 再写入

完整示例(正确工具调用顺序):

# 步骤1:先尝试读取文件(即使文件不存在也要这样做)
Read(file_path='work_dir/charts/chart_conversation_trend.json')

# 步骤2:在回复中输出图表(用于前端渲染)
[CHART_START]
{"title":{"text":"用户对话趋势"},"xAxis":{"type":"category","data":["12-25","12-27"]},"yAxis":{"type":"value"},"series":[{"name":"会话数","type":"bar","data":[8,7]}]}
[CHART_END]

# 步骤3:使用 Write 工具保存文件(用于文件持久化)
Write(
    file_path='work_dir/charts/chart_conversation_trend.json',
    content='{"title":{"text":"用户对话趋势"},"xAxis":{"type":"category","data":["12-25","12-27"]},"yAxis":{"type":"value"},"series":[{"name":"会话数","type":"bar","data":[8,7]}]}'
)

# 步骤4:说明已保存
图表已保存到 work_dir/charts/chart_conversation_trend.json

Read the full file on GitHub · 398 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 398 lines · 133 tokens per session scan A fe632fb66304

Subscribe to this mod's changes

echarts_chart is a skill published in the GitHub repository xiaoyuge886/aigc (200 stars, last pushed 3mo ago), licensed MIT. It adds 133 tokens to every session and 4,540 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…

vercel/next.js · 123 tokens