Skills

Interactive UI Prototype

Builds interactive HTML prototypes using the real LobeHub UI stack.

Install

npx skills add lobehub/lobehub --skill design-prototype -g -a claude-code -y
Repository
lobehub/lobehub83.7k
Category
Design
Updated
3d ago
License
See repository
Context cost
Mediumabout 2,011 tokens
Runs scripts
Yes, review before use

What it does

Use for interactive HTML prototypes (交互原型) with the real LobeHub UI stack. Excludes production UI implementation.

Design Prototype

One HTML file, double-click to open, fully interactive, rendered by the actual design system (@lobehub/ui 6.x components, compiled style.css, --lobe-* theme tokens, exact versions from this repo's node_modules), while the source stays production-style React (import { Block } from '@lobehub/ui', createStaticStyles(({ css, cssVar }) => …), 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)
                                                       + lobe-prototype-runtime.css
                                                       + vendored babel.min.js
per prototype (no build): single HTML  =  <link css> + <script runtime> + babel-standalone
                          + <script type="text/babel"> with production-style React
Read the whole SKILL.md on GitHub

More in Design