echarts-gen

echarts-gen is a skill for Claude Code, Codex from guyulong/cn-agent-skills. It costs 13 tokens per session (741 once invoked), scanned A, original, MIT.

A generator for ECharts chart configuration code with Chinese labels. ECharts is a JavaScript library for displaying charts such as lines, bars, and pies.

In plain words
What is it for?
Use it to create configurations for sales trends, department comparisons, user-source breakdowns, and similar charts.
Why use it?
It reduces the work of assembling common chart settings, labels, tooltips, and data structures by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create configurations for sales trends, department comparisons, user-source breakdowns, and similar charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guyulong/cn-agent-skills/echarts-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add guyulong/cn-agent-skills --skill echarts-gen
Clone the repo
git clone --depth 1 https://github.com/guyulong/cn-agent-skills

Made for: Claude Code, Codex.

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-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/echarts-gen/github.svg)](https://agentmods.dev/skills/guyulong/cn-agent-skills/echarts-gen)
Your own site
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/echarts-gen"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/echarts-gen/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-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/echarts-gen"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/echarts-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 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.
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.00013 $0.00741
Opus 5 $0.00006 $0.00370
Sonnet 5 $0.00003 $0.00148
Haiku 4.5 $0.00001 $0.00074

Measured 10d ago against content hash ad67e8de30b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

echarts-gen 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 10d 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.

skills/echarts-gen/SKILL.md · 98 lines

What it actually says

ECharts图表生成器

使用场景

快速生成ECharts图表配置代码,支持中文标签。

常用图表模板

折线图

const option = {
  title: {
    text: '月度销售额趋势',
    left: 'center'
  },
  tooltip: {
    trigger: 'axis',
    formatter: '{b}<br/>{a}: {c}万元'
  },
  xAxis: {
    type: 'category',
    data: ['1月', '2月', '3月', '4月', '5月', '6月']
  },
  yAxis: {
    type: 'value',
    name: '销售额(万元)'
  },
  series: [{
    name: '销售额',
    type: 'line',
    data: [120, 200, 150, 80, 70, 110],
    smooth: true,
    areaStyle: {}
  }]
};

柱状图

const option = {
  title: { text: '各部门人数统计' },
  tooltip: { trigger: 'axis' },
  xAxis: {
    type: 'category',
    data: ['技术部', '产品部', '设计部', '运营部', '市场部']
  },
  yAxis: { type: 'value', name: '人数' },
  series: [{
    name: '人数',
    type: 'bar',
    data: [
      { value: 45, itemStyle: { color: '#5470c6' } },
      { value: 20, itemStyle: { color: '#91cc75' } },
      { value: 15, itemStyle: { color: '#fac858' } },
      { value: 25, itemStyle: { color: '#ee6666' } },
      { value: 18, itemStyle: { color: '#73c0de' } }
    ]
  }]
};

饼图

const option = {
  title: { text: '用户来源分布', left: 'center' },
  tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },
  legend: { orient: 'vertical', left: 'left' },
  series: [{
    name: '来源',
    type: 'pie',
    radius: '50%',
    data: [
      { value: 1048, name: '搜索引擎' },
      { value: 735, name: '直接访问' },
      { value: 580, name: '微信分享' },
      { value: 484, name: '抖音引流' },
      { value: 300, name: '其他' }
    ],
    emphasis: {
      itemStyle: { shadowBlur: 10, shadowColor: 'rgba(0,0,0,0.5)' }
    }
  }]
};

中文配置要点

  • 设置 fontFamily: 'Microsoft YaHei, SimHei, sans-serif'
  • 使用中文标签和提示
  • 数字格式化:千分位分隔
  • 日期格式:YYYY年MM月DD日
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. 10d ago First seen · 98 lines · 13 tokens per session scan A ad67e8de30b5

Subscribe to this mod's changes

echarts-gen is a skill published in the GitHub repository guyulong/cn-agent-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 741 once invoked, about $0.0001 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-31.