visualize
できること
このスキルは、show widgetツールを使って、結果を理解するのに役立つ場合に図、チャート、対話的なビューを表示するよう、AIエージェントに導きます。長い文章より絵から学ぶ人のためのものです。
使う場面
- ✓コードの構造や流れの図があると、説明が分かりやすくなるとき。
- ✓比較や測定結果が、チャートや表として読みやすいとき。
- ✓ボード上でいくつかのビューをまとめた、継続的なダッシュボードがほしいとき。
スキルのリンク
https://github.com/openclaw/openclaw/blob/main/skills/visualize/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このログインの流れが3つのサービスの間でどう移動するか、ビジュアルで見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、絵が役立つかを判断し、そのうえで同じ会話内に、またはダッシュボードのウィジェットとして、ビジュアルを作ります。提案された設計やサンプルデータには、観測された動作と混同されないようラベルを付けます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Visualize
Use show_widget when seeing or interacting with a result helps the user reason
about it. This includes code architecture, execution traces, performance,
comparisons, simulations, UI mockups, and session dashboards. Use prose, a normal
Markdown table, or a supported Mermaid block when that already explains the
answer. A request to implement an application still needs changes in its project;
a widget can illustrate the design but does not complete the implementation.
Choose the surface
- Code work and one-off explanations: prefer inline when available this turn. Show the actual owners, relationships, measured values, or states relevant to the question. Distinguish proposed designs and illustrative data from observed behavior. Several diagrams for a code task do not by themselves call for a dashboard.
- Persistent dashboards: use
pin: truefor an explicit dashboard request or multiple non-code visualizations that belong together. Read the current board first and reuse its names and tabs. Use thecontrol-uiskill when organizing sessions, tabs, placement, or dashboard presentation. - Native reports: prefer the tool's
reportinput withpin: truefor dashboard text, metrics, tables, simple charts, and links. Omitwidget_code,kind,capabilities, andpresentation.target. Reports do not render inline. - Custom widgets: use
widget_codefor interactive HTML/SVG. Reuse an explicitnamewithpin: trueto replace a pinned widget's content. A same-name update cannot change its content owner; inspect before converting HTML to a report.
Use only tools, source kinds, and presentation targets advertised in this turn.
On a pinned-only surface, set pin: true and omit presentation.target. If the
tool is unavailable, explain the limitation instead of inventing a render call.
Restart recovery can be pinned-only even when the original turn supported inline
widgets; follow the current tool schema instead of earlier delivery instructions.
Author the content
Send the markup itself in widget_code. Use an HTML or SVG fragment, optionally
including <style> and <script>; OpenClaw supplies the document shell, theme,
and host bridges. Do not send a file path, Markdown fence, full HTML document, or
another application's visualization directive. title is host metadata: start
with useful content rather than repeating the title or drawing dashboard chrome.
Keep a useful initial state in the markup. Use local JavaScript for selections,
filters, parameter changes, and animation. Give the root a unique ID and scope
styles and selectors to it. Insert labels and external data with textContent
instead of interpolating untrusted strings into markup or executable code.
Keep source compact: widget_code is limited to 262,144 characters, pinned HTML
to 256 KiB after wrapping, and Discord source to 48 KiB. Aggregate large datasets
and load a suitable library instead of embedding its distribution in the call.
Libraries and fonts
Scripts, ES modules, stylesheets, and fonts can load from these HTTPS origins:
https://cdnjs.cloudflare.comhttps://cdn.jsdelivr.nethttps://esm.shhttps://unpkg.comhttps://fonts.googleapis.comhttps://fonts.gstatic.comhttps://fonts.bunny.net
Use version-pinned library URLs. For example, load D3 with
<script src="https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js" crossorigin="anonymous"></script>
before the inline script that uses d3. Use a module script for ESM imports.
Transitive imports, font files, and redirects must also stay on allowed origins.
No library, icon set, or font is preloaded. Choose native SVG/CSS for simple
visuals; load a library when its scales, layout, or interaction justify it.
Provide readable fallback content and a visible failure state if an asset fails
to load. Avoid eval-based libraries; unsafe-eval, remote frames, and arbitrary
resource hosts remain unavailable. Images must be embedded as data URLs or drawn
locally. CDN URLs are for public assets, never private data or credentials.
CDN loading does not grant fetch, WebSocket, or host API access. Retrieve data
with the agent's available tools and embed the needed observations for inline
visuals. Use dashboard capabilities for refreshable data, as described below.
Composition and theme
For code explanations, emphasize the relationship being discussed: aligned lanes for concurrent work, labeled edges for ownersh
よくある質問
どの場合にビジュアルを省きますか?
プレーンテキスト、通常の表、またはMermaidブロックで既に答えが説明できる場合に使います。
ビジュアルでアプリの構築が完了しますか?
いいえ。ビジュアルは設計を説明できますが、プロジェクト自体は変更する必要があります。
ダッシュボードのウィジェットとは何ですか?
セッションのボード上にある継続的なビューで、ピン留めして再利用できます。
詳細
作者による元の説明
Create inline visuals for code and explanations, or author persistent OpenClaw dashboard widgets with show_widget.
repo: openclaw/openclaw
人気
- GitHubのスター
- 394k
- ランキング
- #88
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
graincrawl
394k保存されたGranolaのミーティングメモとトランスクリプトを検索し、その新しさを確認して、一定期間の件数を数えるようエージェントを支援します。
似ているスキル
prototype
310k1つの設計上の問い、例えばロジックモデルがしっくりくるか、画面がどう見えるべきかに答えるため、使い捨てのプロトタイプを素早く作ります。
accessibility
280kエージェントが誰にとっても使いやすいインターフェースを作れるように手助けします。目が見えない方や身体の動きに制限のある方など、障害のある人にとってもWebサイトやアプリが正しく動くようにします。
design-system
280kエージェントが既存のコードからデザインシステムを作成する手助けをします。ビジュアル情報を抽出して一貫性をチェックし、レポートとインタラクティブなプレビューを生成します。