supergokou/hyclaw/hy-dataviz
- community
Checking that the SKILL.md file is still in the repository.
Turn tabular data (from Excel/CSV/analysis) into a chart rendered inline in chat via the show_widget tool — bar, line, pie. Use whenever the user asks to 可视化/画图/图表/chart/plot data.
Install
npx vskill@latest install supergokou/hyclaw/hy-datavizSKILL.md
HYClaw 数据可视化 / Data Visualization
Render charts inline in the web chat by producing self-contained SVG and passing it to the show_widget tool. The widget appears directly in your assistant message — no browser window, no external file. Everything must be inline SVG/CSS (the widget sandbox blocks network/resource loads).
show_widgetis only available on clients that support inline widgets (theHYClaw Control UI does). It is not offered in the plain CLI, so never write achart to an HTML file and tell the user to open it in a browser — always useshow_widget.
When to use
- The user asks to 可视化 / 画个图 / 出个图表 / chart / plot / dashboard.
- You just read numbers (e.g. via document extraction on an Excel) and a chart
communicates them better than a table.
Workflow
- Get the data as rows/series. From a spreadsheet, extract the columns first.
- Pick the form (heuristic below).
- Build one
<svg>string with aviewBox(never fixed pixel width) so it
scales; include a title, axis labels, and a legend for multiple series.
- Call
show_widget({ title: "<snake_case>", widget_code: "<svg …>" })— e.g.
q3_revenue_by_region, not chart.
Form heuristic
| Data shape | Chart | |
|---|---|---|
| One value per category, comparison | 柱状图 bar | |
| Value over ordered time | 折线图 line | |
| Parts of a whole (≤6 slices) | 饼图 pie | |
| A single headline number | KPI tile |
Design rules (so every chart reads as one system)
- Categorical palette, in order:
#c8281e (EFD red), #ff7a1a, #2ea44f, #3b7dd8, #8b5cf6, #e6a700.
font-family: "Segoe UI","Microsoft YaHei",sans-serifso Chinese labels render.- Grid/axis
stroke="#d9d9df"; textfill="#26262a". Flat — no 3D, no heavy shadows. - Always title the chart and label axes; format large numbers with separators.
Example — bar chart (adapt numbers/labels; bar height = value/maxValue × 150)
Then: show_widget({ title: "quarterly_revenue", widget_code: "<svg …>" }).
Reports with charts
For a chart destined for a Word/PPT report, build the same SVG and hand it to the hy-office workflow to embed, in addition to (or instead of) rendering inline.
Security
- Security scanPassed, 95 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 repositoryCheckingskills/hy-dataviz/SKILL.md
Popularity
- 7-day trend score
- 0
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/supergokou/hyclaw/hy-dataviz)