Agent skill · Frontend

design-prototype

Produce an interactive single-file HTML design prototype using the REAL LobeHub design system (@lobehub/ui + antd + antd-style tokens) with production-style React — no build step, opens directly in a browser. Use when asked for a design prototype / interactive mockup / 交互原型 / 出个原型 / 设计稿 HTML for a page or flow, or to explore a redesign before committing to implementation.

LobeHub80,937★ · +310/wk · 1 repos on radarProfile →
claude-codeships scriptsNOASSERTION
Install
npx skills add lobehub/lobehub --skill design-prototype --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 6 KB
Bundled scripts: yes
Path: .agents/skills/design-prototype/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 81,252 · +315 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Design Prototype One HTML file, double-click to open, fully interactive, rendered by the **actual design system** (`@lobehub/ui` 5.x + antd 6 + antd-style tokens, exact versions from this repo's `node_modules`) — while the source stays **production-style React** (`import { Block } from '@lobehub/ui'`, `createStyles(({ css, token }) => …)`, hooks, `memo`). Promotion to production is mostly "split into files", not "rewrite". Prototype code may be quick-and-dirty (one file, no i18n, inline data) — but the **interaction must be complete**: states, transitions, and affordances are the point of a prototype, not its code style. ## How it works ``` one-time (~2s, cached): scripts/build-runtime.sh → lobe-prototype-runtime.js (IIFE global) + vendored babel.min.js per prototype (no build): single HTML = <script runtime> + babel-standalone + <script type="text/babel"> with production-style React ``` - The runtime bundles `react`, `react-dom/client`, `@lobehub/ui`, `@lobehub/ui/base-ui`, `antd` (curated subset), `antd-style`, `lucide-react` from the repo's own `node_modules` — so tokens/components/versions match production, and react/emotion/ theme-context are singletons by construction. - A

What's inside
Steps it walks through
  1. How it works
  2. Quickstart
  3. Verify before delivering
  4. What's in the runtime (extend freely)
  5. Pitfalls
  6. Design bar (same as production surfaces)
Ships with 4 files
  • assets/.gitignore
  • assets/entry.mjs
  • references/template.html
  • scripts/build-runtime.sh
Commands it runs
bash .agents/skills/design-prototype/scripts/build-runtime.sh /tmp/my-proto
More from lobehub
All skills →
About this skill
What does the design-prototype skill do?

Produce an interactive single-file HTML design prototype using the REAL LobeHub design system (@lobehub/ui + antd + antd-style tokens) with production-style React — no build step, opens directly in a browser. Use when asked for a design prototype / interactive mockup / 交互原型 / 出个原型 / 设计稿 HTML for a page or flow, or to explore a redesign before committing to implementation.

How do I install it?

Run `npx skills add lobehub/lobehub --skill design-prototype --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From lobehub/lobehub, a repository with 81,252 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going