実際の製品を操作して、利用者が確認できる動作証拠を集め、検証計画に沿った受け入れレポートとして公開するスキルです。
- 変更後の製品動作を実地で検証したいとき
- 画面キャプチャなどの証拠を集めたいとき
- 検証計画とレポートを作成したいとき
LobeHubの実際のUIコンポーネントやテーマを使った、操作できるHTMLプロトタイプを作るための手順を示します。画面の状態や操作の流れを形にし、設計を確かめる用途に使えます。
Use for interactive HTML prototypes (交互原型) with the real LobeHub UI stack. Excludes production UI implementation.
実行スコア 未検証
インストール方法を見るLobeHubの実際のUIコンポーネントとスタイルを使い、操作できる単一HTMLファイルのプロトタイプを作成する手順を案内します。リポジトリ内の依存関係からランタイムを用意し、React形式のコードで画面や操作を記述します。テーマはOSのライト・ダーク設定に追従させたり、個別に指定したりできます。ビルドやサーバーを使わずにHTMLを開いて確認でき、画面の状態切り替え、操作後の遷移、ボタンなどの操作要素が実際に機能することを重視します。表示確認ではコンソールエラーやスクリーンショットを確認し、必要に応じて狭い画面幅も検討します。
画面の階層や操作の流れを、実物に近いUIで試したいときに向いています。空、読み込み中、エラーなど通常とは異なる状態も含めて、関係者と具体的に確認したい場合に使えます。プロトタイプは、本番画面の実装に入る前に操作や見せ方を検討する用途です。
ランタイムの作成にはリポジトリ内のnode_modulesを使います。初回はbabel.min.jsをunpkgから取得します。本番UIの実装を行うスキルではありません。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。
点数には入れていません。 2026年10月26日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
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.
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
react, react-dom/client, the full @lobehub/ui namespace,
lucide-react and motion from the repo's own node_modules — so tokens/components/
versions match production, and react/emotion/theme-scope are singletons by
construction.entry.mjs also imports @lobehub/ui/theme.css + global.css + style.css (the same
three the app loads in src/layout/GlobalProvider/AppTheme.tsx); esbuild emits them
as lobe-prototype-runtime.css, linked from the template's <head>.window.require shim + babel's transform-modules-commonjs lets the
prototype keep real import statements.setLobeTheme({ appearance }) from prefers-color-scheme (and on change), so
light/dark follow the OS before first paint. Force a theme with
setLobeTheme({ appearance: 'dark' }), or <ThemeScope appearance="dark"> for an
island. The React tree is wrapped in <ConfigProvider motion={motion}> like the app's
AppTheme (motion for Button, Drawer, Modal, …, plus fonts, focus ring and the
popup portal host) and <ToastHost /> for toast.⚠️ Don't re-attempt the pure-CDN route (esm.sh import maps). It was tried and rejected: esm.sh's CJS named-export analysis failed serially across the dep chain and
?bundleleaked an unversionedreact-is404. Bundling from the repo's ownnode_modulesis the only way to match production versions exactly.
Build the runtime into the prototype's directory (any dir works; /tmp is fine):
bash .agents/skills/design-prototype/scripts/build-runtime.sh /tmp/my-proto
Skip if lobe-prototype-runtime.{js,css} + babel.min.js are already there and the
design-system versions haven't bumped. The first run downloads babel.min.js from
unpkg (pinned); later runs reuse it.
Copy references/template.html into the same dir,
rename, and replace the sample App with the real surface. Keep the runtime shim
block untouched.
Open it (open /tmp/my-proto/xxx.html) — no server, no build.
Headless-check it renders with zero console errors (the repo's e2e Playwright works):
// node /tmp/check.mjs — adjust paths
import { chromium } from '<repo>/e2e/node_modules/playwright/index.mjs';
const b = await chromium.launch();
const p = await b.newPage();
const errs = [];
p.on('pageerror', (e) => errs.push(String(e)));
await p.goto('file:///tmp/my-proto/xxx.html');
await p.waitForSelector('#root *', { timeout: 30000 });
await p.screenshot({ path: '/tmp/proto.png' }); // Read the screenshot yourself
console.log('errors:', errs);
await b.close();
Then Read the screenshot — a prototype is a visual deliverable; don't ship it
sight-unseen. Check light + dark (emulate prefers-color-scheme) and a narrow
viewport if the surface has a mobile story.
See assets/entry.mjs — the single source of truth. Currently:
@lobehub/ui: full namespace — every component (Button, Input, Modal,
createModal, confirmModal, Table, Switch, Checkbox, Radio, Badge,
Progress, Slider, Steps, Divider, DropdownMenu, Accordion, Collapsible,
Spin, Skeleton, DraggablePanel, FloatingSheet, …) plus toast / ToastHost,
MotionProvider, setLobeTheme, ThemeScope, useThemeMode, useTheme, and the
styling API createStaticStyles, cssVar, cx, css, keyframes, responsive,
useResponsive@lobehub/icons: Amp, ClaudeCode, Codex, HermesAgent, OpenClaw, OpenCodelucide-react, motion/react, motion/react-m, react, react/jsx-runtime,
react-dom, react-dom/client: full namespacesNot included: @lobehub/ui/form, @lobehub/ui/pro-table, @lobehub/ui/chat and the
other subpaths — add import * as x from '@lobehub/ui/<sub>' + a '@lobehub/ui/<sub>': x
entry and rebuild (~2s). Size ≈ 17MB JS + 0.3MB CSS (fine from disk).
toast.success(…) + <ToastHost />; dialogs: Modal, createModal,
confirmModal.DropdownMenu items={…} (opens on click); context menus: ContextMenuTrigger.Flexbox horizontal gap={…} / Center / Grid — there is no Space.Accordion for several sections, Collapsible for one region.Badge, Checkbox, Divider, Progress, Radio, Slider, Steps, Switch,
Table (columns / dataSource / rowSelection) are root exports.node_modules/@lobehub/ui/es/index.d.mts rather than
guessing; an unknown import is undefined at runtime, not a build error.createStaticStyles + cssVar.* exactly as production does — it is
emotion-backed and inserts at call time, so it needs no build step. Tokens resolve
to var(--lobe-*) and flip with the theme; never hardcode light/dark colors.lobe-base, lobe-popup, lobe-ui), so
any unlayered CSS in the prototype's <style> beats them. Override through
className / style / classNames / styles slot props, not global selectors
like button { … }.<link> to lobe-prototype-runtime.css — without it components render
unstyled and --lobe-* tokens are undefined.<script src> chokes on export.Text type accepts only secondary|success|warning|danger|info; Tag color has
no primary (DESIGN.md "Applying tokens in components").A prototype is a surface — the ux checklists apply to what it demonstrates:
DraggablePanel
(collapse + drag-resize come free), loading follows the ux skill's feedback §4.1
scenario table (Skeleton / Spin, variant="network" only for AI work), modals via createModal-style flows.cursor: zoom-in with no zoom, keycap
chips with no keys) — in an interactive prototype a dead affordance is a spec bug.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
実際の製品を操作して、利用者が確認できる動作証拠を集め、検証計画に沿った受け入れレポートとして公開するスキルです。
LobeHubにAIモデルプロバイダーを追加し、実行時連携からモデル表示、設定、ブランド表記、文書化、動作確認まで進めるスキルです。
ユーザー設定の初期値をサーバー側の環境変数で切り替えるため、型定義や設定の組み立て、ユーザーストアへの反映、環境変数の例と説明書きを追加する手順です。
エージェント実行中の各段階をフックで監視し、ツール呼び出しの模擬・制御や人の承認、圧縮、サブエージェント処理に介入する仕組みを扱います。
イベントを起点にエージェントのバックグラウンド処理を組み立て、ソース・シグナル・アクション・ポリシーの役割分担や非同期連携を実装するためのスキルです。
DiscordやSlackなどの実際のチャットアプリでボットにメッセージを送り、応答を画面で確認する受け入れテストを行うスキルです。