Back to skills
SKILL.md
Stageshow
ASecurity产品动效演示(Stageshow · Gonggong)。Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor: 官网首屏产品演示、带光标轨迹的功能操作演示、特性多格便当墙、桌面窗口与手机界面动效、通知气泡与聊天线程。Use whenever someone asks for a product UI demo, animated hero, cursor walkthrough, feature bento grid, mocked software animation, or invokes the stageshow plugin or /stageshow command. React + plain CSS, self-rehearsed with headless Chrome and delivered as a hosted interactive web preview with keyfram...
- 28 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
92/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 20 files and shows the line behind each finding
npx -y skills add yoqu/gonggong-space --skill stageshow --agent claude-codeAre you the author of Stageshow?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/yoqu-stageshow)---
name: stageshow
description: "产品动效演示(Stageshow · Gonggong)。Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor: 官网首屏产品演示、带光标轨迹的功能操作演示、特性多格便当墙、桌面窗口与手机界面动效、通知气泡与聊天线程。Use whenever someone asks for a product UI demo, animated hero, cursor walkthrough, feature bento grid, mocked software animation, or invokes the stageshow plugin or /stageshow command. React + plain CSS, self-rehearsed with headless Chrome and delivered as a hosted interactive web preview with keyframe sheets."
license: MIT
metadata:
version: 1.1.1
---
# 产品动效演示(Stageshow in Gonggong)
本插件封装 Benji Taylor 开源的 **Stageshow**(MIT),面向共工空间补充了环境预检、中文界面与字体兜底、设计系统对接、无第三方商标红线、静态打包托管与群内关键帧预览交付闭环。
## 一、共工专属执行规范(每次任务必读)
### 1. 先查环境,缺了直接提醒,绝不自行装软件
动手前先运行一次环境预检:
```bash
node -v
CHROME="${CHROME_PATH:-$(command -v google-chrome || command -v chromium || ls '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' 2>/dev/null || ls '/Applications/Chromium.app/Contents/MacOS/Chromium' 2>/dev/null || true)}"
echo "CHROME=$CHROME"
```
- **Node.js 低于 20.19 或未安装**:立即停下,在群里说明需要 Node.js 20.19+(如 `brew install node` 或 `nvm install 22`),**不要自行安装系统软件**。
- **未找到 Chrome / Chromium**:提示群里缺少本机浏览器,无法运行 `scripts/film.mjs --gate` 关键帧自查。如果仅做静态构建打包仍可继续(须在交付说明里明确标注“本机缺少 Chrome,未执行关键帧录屏自查”),**不要自行下载安装浏览器**。
- **npm 依赖仅在工作区工程目录局部安装**:只在产物项目目录下执行 `npm install`,不要全局安装工具包;如果无外网导致无法拉取 `playwright-core`,可继续完成网页构建并在交付时如实说明跳过了录屏自查。
### 2. 中文界面文案、字体兜底与设计系统对接
- **默认中文**:除非参数指定 `English`,所有界面文案、标题、按钮、Toast、通知、日期与数字格式一律使用自然简洁的**简体中文**,`<html lang="zh-CN">`。
- **字体兜底**:`kit/stage.css` 与所有 `design-systems/*/tokens.css` 已内置中文字体回退栈:
- 正文:`--ss-font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;`
- 等宽:`--ss-mono: "SF Mono", "SFMono-Regular", ui-monospace, Consolas, "PingFang SC", monospace;`
- 自定义样式不得覆盖为纯英文字体栈;滚动数字与金额加 `font-variant-numeric: tabular-nums`,确保中文标签与数字不换行、不截断。
- **对接设计系统**:
- 按指令读取 `<skill>/design-systems/<id>/DESIGN.md` 与 `tokens.css`(或本群导入的 `DESIGN.md` / 参考网站风格),将其复制到 `<dir>/project/src/tokens.css`,并在 `demoMeta.lookClass`(如 `look-luke-plus`)与 `demoMeta.surface`(`light` / `dark` / `blueprint`)中启用。
- 选中 **「麓客+」(`luke-plus`)** 时:严格保持冷灰白底(`#F5F5F7`)、干净白卡(`#FFFFFF`)、黑色粗体标题、深湖绿主行动色(`#155332`)与克制小圆角,仅在权益/限时角标点缀柠檬黄(`#FEE70F`)。
- 需求方给了产品源码或参考网站时,按 `references/looks.md` 映射真实色板、圆角与字号到 `--ss-*` 令牌。
- **商标与图标合规红线**:
- 本内置插件已清理所有海外第三方商业软件商标与非 MIT 图标,**禁止**手画或从网络拉取第三方商业商标。
- 图标统一用 `kit` 内置 `<Icon name="..." />`(基于 `lucide-react`);产品自有标志使用 `<BrandMark name="产品名" src={本地SVG} />`;虚构示例产品使用 `<BrandMark name="产品名" />` 呈现中性首字徽章。
### 3. 四大预置场景路由
| 模板 ID | 模板名称 | 首选参考 Gold 示例(`<skill>/examples/`) | 构图与节奏要点 |
|---|---|---|---|
| `hero-demo` | 官网首屏演示 | `hero-demo`、`dark-hero`、`static-card`、`payout-flow` | 720×380 到 960×480,主窗口占舞台 ≥ 2/3 并出血一条边,可搭 1 张卫星卡;3–5 个因果节拍 + 高潮停留 |
| `cursor-walkthrough` | 光标操作流演示 | `hero-demo`、`ai-chat`、`ai-cards`、`form-error`、`share`、`upload`、`reorder`、`table-edit`、`chart-scrub` | 全程由 `Act` 驱动 `data-target` 与 `rect()` 测量落点;每个光标移动皆有因果,无瞬移、无遮挡正文 |
| `feature-bento` | 特性多格卡片 | `bento`、`ruled-bento`、`staggered-bento`、`hero-grid`、`opposite-corners` | 先读 `references/bento.md`;每格一个焦点(主视觉、滚动指标、微交互、连线图),统一边距与层级 |
| `device-motion` | 手机与桌面动效 | `device-pair`、`phone-touch`、`dynamic-island`、`messages`、`swipe`、`window-row` | 用 `Window`、`Phone`、`LockScreen`、`Notification`、`Thread` 原生几何,绝不手画状态栏或底部横条 |
### 4. 工程目录与静态打包(开箱即用可交互网页)
设产物输出目录为 `<dir>`(托管创作模式由指令指定,如 `design/<slug>`;自由创作取简短英文 kebab-case,如 `design/luke-member-hero`):
```text
<dir>/
index.html ← vite build 输出入口(供共工预览 / 托管作品直接打开)
assets/ ← vite build 输出 JS/CSS/静态资源(相对路径 ./assets/)
shots/ ← scripts/film.mjs 产出的 poster.png / contact-sheet.png / mobile.png
REHEARSAL.md ← 自查排练记录(参考的 Gold、改动点、通过项、未检查项)
project/ ← 完整 Vite + React 源码(daemon 上传时自动忽略 node_modules)
package.json
tsconfig.json
vite.config.ts ← base: './',outDir: '..',emptyOutDir: false
index.html
kit/ ← 从 <skill>/kit/ 原样复制
src/
main.tsx ← 含桌面/手机视口、重播、静态封面切换与 ?capture=1 裸舞台模式
viewer.css
tokens.css ← 所选设计系统的 tokens.css
Demo.tsx ← 本次创作的主动效组件(导出 default Demo 与 demoMeta)
demo.css ← 作用域化的演示样式
```
初始化与构建命令(`<skill>` 为本 `SKILL.md` 所在绝对路径):
```bash
mkdir -p "<dir>/project" "<dir>/shots"
cp -R "<skill>/starter/." "<dir>/project/"
cp -R "<skill>/kit" "<dir>/project/kit"
cp "<skill>/design-systems/<ds-id>/tokens.css" "<dir>/project/src/tokens.css"
cd "<dir>/project" && npm install
```
完成编写 `src/Demo.tsx` 与 `src/demo.css` 后执行:
```bash
cd "<dir>/project"
npm run typecheck
npm run build
```
确保 `<dir>/index.html` 与 `<dir>/assets/app.js`、`<dir>/assets/app.css` 均已生成且使用相对路径 `./assets/`。
### 5. 录屏排练与 `--gate` 质检自查闭环
构建完成后,启动临时本地预览服务对**构建产物**(或 Vite 预览)拍帧自查,绝不省略:
```bash
cd "<dir>/project"
npx vite preview --host 127.0.0.1 --port 4179 --strictPort >/tmp/ss-preview.log 2>&1 &
PREVIEW_PID=$!
sleep 1
# 1. 静态海报帧(封面)
node "<skill>/scripts/film.mjs" "http://127.0.0.1:4179/?capture=1" --still --reduced --out "../shots/poster.png"
# 2. 完整循环关键帧联系表 + 质检门禁(宽屏)
node "<skill>/scripts/film.mjs" "http://127.0.0.1:4179/?capture=1" --every 1000 --count 12 --gate --out "../shots/contact-sheet.png"
# 3. 手机窄屏自查(390px)
node "<skill>/scripts/film.mjs" "http://127.0.0.1:4179/?capture=1" --width 390 --every 2000 --count 6 --gate --out "../shots/mobile.png"
kill "$PREVIEW_PID" 2>/dev/null || true
```
- 必须亲自读取 `shots/poster.png`、`shots/contact-sheet.png`、`shots/mobile.png` 进行肉眼复审。
- `--gate` 输出必须以 `rehearsal passed` 结尾;只要出现任何门禁问题(裁剪切字、间距过紧、窗口悬空漂浮、文字换行错位、状态点偏移等),立刻修源码 → 重新 `npm run build` → 重新拍帧,直到全部通过!
- 确认关闭临时 `vite preview` 进程,禁止留下常驻后台进程。
- 将排练记录写入 `<dir>/REHEARSAL.md`(参考模板见 `references/verify.md`)。
### 6. 群内交付规范
1. **托管产物模式**(创作面板或确认卡发起,指令已明确写出 `产物目录:design/<slug>/`):
- 确保 `<dir>/index.html`、`assets/`、`shots/`、`REHEARSAL.md`、`project/` 均已就位,**不需要调用 `preview_static`**(平台会在本轮结束后自动上传为托管产物版本、更新群卡片并进入「作品」)。
- 调用 `send_attachments` 发送 `["<dir>/shots/poster.png", "<dir>/shots/contact-sheet.png"]`,让群友直接在群聊中快速验收关键帧与动效节奏。
2. **非托管模式**(通过 `/stageshow` 命令或在普通群聊里直接提出):
- 调用 `preview_static(dir="<dir>", title="<演示标题>")` 发出群内在线预览卡片;若用户要求沉淀到「作品」以便离线长期访问,可调用 `preview_host(dir="<dir>", title="<演示标题>")`。
- 同时调用 `send_attachments` 发送 `shots/poster.png` 与 `shots/contact-sheet.png`。
3. **最终回复内容**:简洁说明产物目录、所选模板与设计系统、故事节拍与关键改动、`--gate` 质检结果,以及任何未检查项或假设;**不要把大段代码贴进群聊**。
---
## 二、Stageshow 核心方法论
### The One Idea
**It reads as a real product, simplified to what the viewer needs, framed with intent, and every motion has a cause.**
Five ways it fails:
- **Too much.** Real text in every row, numbers everywhere, everything packed. The more detail, the more it looks generated.
- **Wireframe.** Two gray blobs and a button. Built too small, or stripped of what made it recognizable.
- **Boxed.** A whole window shrunk into a card with even margins: a screenshot pasted in, not a product shot.
- **Flat.** Every object the same weight in the same bordered card. The eye has nowhere to land.
- **Bland.** A gray window with a cursor, whatever the brief said. The brief's look and energy (a blueprint, glass over color, a Dynamic Island, a brand palette) are the point; take what it asks for and build it to the rules.
The fix: a full, structured screen in quiet grays, real words only on what the story is about, placeholder lines for the rest, room to breathe, a crop that puts the eye where the story is. Simplify the words, not the context.
These are authored illustrations, not browser automation: `a.click()` draws the cursor pressing, `a.set()` changes the scene.
### Seven-Step Craft Workflow
1. **Medium and place.** Still or animation (`loop`, `once`, or `hover`). Design at 1:1 shown size (~720×380 for hero beside copy, 900–1100 wide for full-width hero, 400×300 for a feature card). Every demo that can sit in a mobile column ships a `compact` design at 358px width — a redesign, not a squeeze (`references/framing.md`).
2. **Look.** Map the selected design system (or product's code/site) to `--ss-*` tokens (`references/looks.md`). Pick theme (`light`, `dark`, `blueprint`, `glass`), palette (`accent`, `mono`) and fidelity (`minimal`, `standard`, `realistic`).
3. **The story.** Three to five causal beats and a payoff, 10–16 seconds (`references/motion.md`). No cursor move without a cause. Data never rewinds in view without a reason. Between a richer story and a calmer frame, choose the frame.
4. **Start from a Gold example.** Pick the closest Gold example in `<skill>/examples/` (see table below) and study its stage size, crop/bleed, row/type sizes, spacing and script beats. Read `references/craft.md` and `references/framing.md` before coding. Replace look and content completely for the brief's product.
5. **The screen.** Keep real words restrained — usually 3 to 7 meaningful strings (`references/craft.md`, Restraint). Build with kit parts (`Bar`, `Text`, `Row`, `Button`, `Card`, `Badge`, `Window`, `Phone`, etc.); never draw lookalikes by hand. Mark every cursor target with `data-target` and `data-cursor`, and measure via `rect()`.
6. **Choreograph.** Use the `Act` API (`set`, `wait`, `move`, `click`, `type`, `mark`, `put`). Keep elements mounted so exits animate cleanly. Animate relationships: a new row pushes rows below it; resizing surfaces never stretch text. Beats overlap, groups stagger, payoff holds for reading time, loop closes smoothly.
7. **Rehearse.** Set `poster` first (the frame that tells the story on its own for thumbnails and reduced motion). Run `scripts/film.mjs --gate` at wide and 390px widths, read every rendered PNG, compare against the closest Gold and `references/teaching.md`, fix until `rehearsal passed`, then write `REHEARSAL.md`.
### Recurring Faults Checklist
- **Content that swaps** instead of moving (`references/motion.md`)
- **Gray bars where the eye lands;** filler belongs at the edges (`references/craft.md`)
- **A plate behind the window, or a window floating** with air on four sides; the hero window or phone fills ≥ 2/3 of the stage and bleeds an edge (`references/framing.md`)
- **Empty bands, cut controls, or clipped shadows**
- **Stock AI clichés and invented marks:** sparkles, gratuitous purple gradients, or a colored initial square beside a real company name
- **Busy rows and uneven insets**
- **Long holds and a reset with no cause**
- **A selection not under the I-beam**
- **Hand-drawn status bars or home indicators** (`Phone` draws both)
- **A centered amount centered with its currency sign**
---
## 三、本地示例库索引(`<skill>/examples/`)
### Gold 示例(品质基线)
| 需求场景 | 示例目录 | 核心借鉴点 |
|---|---|---|
| 静态高精卡片 | `static-card` | 克制层级、硬裁剪、单卫星卡、仅在焦点处放真实文案 |
| 暗色静态卡 | `dark-bento` | 单一焦点信号、视觉层次清晰 |
| 官网动态首屏 | `hero-demo` | 五拍因果节奏、命名目标、标注引线、辅助终端卡上浮 |
| 无光标编排流 | `payout-flow` | 错峰到达、阅读停顿、结果定格 |
| 原地内容切换 | `choreography` | 保留轨道、柔和遮罩、因果依赖时序 |
| AI 对话流 | `ai-chat` | 提问、思考、流式增高回答、来源卡片收尾(无星星无紫光) |
| AI 选项卡片 | `ai-cards` | 多选确认卡留存记录、行内卡片展开与交互 |
| 表单校验反馈 | `form-error` | 错误就地提示、修正后消除、按钮原地确认 |
| 拖拽排序 | `reorder` | 提拉手柄、邻行避让、平滑落位 |
| 图表滑查 | `chart-scrub` | 准星细线与圆点跟随光标、标题数值联动滚动 |
| 表格原地编辑 | `table-edit` | 单元格原地改动,关联总计延迟一拍滚动更新 |
| 骨架屏加载 | `loading` | 与真实几何同构的骨架、自上而下逐行解析 |
| 暗场首屏 | `dark-hero` | 炭黑表面微阶深度、单一点亮色、状态胶囊平滑切换 |
| 多人实时协作 | `presence` | 每人专属色与跟随光标标签、文档内实时批注 |
| 系统流转故事 | `subscriptions` | 标签飞入行内、指标滚动、二段场景自然复位 |
| 局部特写 | `close-up` | 1.4x 放大核心控件与窗口边栏、匹配大号光标 |
| 矩阵聚焦 | `many-of-one` | 铺满四边出血网格、景深聚焦单一卡片 |
| 底部渐隐裁剪 | `fade-crop` | 窗口底部在占位内容上柔和淡出 |
| 面板叠产品 | `panel-annotation` | 设置浮层压在产品边缘、单条引线指向受控结果 |
| 叠加窗口 / 卡片 | `overlap`, `stacked-cards`, `tilted-stack`, `corner-chip` | 边线对齐、错落倾角、角标跨边 |
| 多窗横排 | `window-row`, `monochrome` | 同高并排、景深主次、仅裁剪边缘占位 |
| 桌面+手机双端联动 | `device-pair` | 看板与锁屏通知讲述同一事件,手机跨边不遮主数 |
| 发票与业务串联 | `story` | 单据、方案、连线与滚动合计数 |
| 日历拖拽 / 自由拖放 | `calendar`, `freeform-drag` | 抓手偏移、网格吸附、精确测量落位 |
| 手机卡片展开 / 灵动岛 | `phone-touch`, `dynamic-island` | 卡片无缝展开为全屏并回折;黑色胶囊独立内容层 |
| 消息会话 / 滑动归档 | `messages`, `swipe` | 输入、打字态、回执、气泡生命周期与按压滑出 |
| 光标样式与变形 | `cursors`, `cursor-morph`, `cursor-resize` | 多种光标、控件驱动形态切换、缩放边缘 |
| 标注与连线 | `annotations` | 引线、尺寸标注、流向箭头与跟随目标 |
| 多格便当墙 | `bento`, `ruled-bento`, `staggered-bento`, `hero-grid`, `opposite-corners` | 混合主视觉、指标、微交互与材质底面的网格编排 |
| 文件上传 / 分享浮层 | `upload`, `share` | 拖入上传进度变文件行;邮箱转标签、权限菜单、成员入列 |
### 组件与风格参考表(Specimens)
- 帧与控件:`chrome`, `phones`, `controls`, `buttons`, `cards`, `parts`, `kit-extras`
- 材质与视觉:`glass`, `backgrounds`, `looks`
- 正反对比教材:`teaching/`(详见 `references/teaching.md`,反面例子不可作为起点)
---
## 四、Kit 与参考文档速查
- **Kit(`<skill>/kit/index.ts`)**:
- 舞台与脚本:`Stage`, `useLook`, `useReducedMotion`, `Act`, `inset`, `box`, `between`, `contains`
- 外框:`Window`, `Phone`, `LockScreen`, `Notification`, `Keyboard`, `Thread`, `Bubble`, `Stamp`, `Receipt`
- 动效原语:`Collapse`, `Roll`, `Swap`, `Count`, `Connector`, `Fly`, `Follow`, `States`, `Stream`, `Popover`, `Scroll`, `Camera`, `Expand`
- 细粒度零件:`Bar`, `Text`, `Row`, `Card`, `Divider`, `Avatar`, `Pin`, `Icon`, `Menu`, `Field`, `Draft`, `Button`, `Segmented`, `Toggle`, `Tabs`, `Badge`, `Chip`, `BrandMark`, `Code`, `Chart`, `Toast`, `Tooltip`, `Meter`, `Facepile`, `Kbd`, `Check`, `Spinner`
- **参考文档(`<skill>/references/`)**:
- `framing.md`(构图规则与版式表)、`craft.md`(静帧克制与对齐)、`motion.md`(故事、循环、光标与拖拽)、`choreography.md`(多元素时序)、`bento.md`(多格信息墙)、`backgrounds.md`(背景层级)、`looks.md`(令牌与主题)、`kit.md`(组件全量 Props)、`annotations.md`(标注与连线)、`brands.md`(自有品牌标规范)、`rehearse.md`(录屏自查与门禁条目)、`verify.md`(交付检查表与 `REHEARSAL.md` 模板)、`review.md`(复审视角)、`teaching.md`(正反教材索引)。
Files in this skill
- SKILL.md
- design-systems/blueprint-tech/DESIGN.md
- design-systems/blueprint-tech/tokens.css
- design-systems/clean-light/DESIGN.md
- design-systems/clean-light/tokens.css
- design-systems/frosted-glass/DESIGN.md
- design-systems/frosted-glass/tokens.css
- design-systems/luke-plus/DESIGN.md
- design-systems/luke-plus/tokens.css
- design-systems/obsidian-dark/DESIGN.md
- design-systems/obsidian-dark/tokens.css
- examples/ai-cards/cards.css
- examples/ai-cards/index.tsx
- examples/ai-chat/chat.css
- examples/ai-chat/index.tsx
- examples/annotations/PHOTOS.md
- examples/annotations/annotations.css
- examples/annotations/composed.css
- examples/annotations/composed.tsx
- examples/annotations/index.tsx
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.