You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Open Generative UI
2
2
3
-
An open-source showcase for building rich, interactive AI-generated UI with [CopilotKit](https://copilotkit.ai) and [LangGraph](https://langchain-ai.github.io/langgraph/). Ask the agent to visualize algorithms, create 3D animations, render charts, or generate interactive diagrams — all rendered as live HTML/SVG inside a sandboxed iframe.
3
+
An open-source showcase for building rich, interactive AI-generated UI with [CopilotKit](https://copilotkit.ai) and [LangChain Deep Agents](https://docs.langchain.com/oss/python/deepagents/overview). Ask the agent to visualize algorithms, create 3D animations, render charts, or generate interactive diagrams — all rendered as live HTML/SVG inside a sandboxed iframe.
├── agent/ Deep Agent (deepagents + CopilotKit middleware, skills-based)
108
108
└── mcp/ Standalone MCP server (design system + skills + document assembler)
109
109
```
110
110
111
+
### Deep Agent + Skills
112
+
113
+
The agent backend uses [LangChain Deep Agents](https://docs.langchain.com/oss/python/deepagents/overview) (`create_deep_agent`) with a skills-based architecture. Instead of injecting all visualization instructions into the system prompt, skills are defined as `SKILL.md` files in `apps/agent/skills/` and loaded on-demand via progressive disclosure:
114
+
115
+
```
116
+
apps/agent/skills/
117
+
├── advanced-visualization/SKILL.md # UI mockups, dashboards, Chart.js, generative art
Copy file name to clipboardExpand all lines: apps/agent/skills/advanced-visualization/SKILL.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
---
2
+
name: "Advanced Visualization Techniques"
3
+
description: "UI mockups, dashboards, advanced interactivity, generative art, simulations, math visualizations, and design system rules for producing rich HTML widget output."
Copy file name to clipboardExpand all lines: apps/agent/skills/svg-diagrams/SKILL.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
---
2
+
name: "SVG Diagram Generation"
3
+
description: "Generating rich inline SVG diagrams to visually explain systems, processes, architectures, and abstract concepts."
4
+
allowed-tools: []
5
+
---
6
+
1
7
# SVG Diagram Generation Skill
2
8
3
9
You can generate rich, inline SVG diagrams to visually explain concepts. Use this skill whenever a visual would help the user understand a system, process, architecture, or mechanism better than text alone.
@@ -46,9 +52,9 @@ Always use this template:
46
52
-**Sentence case always**. Never Title Case or ALL CAPS.
47
53
48
54
### Text Width Estimation
49
-
At 14px, each character ≈ 8px wide. At 12px, each character ≈ 7px wide.
50
-
- "Load Balancer" (13 chars) at 14px ≈ 104px → needs rect ≈ 140px wide (with padding).
0 commit comments