visualize
システムや計画、コードの流れなどを、図やイラストを使って分かりやすく説明するためのHTMLファイルを生成し、ブラウザで手軽に確認できる形で視覚化するSkill。
📜 元の英語説明(参考)
Generate a self-contained HTML visualization to explain a system, plan, code flow, or concept. Use when the user asks to visualize, diagram, explain visually, or walk through a system, architecture, plan, or code flow. Outputs a single HTML file opened in the browser.
🇯🇵 日本人クリエイター向け解説
システムや計画、コードの流れなどを、図やイラストを使って分かりやすく説明するためのHTMLファイルを生成し、ブラウザで手軽に確認できる形で視覚化するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o visualize.zip https://jpskill.com/download/8880.zip && unzip -o visualize.zip && rm visualize.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/8880.zip -OutFile "$d\visualize.zip"; Expand-Archive "$d\visualize.zip" -DestinationPath $d -Force; ri "$d\visualize.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
visualize.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
visualizeフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
可視化
システム、計画、コードフロー、または概念を視覚的に説明する、自己完結型の単一の HTML ファイルを生成します。出力はブラウザで開きます。このスキルがロードされている場合は、ASCII アートにフォールバックすることはありません。
デフォルトの美学: 「HTML effectiveness」エディトリアルギャラリースタイル。アイボリーのページ、セリフのディスプレイ見出し、粘土のアクセント、静かなカードグリッド、シンプルな SVG イラスト、そしてゆったりとした空白を使用します。ページは、ダッシュボードスキンではなく、ユーザーが読みたいと思うようなものに感じるはずです。
どのような時に使うか
- 複雑な計画や提案を可視化する
- 計画を実行する前に、主要なプリミティブを説明する
- サードパーティのリポジトリまたはブログ投稿からのステップの視覚的な説明
- モジュールのコードフローまたは実行パスを理解する
ワークフロー
- ユーザーが見たいものを理解する — 主題、対象者、詳細レベル。
./templates/base.htmlを読む — 技術スタックと HTML-effectiveness スタイルを吸収するため。毎回読み、記憶に頼らないでください。- フォーマットを選択する (以下のフォーマットガイドを参照)。
- 10 個以上のノードを持つ Mermaid ダイアグラムの場合は、
./references/mermaid-tips.mdも読む。 - この特定の可視化のためにベーステンプレートを適応させる。構造を再利用し、視覚領域のコンテンツを入れ替えます。
~/.agent/diagrams/<descriptive-name>.htmlに書き込み、ブラウザで開きます。
フォーマットガイド
| 意図 | アプローチ |
|---|---|
| フロー、プロセス、シーケンス | SVG/CSS ボックスと矢印を最初に。グラフが大きい場合は Mermaid.js |
| アーキテクチャ、システム概要 | SVG/CSS モジュールマップまたはカードグリッド |
| 比較、データ | HTML <table> |
| ステップバイステップの概念 | 番号付きのセクションとカード |
| タイムライン、ロードマップ | 視覚領域の CSS タイムライン |
| コードレビュー / PR の説明 | 注釈付きの diff カード、重要度ラベル、レビュー担当者のフォーカスリスト |
| プロンプト/設定の調整 | コピー/エクスポートボタン付きの専用エディタ |
技術スタック
生成されるすべてのファイルで使用するもの:
- Preact + htm — ESM CDN インポート、ビルドステップなし
- プレーン CSS カスタムプロパティ — ビルドステップまたは生成された CSS なし
- システムフォント — セリフのディスプレイ、サンセリフの本文、モノのメタデータ
- Mermaid.js CDN — ダイアグラムが必要な場合にのみ追加
その他の依存関係はありません。ビルドステップはありません。
完全な HTML-effectiveness デザイントークン (色、タイポグラフィ、レイアウト、モーション) については、./references/design-system.md を参照してください。
原則
- リクエストごとに1 つの主要な視覚的アンカー、および計画またはシステムをレビューする際のサポートとなる視覚的な証拠
- 視覚を優先 — メインコンテンツは散文ではなく、ダイアグラム、チャート、またはテーブル
- ベーステンプレートを適応させる — ゼロから始めない
- 美しさよりも正確さ — 可視化は情報を正確に表現する必要がある
- 理解を助ける場合はインタラクティブ (ステップスルー、ホバー、折りたたみ)
- ページがデータを編集する場合はエクスポート — アーティファクトがチューナーまたはエディタである場合は、JSON/Markdown/プロンプトとしてコピーを含める
- ユーザーが提供したコンテンツで
innerHTMLを絶対に使用しない (XSS 防止)
出力でエスケープされたバッククォートを回避する
Write ツールは、JavaScript テンプレートリテラルを破損させ、実際にはバッククォートと補間ではなく、リテラル \`` と\${` を書き込む可能性があります。これは、すべての htm タグ付きテンプレートを壊します。これを防ぐには:
- htm テンプレートの上にデータを個別の
const変数に抽出します。Mermaid チャート定義文字列、設定配列、長いテキスト — それらを最初にプレーンな定数として宣言し、次にhtml\...`` 内で変数を参照します。 - htm 式を単純に保ちます。 変数を参照渡しします (
${myVar},${myArray.map(...)})。html\...`` ブロック内で、複雑な複数行の文字列またはネストされたテンプレートリテラルをインラインで構築しないでください。 - 書き込み後に検証します。 書き込まれたファイルの
<script type="module">ブロックの最初の 30 行を再度読み、エスケープされたシーケンス (\`` または\${) がないことを確認します。Chrome DevTools MCP が利用可能な場合は、ファイルを開いた後にブラウザコンソールでSyntaxError` を確認してください。
配布前に
- 最初の画面テスト: スクロールせずに意味のあるビジュアルが表示されますか?
- ファイルが正常に開く: コンソールエラー、壊れたフォントはありませんか?
出力
説明的なファイル名 (auth-flow.html, pipeline-overview.html) を使用して ~/.agent/diagrams/ に書き込みます。
ブラウザで開きます:
- macOS:
open ~/.agent/diagrams/filename.html - Linux:
xdg-open ~/.agent/diagrams/filename.html
ファイルパスをユーザーに伝え、含めたビジュアルの名前を伝えます。
更新チェック
セッションでの最初の使用時に、新しいバージョンがあるかどうかをサイレントに確認します。
https://raw.githubusercontent.com/abpai/skills/main/versions.jsonをフェッチします。visualizeのバージョンを、このファイルのmetadata.versionと比較します。- リモートバージョンが新しい場合は、メインタスクの前に一時停止して、次のように尋ねます。
visualize のアップデートがあります (ローカル {X.Y} → リモート {A.B})。 先にアップデートしてもよろしいですか?
npx skills update visualizeを実行できます。 - ユーザーが「はい」と言った場合は、続行する前にアップデートを実行します。
- ユーザーが「いいえ」と言った場合は、現在のローカルバージョンで続行します。
- フェッチが失敗した場合、または Web アクセスが利用できない場合は、サイレントにスキップします。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Visualize
Generate a single, self-contained HTML file that visually explains a system, plan, code flow, or concept. The output opens in the browser — never fall back to ASCII art when this skill is loaded.
Default aesthetic: the "HTML effectiveness" editorial gallery style. Use an ivory page, serif display headings, clay accents, quiet card grids, simple SVG illustrations, and generous whitespace. The page should feel like something the user wants to read, not a dashboard skin.
When to Use
- Visualize a complicated plan or proposal
- Explain key primitives before implementing a plan
- Visual explanation of steps from a third-party repo or blog post
- Understand a module's code flow or execution path
Workflow
- Understand what the user wants to see — the subject, the audience, the level of detail.
- Read
./templates/base.htmlto absorb the tech stack and HTML-effectiveness style. Read it each time, do not rely on memory. - Pick the format (see Format Guide below).
- For Mermaid diagrams with 10+ nodes, also read
./references/mermaid-tips.md. - Adapt the base template for this specific visualization. Reuse the structure, swap the visual area content.
- Write to
~/.agent/diagrams/<descriptive-name>.htmland open in the browser.
Format Guide
| Intent | Approach |
|---|---|
| Flows, processes, sequences | SVG/CSS boxes and arrows first; Mermaid.js when the graph is large |
| Architecture, system overview | SVG/CSS module map or card grid |
| Comparisons, data | HTML <table> |
| Step-by-step concepts | Numbered sections and cards |
| Timelines, roadmaps | CSS timeline in the visual area |
| Code review / PR explanation | Annotated diff cards, severity labels, reviewer focus list |
| Prompt/config tuning | Purpose-built editor with copy/export button |
Tech Stack
Every generated file uses:
- Preact + htm — ESM CDN imports, no build step
- Plain CSS custom properties — no build step or generated CSS
- System fonts — serif display, sans body, mono metadata
- Mermaid.js CDN — add only when diagrams are needed
No other dependencies. No build step.
For the full HTML-effectiveness design tokens (colors, typography, layout, motion), see ./references/design-system.md.
Principles
- One primary visual anchor per request, plus supporting evidence visuals when reviewing a plan or system
- Visual first — the main content is a diagram, chart, or table, not prose
- Adapt the base template — don't start from scratch
- Correct over pretty — the visualization must accurately represent the information
- Interactive when it helps comprehension (step-through, hover, collapse)
- Export when the page edits data — include copy as JSON/Markdown/prompt when the artifact is a tuner or editor
- Never use
innerHTMLwith user-provided content (XSS prevention)
Avoiding Escaped Backticks in Output
The Write tool can corrupt JavaScript template literals, writing literal \`` and\${` instead of real backticks and interpolations. This breaks all htm tagged templates. To prevent it:
- Extract data into separate
constvariables above the htm templates. Mermaid chart definition strings, config arrays, long text — declare them as plain constants first, then reference the variable insidehtml\...``. - Keep htm expressions simple. Pass variables by reference (
${myVar},${myArray.map(...)}). Do not build complex multi-line strings or nested template literals inline within anhtml\...`` block. - Verify after writing. Re-read the first 30 lines of the
<script type="module">block in the written file and confirm there are no escaped sequences (\`` or\${). If Chrome DevTools MCP is available, check the browser console forSyntaxError` after opening the file.
Before Delivering
- First screen test: is a meaningful visual visible without scrolling?
- File opens cleanly: no console errors, no broken fonts?
Output
Write to ~/.agent/diagrams/ with a descriptive filename (auth-flow.html, pipeline-overview.html).
Open in browser:
- macOS:
open ~/.agent/diagrams/filename.html - Linux:
xdg-open ~/.agent/diagrams/filename.html
Tell the user the file path and name the visuals you included.
Update Check
On first use in a session, silently check for a newer version:
- Fetch
https://raw.githubusercontent.com/abpai/skills/main/versions.json. - Compare the version for
visualizeagainst this file'smetadata.version. - If the remote version is newer, pause before the main task and ask:
visualize update available (local {X.Y} → remote {A.B}). Would you like me to update it for you first? I can run
npx skills update visualizefor you. - If the user says yes, run the update before continuing.
- If the user says no, continue with the current local version.
- If the fetch fails or web access is unavailable, skip silently.