visualize
Skill này làm gì
Skill hướng dẫn một agent AI dùng công cụ show widget để trình bày sơ đồ, biểu đồ hoặc khung nhìn tương tác khi chúng giúp bạn hiểu kết quả. Dành cho người học tốt hơn qua hình ảnh so với văn bản dài.
Khi nào nên dùng
- ✓Khi một sơ đồ cấu trúc mã hoặc luồng sẽ giúp giải thích rõ hơn.
- ✓Khi một so sánh hoặc kết quả đo lường dễ đọc hơn dưới dạng biểu đồ hoặc bảng.
- ✓Khi bạn muốn một bảng điều khiển lâu dài kết hợp nhiều khung nhìn trên bảng của mình.
Liên kết skill
https://github.com/openclaw/openclaw/blob/main/skills/visualize/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem hình trực quan về cách luồng đăng nhập chuyển giữa ba dịch vụ này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill quyết định xem hình ảnh có giúp ích không, rồi xây dựng hình trực quan trong cùng cuộc trò chuyện hoặc dưới dạng widget bảng điều khiển. Nó ghi rõ các thiết kế đề xuất và dữ liệu mẫu để không bị nhầm với hành vi đã quan sát.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Khi nào nó bỏ qua hình trực quan?
Văn bản thuần, bảng thường hoặc khối Mermaid được dùng khi chúng đã giải thích đủ câu trả lời.
Hình trực quan có hoàn tất việc xây dựng ứng dụng không?
Không. Hình trực quan có thể minh họa thiết kế, nhưng dự án vẫn phải được thay đổi.
Widget bảng điều khiển là gì?
Đó là một khung nhìn lâu dài trên bảng phiên, có thể ghim và tái sử dụng.
Chi tiết
Mô tả gốc của tác giả
Create inline visuals for code and explanations, or author persistent OpenClaw dashboard widgets with show_widget.
repo: openclaw/openclaw
Độ phổ biến
- Sao GitHub
- 394k
- Vị trí xếp hạng
- #88
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
graincrawl
394kCho phép agent của bạn tìm trong ghi chú cuộc họp và bản chép lời Granola đã lưu, kiểm tra độ mới và đếm số cuộc họp trong một khoảng thời gian.
Skill tương tự
prototype
310kXây dựng một bản mẫu nhanh dùng một lần để trả lời một câu hỏi thiết kế, như mô hình logic có hợp lý không hoặc một màn hình nên trông ra sao.
accessibility
280kGiúp agent của bạn tạo giao diện mà ai cũng dùng được, đảm bảo website và app hoạt động tốt với người khuyết tật như người mù hoặc khó vận động.
design-system
280kGiúp agent của bạn tạo design system từ code có sẵn. Agent trích xuất thông tin giao diện, kiểm tra tính nhất quán và tạo báo cáo cùng bản xem trước.