mdocUI
OfficialGenerate interactive LLM UI in one markdown stream.
Software Engineering#zod validation#system prompt generation#mdocui#llm streaming#react renderer#markdoc tags
Authormdocui
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you build mdocUI “generative UI” outputs that mix normal markdown prose with interactive {% %} components, so you can stream content to users and still capture actions (buttons, forms, links) reliably.
Core Features & Use Cases
- Produce mdocUI markup for streaming: Write tags like
{% chart ... /%}and{% button ... /%}alongside prose, using the Markdoc{% %}tag syntax inline. - Auto-generate correct system prompts: Use
generatePrompt()with a component registry so your LLM receives the exact tag syntax, component signatures, nesting rules, and streaming guidance. - Render interactive components with React: Use
useRenderer()+Rendererto parse streamed text into a typed AST and render components with shimmer placeholders and error boundaries. - Handle interactions safely: Centralize all UI events through
onAction, validate rendered props with Zod in dev, and recover from component render errors without breaking the rest of the UI. - Style from the app, not the model: Keep the library theme-neutral and apply
classNamesor CSS selectors targetingdata-mdocui-*attributes.
Quick Start
Ask your AI coding agent to add mdocUI to your project, generate a system prompt from the default component registry, then stream LLM output into a React Renderer using useRenderer().
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mdocUI Download link: https://github.com/mdocui/mdocui/archive/main.zip#mdocui Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.