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.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.svg" alt="Measured on agentmods" 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 $0.00067 $0.02270
Sonnet 5 $0.00027 $0.00908
Haiku 4.5 $0.00013 $0.00454

Measured 8d ago against content hash fe632fb66304, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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_{图表类型}_{描述性名称}.jsonchart_{时间戳}.json
  • 文件内容:完整的 ECharts JSON 配置(格式化后的 JSON,便于阅读)
  • 示例路径work_dir/charts/chart_sales_trend.jsonwork_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. 8d 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 (197 stars, last pushed 1mo ago), licensed MIT. It adds 133 tokens to every session and 4,540 once invoked, about $0.0007 per session on Opus 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

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

menu-transitions-rtl

Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens

vite

Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.

antfu/skills · 49 tokens