Huashu Design: The Skill That Turns AI Prompts Into Polished Design Files

A deep dive into the repo that treats HTML as a rendering engine, bakes design judgment into `SKILL.md`, and exports the same artifact to web, slides, and video.

9 min read • View on GitHub • More from alchaincyf

A drafting table with one central HTML canvas, a slide deck sliding out to one side, and a film reel unwinding to the other. A mechanical rulebook labeled SKILL.md feeds the whole setup from above. It explains that the project turns one design source into multiple deliverables instead of stopping at a mockup.
Huashu Design treats HTML as the center of a production pipeline, not the endpoint.
Key Takeaways

The prompt is not the product

Huashu Design starts from a simple but unusual premise: the thing you ask for is not the thing you ship. The prompt is only the input. The output is a usable design artifact that can become an HTML prototype, a deck, or a video without needing a traditional app in between.

That matters because most agent tools still optimize for code completion. Huashu Design optimizes for artifact production. It uses HTML as a rendering substrate, then layers automation on top so the same source can be pushed into different formats.

That framing makes the repo feel less like a component library and more like a workflow engine. It is trying to close the gap between design intent and something a team can actually review, present, or iterate on.

`SKILL.md` is the real interface

The center of gravity is `SKILL.md`. In this repo, the skill file is not a README dressed up as documentation. It is a policy layer that tells the agent how to think, what to verify, and how to shape output before any UI is rendered.

That is the big conceptual move. Instead of asking a model to improvise a design, Huashu Design constrains it into a persona-driven workflow with rules, checks, and design philosophies. The result is less like a plugin and more like a creative operating system.

One prompt becomes one governed pipeline, then fans out into multiple deliverables.

The repo's real interface is not a UI widget. It is the contract encoded in the skill. That contract decides whether the agent behaves like a designer, a verifier, or an exporter, and it keeps those roles from collapsing into generic slop.

Why the output feels high-fidelity

The outputs feel polished because the repo does not let the model stay abstract for long. Device shells, motion primitives, and rendering constraints force the design into concrete form. Once the agent has to land inside a real frame, generic answers get much harder to hide.

The research points to a small but important stack: device wrappers, animation helpers, and export scripts. Together they create a narrow path from concept to artifact. Narrow paths are good when the goal is quality, not novelty for its own sake.

A close-up of SKILL.md as a rulebook feeding a small automaton. The automaton must choose between three doors labeled verify, design, and export, while rails and checklists keep it from wandering. It explains that the repo controls agent behavior before it renders output.
The skill file does the constraining so the agent can do less guessing and more designing.
function Sprite({ from = 0, to = 1, children }) {
  const t = useTime();
  const localT = clamp((t - from) / (to - from), 0, 1);
  const eased = Easing.expoOut(localT);
  return children(eased);
}

function Stage({ duration, children }) {
  return <TimeContext.Provider value={duration}>{children}</TimeContext.Provider>;
}

The important detail is not the syntax. It is the discipline. The model is being asked to render within wrappers that already know how a device should look and how motion should behave.

How motion is manufactured

The motion system described in the research is small, but it is enough. A `Stage` provides the timeline, `Sprite` objects map global time to local time, and interpolation plus easing functions turn that time into movement. That is a clean abstraction for agent-generated motion because it makes animation predictable.

This is the right level of runtime for a project like this. It does not need a giant animation framework. It needs a model that can say, with confidence, when something enters, when it settles, and how it exits.

const localT = clamp((t - from) / (to - from), 0, 1);
const eased = Easing.expoOut(localT);
const x = interpolate(eased, [0, 1], [24, 0]);
const opacity = interpolate(eased, [0, 1], [0, 1]);

That tiny runtime is the bridge between a static design and a movement-aware artifact. It gives the agent enough structure to produce something that feels authored rather than merely generated.

The escape hatches into slides and video

The practical payoff shows up in the export path. `html2pptx.js` translates DOM into editable slide objects. `render-video.js` uses Playwright and FFmpeg to turn timeline-based HTML into video. That means one source artifact can become several presentation formats without being redrawn by hand.

WorkflowPrimary outputStrengthWeaknessWhat Huashu Design changes
Traditional UI libraryReusable componentsBroad coverage and familiar patternsStill requires a human to assemble the storyMoves the system toward finished artifacts, not just parts
Prompt to screenshotStatic imageFast visual feedbackNot editable and usually brittleKeeps the source alive as HTML and DOM
Huashu DesignWeb, PPTX, videoOne governed pipeline, multiple deliverablesNarrower than a full design systemTreats export as part of design, not a separate step

That shift matters because it changes the unit of work. The unit is no longer a component or a screenshot. It is a design artifact with export paths.

The real comparison is with conventional UI kits

Compared with Ant Design, MUI, Chakra, or a plain React stack, Huashu Design is not competing on breadth. It is competing on workflow compression. Traditional UI kits help you assemble interfaces. This repo tries to help an agent produce something closer to a finished deliverable.

That makes the trade-off clear. A UI kit gives you many components and a mature ecosystem. Huashu Design gives you a narrower path with stronger constraints around output quality, verification, and export.

ApproachOptimized forBest atLess good atHuashu Design's difference
Traditional UI kitReusable UI constructionShipping app interfaces fastArtifact generation across formatsTurns HTML into a design runtime
Prompt-to-screenshot toolsVisual speedQuick mockupsEditability and downstream useKeeps outputs structured and exportable
Normal design-to-code flowHuman handoffMoving from design to implementationBridging the gap cleanlyCollapses the gap into one governed pipeline

The comparison is not about superiority. It is about category. Huashu Design is not a bigger UI kit. It is a different answer to how agents should produce design work.

What this means for agentic design

The most interesting implication is that the future may reward systems that constrain models well, not just systems that generate a lot. Huashu Design suggests that agentic design gets better when the model is forced to verify facts, follow a design philosophy, and render through a disciplined pipeline.

That is a meaningful shift. The question stops being, can the model make a screen. The question becomes, can it behave like a reliable designer who can produce something the rest of the team can use without a cleanup pass.