visualize
Was er macht
Er führt einen KI-Agenten an, das Werkzeug show-widget zu nutzen, um Diagramme, Grafiken oder interaktive Ansichten zu zeigen, wenn sie beim Verstehen eines Ergebnisses helfen. Er ist für Menschen gedacht, die mit Bildern besser lernen als mit langen Texten.
Wann du ihn nutzt
- ✓Wenn ein Diagramm einer Code-Struktur oder eines Ablaufs eine Erklärung klarer machen würde.
- ✓Wenn sich ein Vergleich oder ein gemessenes Ergebnis als Grafik oder Tabelle besser lesen lässt.
- ✓Wenn du ein dauerhaftes Dashboard willst, das mehrere Ansichten auf deinem Board zusammenführt.
Link zum Skill
https://github.com/openclaw/openclaw/blob/main/skills/visualize/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Zeig mir eine Grafik, wie der Login-Ablauf zwischen diesen drei Diensten verläuft.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill entscheidet, ob ein Bild hilft, und baut die Grafik dann im selben Gespräch oder als Dashboard-Widget. Vorgeschlagene Entwürfe und Beispieldaten kennzeichnet er klar, damit sie nicht mit beobachtetem Verhalten verwechselt werden.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Wann verzichtet er auf die Grafik?
Reiner Text, eine normale Tabelle oder ein Mermaid-Block werden verwendet, wenn sie die Antwort bereits erklären.
Schließt eine Grafik einen App-Build ab?
Nein. Eine Grafik kann einen Entwurf veranschaulichen, das Projekt selbst muss aber trotzdem geändert werden.
Was ist ein Dashboard-Widget?
Es ist eine dauerhafte Ansicht auf einem Sitzungs-Board, die angeheftet und wiederverwendet werden kann.
Details
Originalbeschreibung des Autors
Create inline visuals for code and explanations, or author persistent OpenClaw dashboard widgets with show_widget.
repo: openclaw/openclaw
Beliebtheit
- GitHub-Sterne
- 394k
- Platz im Ranking
- #88
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
discord-user-post
394kLässt deinen Agenten eine von dir freigegebene Nachricht über die Discord-Desktop-App als du in Discord posten, nachdem der genaue Kanal bestätigt wurde.
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
gitcrawl
394kLässt deinen Agenten ein gespeichertes Archiv von GitHub-Issues und Pull Requests durchsuchen, Duplikate gruppieren und ihren aktuellen Status auf GitHub prüfen.
graincrawl
394kLässt deinen Agenten gespeicherte Granola-Besprechungsnotizen und Transkripte durchsuchen, deren Aktualität prüfen und sie über einen Zeitraum zählen.
Ähnliche Skills
prototype
310kBaut einen schnellen Wegwerf-Prototyp, um eine Designfrage zu beantworten, etwa ob ein Logikmodell stimmig wirkt oder wie ein Bildschirm aussehen sollte.
accessibility
280kHilft deinem Agenten, barrierefreie Oberflächen zu bauen. Websites und Apps werden so auch für Blinde und Menschen mit eingeschränkter Mobilität gut nutzbar.
design-system
280kHilft deinem Agenten, aus bestehendem Code ein Design-System zu bauen. Extrahiert visuelle Infos, prüft die Konsistenz und erstellt einen Bericht und eine interaktive Vorschau.