CopilotKit/OpenGenerativeUI is an open-source showcase for AI-generated user interfaces, where an agent creates live interactive HTML and SVG visualizations instead of returning only text. It is used to build algorithm demonstrations, 3D scenes, charts, diagrams, forms, simulations, and mathematical plots rendered in sandboxed iframes. The catalogue skills and instruction support working with this generative UI project.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add CopilotKit/OpenGenerativeUI --skill advanced-visualizationgit clone --depth 1 https://github.com/CopilotKit/OpenGenerativeUIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/copilotkit/opengenerativeui/advanced-visualization)<a href="https://agentmods.dev/skills/copilotkit/opengenerativeui/advanced-visualization"><img src="https://agentmods.dev/badge/skills/copilotkit/opengenerativeui/advanced-visualization/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/copilotkit/opengenerativeui/advanced-visualization"><img src="https://agentmods.dev/badge/skills/copilotkit/opengenerativeui/advanced-visualization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Prompt Injection · line 129 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
- high Prompt Injection · line 380 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.08460 |
| Opus 5.5 | $0.00015 | $0.03384 |
| Sonnet 5.5 | $0.00007 | $0.01692 |
| Haiku 4.5 | $0.00004 | $0.00846 |
Grade A, and why
Advanced Visualization Techniques scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 963 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Visualization Skills — Volume 2: Advanced Techniques
Prerequisite: Volume 1 (SVG diagrams, basic interactive widgets, Chart.js, Mermaid). This volume covers: UI mockups, dashboards, advanced interactivity, generative art, simulations, math visualizations, and the design system that ties everything together.
Part 0: The Tool Contract — generateSandboxedUi
Everything in this volume ships through the generateSandboxedUi tool. The UI
streams as you generate it, so emit the parameters in this EXACT order:
initialHeight— estimated height of the finished UI in px.placeholderMessages— 2-4 short, playful progress messages.css— ALL styles, up front. The user sees a placeholder until css is complete, so keep it lean and put every style here for the css-first reveal.html— clean body markup, streamed in live. No<style>blocks (the css parameter owns all styles), no monolithic inline<script>blocks.jsFunctions— named function declarations: the reusable toolbox of behavior.jsExpressions— small statements invoking those functions, applied one-by-one so the user watches each take effect.
Write parameterized generators in jsFunctions (drawWing(color), not
drawRedWing()). A well-parameterized toolbox lets a later refinement turn —
"make the wings red" — append ONE new expression to jsExpressions instead of
regenerating the whole document.
The sandbox iframe has NO same-origin access: no localStorage, sessionStorage,
cookies, IndexedDB, or same-origin fetch. The host bridge is
await Websandbox.connection.remote.sendPrompt({ text }) and
await Websandbox.connection.remote.openLink({ url }) (https only). The design
system (Part 1) and an importmap for three, gsap, d3, and chart.js
(Part 7) are pre-injected.
Part 1: The Design System
Every visual you produce should feel native to the host interface — not like an embedded iframe from somewhere else. These rules apply to ALL output types.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 963 lines · 37 tokens per session scan A b134d0b46656
Advanced Visualization Techniques is a skill published in the GitHub repository CopilotKit/OpenGenerativeUI (4,262 stars, last pushed 12d ago), licensed MIT. It adds 37 tokens to every session and 8,460 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Advanced Visualization Techniques compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Advanced Visualization TechniquesCopilotKit/OpenGenerativeUI | Skill | 4.3k | 12d ago | MIT | A | 37 | Claude Code |
| Advanced Visualization Techniquesbubba2koldd-design/OpenGenerativeUI | Skill | 7 | 1mo ago | MIT | A | 35 | Claude Code |
| SVG Diagram Generationbubba2koldd-design/OpenGenerativeUI | Skill | 7 | 1mo ago | MIT | A | 22 | Claude Code |
| Master Agent Playbookbubba2koldd-design/OpenGenerativeUI | Skill | 7 | 1mo ago | MIT | A | 27 | Claude Code |
| paperclip-capsulespaperclipai/paperclip | Skill | 119k | today | MIT | A | 41 | Claude Code, Codex |
| sage-reviewkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 68 | Claude Code, Codex |
| theme-pack-authoringkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 64 | Claude Code, Codex |