data-viz-gen

data-viz-gen is a skill for Claude Code, Codex from serejaris/kimi-skills. It costs 112 tokens per session (1,698 once invoked), scanned A, original, MIT.

A generator for self-contained HTML and SVG infographics from JSON data. It supports statistic cards, comparison bar charts, flow diagrams, and mixed dashboards without external dependencies.

In plain words
What is it for?
Use it to create KPI cards, grouped comparisons, process diagrams, or dashboards from a JSON configuration.
Why use it?
It turns structured numbers into shareable visual reports without requiring a separate charting service or manually building the layout.

Skill for Claude CodeCodex

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

Good fit Use it to create KPI cards, grouped comparisons, process diagrams, or dashboards from a JSON configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serejaris/kimi-skills/data-viz-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 serejaris/kimi-skills --skill data-viz-gen
Clone the repo
git clone --depth 1 https://github.com/serejaris/kimi-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 data-viz-gen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/data-viz-gen"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/data-viz-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,698 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.00112 $0.01698
Opus 5.5 $0.00045 $0.00679
Sonnet 5.5 $0.00022 $0.00340
Haiku 4.5 $0.00011 $0.00170

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

Security

Grade A, and why

data-viz-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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build_infographic.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/data-viz-gen/SKILL.md · 187 lines

How it starts

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

Infographic Builder

从 JSON 数据生成自包含的 HTML/SVG 信息图,支持四种类型:

  1. 统计卡片(stats) — KPI 大数字 + 趋势箭头 + 图标
  2. 数据对比(comparison) — 分组柱状图,支持多系列
  3. 流程图(flow) — 步骤流程,带编号、图标和箭头连接
  4. 仪表盘(dashboard) — 混合布局:统计卡片 + 柱状图 + 环形图 + 流程

输出为 完全自包含 的 HTML 文件(CSS/SVG 全部内联,无外部依赖),可直接在浏览器打开。

使用方式

基础用法

python3 scripts/build_infographic.py config.json

也支持从 stdin 读取:

cat config.json | python3 scripts/build_infographic.py

脚本输出 JSON 状态到 stdout,生成的 HTML 写入 output 字段指定的路径。

JSON 配置格式

通用字段:

字段 类型 必填 说明
title string 否 信息图标题
subtitle string 否 副标题
type string 是 stats / comparison / flow / dashboard
palette string 否 配色方案(默认 auto)
data object/array 是 数据内容(格式取决于 type)
output string 否 输出文件路径(默认 infographic.html)
footer string 否 页脚文字

配色方案

可选值:auto(根据数据自动选择)、ocean、sunset、forest、berry、vibrant、corporate、pastel、earth

各类型 data 格式

1. stats — 统计卡片
{
  "type": "stats",
  "data": [
    {
      "label": "总收入",
      "value": "¥1.2M",
      "icon": "money",
      "trend": "+12.5%",
      "trend_dir": "up"
    },
    {
      "label": "用户数",
      "value": "45,230",
      "icon": "users",
      "trend": "+8.2%",
      "trend_dir": "up"
    }
  ]
}

icon 可选值:users、user、money、percent、globe、clock、check、star、target、zap、chart-bar、chart-pie、database、rocket、shield、heart、light、search、mail、settings、flag、trending-up、trending-down

trend_dir:up(绿色上升箭头)或 down(红色下降箭头)

2. comparison — 数据对比柱状图
{
  "type": "comparison",
  "data": {
    "chart_title": "季度营收对比",
    "categories": ["Q1", "Q2", "Q3", "Q4"],
    "series": [
      {"name": "2024", "values": [320, 410, 380, 520]},
      {"name": "2025", "values": [380, 490, 450, 610]}
    ]
  }
}
3. flow — 流程图
{
  "type": "flow",
  "data": [
    {"step": 1, "title": "需求分析", "description": "收集用户需求", "icon": "search"},
    {"step": 2, "title": "方案设计", "description": "制定技术方案", "icon": "light"},
    {"step": 3, "title": "开发实现", "description": "编码与测试", "icon": "settings"},
    {"step": 4, "title": "上线发布", "description": "部署到生产环境", "icon": "rocket"}
  ]
}

Read the full file on GitHub · 187 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 187 lines · 112 tokens per session scan A 58e9a42c882a

Subscribe to this mod's changes

data-viz-gen is a skill published in the GitHub repository serejaris/kimi-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 112 tokens to every session and 1,698 once invoked, about $0.0004 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-09-03.

Related

data-viz-gen compared with skills from other repositories

data-viz-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-viz-genserejaris/kimi-skillsSkill113mo agoMITA112Claude Code, Codex
data-viz-rendererzebbern/claude-code-guideSkill4.7k3d agoMITA62Claude Code, Codex
architecture-diagrammateaix/mateclawSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
reimagine-itKayforkind/reimagine-itSkill2125d agoMITA230Claude Code
svg-presskdcube/kdcubeSkill27yesterdayMITA87Claude Code
chart-designerclaude-office-skills/skillsSkill5639mo agoMITA31Claude Code, Codex
sync-ruleswunamesst/skillsSkill23mo agoMITA108Claude Code, Codex