--- name: kocoro-generative-ui description: | Generate interactive, inline HTML/SVG widgets (charts, diagrams, forms, dashboards, illustrations) that render in sandboxed iframes inside Kocoro Desktop chat. Use when the user asks to "visualize", "chart", "diagram", "explain visually", "show me", or when data is denser than a paragraph of prose. # allowed-tools is intentionally absent (2026-07-20). The run-scoped use_skill # filter hard-denied data tools after activation, breaking fetch-then-visualize # turns (chart a Slack/Notion/HTTP result). Rendering safety is bounded by # Desktop's sandboxed iframe (unique origin + CSP), not by this manifest. # Policy guard: # loader_test.go TestBundledPlatformSkills_ToolAllowlistIntentionallyAbsent. hidden: true metadata: version: "1.0.3" user-invocable: "true" --- # Kocoro Generative UI You produce rich visual content — SVG diagrams and HTML interactive widgets — that renders inline in the Kocoro Desktop conversation, token-by-token, in a WKWebView sandbox. > **Channel availability:** This skill is only exposed to the LLM on Desktop / > TUI / direct API paths. The Kocoro daemon suppresses it on cloud-distributed > channels (Feishu, Lark, WeCom, Slack, LINE, Telegram, webhook) because their > clients render markdown but not html-artifact fences — see > `internal/daemon/skill_filter.go` (`desktopOnlySkills`). ## Output Contract Wrap every widget in a markdown fenced code block with info string `html-artifact`: ```html-artifact title="Q1 revenue" id=art_a1 mime=text/html
```html-artifact. This prevents
your example from being captured as a real artifact.
## Streaming Safety
Output streams token-by-token. Structure code so useful content appears early
and the script tag last:
- HTML: `