AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Dataviz Svg

skill-oubakiou-skills-dataviz-svg · by oubakiou

>

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-oubakiou-skills-dataviz-svg

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-oubakiou-skills-dataviz-svg)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Dataviz Svg? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

dataviz-svg

Vega-Lite の JSON spec から SVG と PNG を生成し、Markdown ドキュメントに埋め込む。 vega-lite / vega をバンドルしたスクリプト (vl2svg.mjs) と、PNG 変換用の resvg.wasm / Noto Sans JP フォントを同梱しており、追加インストール不要でブラウザなし・ヘッドレス環境でも動作する。

本スキルの独自コードは MIT ライセンスで提供する。同梱する third-party runtime asset のライセンスは THIRD_PARTY_NOTICES.md を参照する。

前提条件

  • Node.js >= 18

実行フロー

1. データと可視化要件を把握する

ユーザーの要求から以下を確認する:

  • 入力データ(インライン値、CSV/JSON ファイル、URL)
  • チャートタイプ(棒、折れ線、散布図、ヒートマップ等)
  • エンコーディング(x 軸、y 軸、色、サイズ等に何をマッピングするか)
  • 出力先の Markdown ファイルパスと SVG の配置場所

2. Vega-Lite JSON spec を書く

Vega-Lite v5 の spec を JSON で作成する。よく使うパターンは references/vegalite-patterns.md を参照。

SVG 出力向けのポイント:

  • "width" / "height" を明示する(SVG はブラウザのようなレスポンシブリサイズがないため)
  • 日本語テキストを使う場合は "config": {"font": "sans-serif"} を設定する
  • "background": "transparent" でドキュメントの背景に馴染ませる(暗色テーマ対応が不要な場合は "white" も可)
  • "autosize": {"type": "fit", "contains": "padding"} でサイズ制御を安定させる
  • 凡例やタイトルが切れないよう "padding" に余裕を持たせる

spec を JSON ファイルとして保存する。保存先は出力 SVG と同じディレクトリか、ドキュメントの assets/ 配下が適切。

3. SVG と PNG をレンダリングする

Claude Code では:

bash .claude/skills/dataviz-svg/scripts/render-svg.sh   [output.png]

Codex では:

bash .agents/skills/dataviz-svg/scripts/render-svg.sh   [output.png]

output.png を省略した場合は、output.svg と同じベース名の PNG を生成する(例: chart.svgchart.png)。

allowed-tools は Claude Code 向けの権限指定であり、Codex では本文の実行例に従ってレンダリングする。

スキルに同梱された vl2svg.mjs(vega-lite + vega のバンドル)、resvg.wasm、Noto Sans JP フォントを使用する。追加インストールは不要。

4. Markdown に埋め込む

生成された SVG または PNG をドキュメントに埋め込む:

サイズ指定が必要な場合は HTML タグを使う:

5. 確認と調整

生成された SVG を Read ツールで確認し、必要に応じて spec を修正して再レンダリングする。 よくある調整:

  • 軸ラベルの回転("labelAngle": -45
  • 色スケールの変更("scale": {"scheme": "category10"}
  • フォントサイズの調整("config": {"axis": {"labelFontSize": 12}}

Mermaid との使い分け

| 用途 | 推奨ツール | | -------------------------------------------------- | ---------------------------------------- | | フローチャート、シーケンス図、ER 図、状態遷移図 | Mermaid | | 棒グラフ、折れ線グラフ(データ数件の簡易表示) | Mermaid pie / xychart | | 散布図、ヒートマップ、ヒストグラム、箱ひげ図 | Vega-Lite(本スキル) | | 多系列・積み上げ・グループ化チャート | Vega-Lite(本スキル) | | データ変換(集計、ビニング、フィルタ)を伴う可視化 | Vega-Lite(本スキル) | | インタラクティブ可視化(選択、ズーム) | Vega-Lite(ただし SVG では静的出力のみ) |

リファレンス

チャートタイプ別の spec パターンと SVG 向けベストプラクティスは references/vegalite-patterns.md にまとめている。 複雑なチャートを書く前や、使い慣れないマークタイプを使う場合に参照する。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.