dataelement/dsh-desktop/data-viz-gen
Claude Code and agent skill by dataelement/dsh-desktop
- community
Checking that the SKILL.md file is still in the repository.
从 JSON 数据生成自包含的 HTML/SVG 信息图,支持 KPI 统计卡片、分组柱状图对比、流程图和混合仪表盘四种类型,提供 8 套配色方案和 24 个内置图标,输出完全自包含的 HTML 文件,无需外部依赖。当用户需要数据可视化、信息图、图表、仪表盘,或提及生成图表、制作 dashboard、展示统计数据等请求时触发。
Install
npx vskill@latest install dataelement/dsh-desktop/data-viz-genSKILL.md
The same SKILL.md was published earlier as dataelement/dsh-desktop/data-viz-gen.
Infographic Builder
从 JSON 数据生成自包含的 HTML/SVG 信息图,支持四种类型:
- 统计卡片(stats) — KPI 大数字 + 趋势箭头 + 图标
- 数据对比(comparison) — 分组柱状图,支持多系列
- 流程图(flow) — 步骤流程,带编号、图标和箭头连接
- 仪表盘(dashboard) — 混合布局:统计卡片 + 柱状图 + 环形图 + 流程
输出为 完全自包含 的 HTML 文件(CSS/SVG 全部内联,无外部依赖),可直接在浏览器打开。
使用方式
基础用法
也支持从 stdin 读取:
脚本输出 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 — 统计卡片
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 — 数据对比柱状图
3. flow — 流程图
4. dashboard — 混合仪表盘
输出格式
脚本在 stdout 输出 JSON 结果:
错误时:
设计特点
- 零外部依赖:纯 Python 标准库,无需 pip install
- 自包含输出:HTML 内联所有 CSS 和 SVG,无需网络
- 响应式布局:支持桌面和移动端浏览
- 专业配色:8 套预设配色方案 + 自动选择
- 24+ 内置图标:常用 SVG 图标,无需字体文件
- 中文友好:字体栈包含思源黑体、苹方、微软雅黑
适用场景
- 数据报告中的可视化模块
- 产品数据仪表盘
- 业务流程说明
- 季度/月度数据对比
- 团队 KPI 展示
依赖
- Python 3.7+(仅使用标准库)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/dsh-desktop-office/business-skills/data-viz-gen/SKILL.md
Popularity
- Repository stars
- 15,270
- Repository forks
- 521
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dataelement/dsh-desktop/data-viz-gen)