baoyu-design: The Local Design OS for AI Agents

A portable Agent Skill that turns files, prompts, and scripts into self-contained UI mockups, prototypes, and decks without leaving your IDE.

9 min read • View on GitHub • More from JimLiu

A developer desk becomes a local design lab. An IDE glows on one side while file folders marked SKILL.md, system-prompt.md, _d_meta.json, and _ds_manifest.json sit nearby like portable parts of a workflow. The scene explains that the project treats design generation as a file-based runtime instead of a web app.
The repo’s thesis is portability. Design work moves from a hosted interface into files the agent can load, inspect, and reuse.
Key Takeaways

Most design generators start with output. baoyu-design starts with workflow. That is why it feels less like a UI toy and more like infrastructure for agents that need to make, revise, and ship polished interfaces from inside an IDE.

The project’s premise is simple and unusual at the same time. Take the Claude Design experience, strip it out of the web app, and rebuild it as a local skill that lives in files. The result is a design runtime an agent can actually carry around.

Why this repo matters

The best way to understand the repo is to stop thinking about it as a library. It is a local operating layer for design tasks. Instead of pushing prompts into a hosted sandbox, the agent works through SKILL.md, system-prompt.md, scripts, and project-local artifacts.

Run Claude Design locally as an Agent Skill — Cursor, Claude Code & more. Produce polished UI mockups, prototypes, decks & wireframes as self-contained HTML, without claude.ai/design. Best with Opus 4.8.

Jim Liu, Author/Maintainer · GitHub - JimLiu/baoyu-design

That matters because the normal design-agent stack is fragmented. Web tools are polished but closed. Raw chat is flexible but manual. Local scaffolding is powerful but clumsy. This repo tries to collapse those tradeoffs into one portable workflow that stays close to the codebase.

The core trick: a design workflow that travels

The first clever move is harness agnosticism. The skill can detect where it is running, then map the same design task to the right tools for Cursor or Claude Code. That means the workflow is not pinned to one product’s interface or one vendor’s hidden assumptions.

The workflow is not one-shot generation. It is a loop that loads skills, compiles design assets, records state, checks output, and feeds the next iteration.

The bigger idea is that the skill itself becomes the control plane. The agent does not improvise the workflow from scratch each time. It follows a reusable path: clarify, explore, create, verify. That makes the design process repeatable, which is the difference between a prompt and a system.

How the system turns files into memory

The asset layer is the quiet genius here. Instead of a database, the repo uses the filesystem as memory. A lightweight _d_meta.json file tracks versions, dimensions, and review state. That gives the agent enough history to know what changed, what was approved, and what still needs attention.

DimensionWeb design toolsbaoyu-design
StateMostly hidden inside a SaaS workflowStored locally in _d_meta.json and project files
IterationOften managed through app-specific historyVisible as filesystem artifacts the agent can inspect
PortabilityTied to the platformMoves with the project and the IDE
Review stateUsually implicitExplicit through metadata and verification scripts

This is a small implementation choice with large consequences. A file-based memory model means the agent can return to a project days later and still understand the artifact trail without needing a backend service to reconstruct the context.

A close-up pipeline shows JSX and TSX files entering a compiler funnel, then emerging as a self-contained HTML artifact and a compact manifest. A side channel pulls in local fonts and images so the final output can travel with the project. The image explains how the repo converts source components into portable design assets.
The mini-compiler is the bridge between reusable component code and a self-contained artifact the agent can ship or inspect.

The mini-compiler behind the design system

This is where the repo stops feeling like prompt orchestration and starts looking like software engineering. compile-design-system.mjs and import-design-system.mjs act like a mini-compiler chain. JSX and TSX are bundled just in time, design-system code is copied into a project-local _ds/ folder, and local assets are pulled along so the final HTML stays standalone.

That architecture is doing three jobs at once. It normalizes component code, it preserves portability, and it keeps the result inspectable. The agent is not just generating screens. It is assembling an artifact with a reproducible provenance.

// Simplified shape of the workflow
loadSkill('SKILL.md')
loadWorkflow('system-prompt.md')
compileDesignSystem('compile-design-system.mjs')
importDesignSystem('import-design-system.mjs')
recordAsset('_d_meta.json')
verify('check-design-system.mjs')
renderSelfContainedHTML()

The project also treats visual style as binding, which is subtle and important. The style reference is not the logic. The logic is the workflow. That separation lets the agent reuse the same system while swapping visual language, like changing the skin on a machine without changing the machine itself.

What makes this different from v0, Galileo, or chat-based prompting

The comparison is not really about who makes prettier UI. It is about control surfaces. v0 and Galileo are managed products. Direct chat prompting in Claude or ChatGPT is flexible, but it stays manual. baoyu-design makes the workflow local, scriptable, and versioned.

ApproachHostingOutputWorkflow controlPortability
v0.devHosted SaaSReact-oriented UI outputHigh-level product workflowLow, tied to platform
Galileo AIHosted SaaSEditable UI designHigh-level product workflowLow, tied to platform
Direct Claude or ChatGPT promptingChat interfaceAd hoc code or mockupsManual copy-paste iterationMedium, but labor intensive
baoyu-designLocal skill inside IDESelf-contained HTML artifactsScripted agent workflowHigh, files travel with the project

The distinction matters for teams that care about provenance, privacy, and repeatability. If the design artifact lives beside the code, then review, reuse, and iteration all become part of the same local loop. That is a different product category from a hosted prompt box.

What this suggests about the future of UI tooling

The interesting future is not simply that AI generates interfaces faster. It is that design tooling becomes composable. A design system can be imported. A mockup can be verified. A deck can be emitted as HTML. An agent can move through those steps as a skill, not as a one-off conversation.

That is the larger bet in this repo. UI creation stops being a separate destination and starts acting like a local capability the agent can invoke on demand. In that world, the best design tools are not necessarily the flashiest apps. They are the ones that can live inside the workflow without disappearing into it.