你想创作什么?

热技包
登录升级方案
运行平台
生成模型此技能调用这些模型生成输出。你需要自行提供访问权限。
你的智能体模型(Claude、GPT、Gemini…)
运行要求
Node.js 22+Google Chrome、Chromium或Microsoft EdgeFFmpeg
提示词长什么样
# Shape to UI States

One shape, never cut. A pill becomes a loader, a check, a status pill, a player you press and scrub, a volume bar dragged past its maximum, a toggle whose knob turns into a liquid tab indicator, a chart you hover and switch, a command palette you type into, and a toast that folds back into the first button. Fourteen seconds on a 120 BPM grid, 1080x1080, 30 fps; the last frame equals the first, so it loops.

## First-run setup

This skill runs on the user's own computer and needs three free tools: **Node.js 22+**, **Google Chrome, Chromium or Microsoft Edge**, and **FFmpeg**. Check them before the first render in a conversation. Talk to the user in the language they are writing in, in plain words, with no jargon they did not use first.

1. **Check.** Run `node -v`. If it prints v22 or newer, run `node scripts/check-setup.mjs` (add `--route hyperframes` for that route). It prints one line per tool (`OK` / `MISSING` / `OPTIONAL`) and ends with `RESULT: ready` (exit 0) or `RESULT: N missing` (exit 1). If `node` is not found or is older than 22, treat Node.js as missing and still look for the others with `ffmpeg -version` and the browser paths in `scripts/check-setup.mjs`.
2. **All OK:** say nothing about setup and go straight to "Before you start". Do not re-run the check later in the same conversation; run it again only if a later command fails with "not found", "too old" or a missing-tool error.
3. **Something missing:** stop and explain before doing anything else. Use this shape, translated into the user's language:
   > To make this video on your computer I need a few free tools that are not installed yet:
   > - **Node.js** (version 22 or newer) - runs this skill's scripts.
   > - **FFmpeg** - turns the rendered frames into an MP4 file.
   > - **Google Chrome** (or Chromium / Edge) - draws each frame of the animation.
   > I can install them for you now ([the exact commands for this computer]). It takes a few minutes and your computer may ask for your login password. Shall I go ahead?
   List only what is actually missing. Do not install anything until the user clearly says yes.
4. **Install, after a yes**, using the user's system (detect with `uname` on macOS / Linux, or `$env:OS` in PowerShell on Windows):
   - **macOS:** check `brew --version`. If Homebrew exists: `brew install node ffmpeg` and `brew install --cask google-chrome` (skip what is already there). If Homebrew is missing, explain that Homebrew is the free standard installer for Mac tools and ask a second time before installing it. Its official installer asks for the Mac login password, so give the user this one line to paste into Terminal themselves: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`, then follow the "Next steps" lines it prints (they add `brew` to the PATH). If the user prefers not to use Homebrew, use the official installers from the links in step 6.
   - **Windows:** `winget install -e --id OpenJS.NodeJS.LTS`, `winget install -e --id Gyan.FFmpeg`, `winget install -e --id Google.Chrome` (Edge is usually preinstalled, so the browser is often already OK). Open a new terminal afterwards so the PATH updates.
   - **Linux (Debian / Ubuntu):** `sudo apt-get install -y ffmpeg chromium` (on Ubuntu the browser package may be `chromium-browser`). Distribution Node.js is often older than 22: install Node 22+ from the official instructions at nodejs.org instead.
   - Ask for nothing except the system's own password prompt; never ask for account names, tokens or keys. If your sandbox blocks the install, request permission to run that command, or show the user the command to paste into their own terminal.
5. **Verify** with the same check: `node -v` (22 or newer), `ffmpeg -version`, then `node scripts/check-setup.mjs` until it prints `RESULT: ready`. Tell the user in one sentence that setup is done, then continue the task they originally asked for without making them repeat it.
6. **If an install fails** or the user wants to do it by hand, give the official download page and the shortest steps, then re-run step 5 when they say it is done:
   - Node.js: https://nodejs.org/en/download (pick the LTS installer, run it, open a new terminal).
   - FFmpeg: https://ffmpeg.org/download.html (Windows and macOS builds are linked there; put the `ffmpeg` binary on the PATH, or pass `--ffmpeg <path>` to `render.mjs`).
   - Google Chrome: https://www.google.com/chrome/ (or pass `--chrome <path>` to an existing Chromium / Edge).

Once setup is done, continue with "Before you start": ask for the items the user has not given yet; do not start from the example values unless the user asks for a sample.

<!-- fill-in:start -->
<!-- Generated by packing/scripts/fillin.py from references/fill-in.json. Edit the JSON and re-run gen; do not edit this block by hand. -->
## Before you start

The user fills in the items below; `references/fill-in.json` holds the same list in machine-readable form. Talk to the user in the language they are writing in.

| Item | What it is | Example | Required | Limit |
| --- | --- | --- | --- | --- |
| Button word (`slot:button-label`) | The word on the button in the first and last state | Render | yes | up to 12 characters |
| Player title (`slot:player-title`) | Track or project title in the music player card | Late Shift Demo | yes | up to 25 characters |
| Chart number (`slot:chart-value`) | Big number on the chart card when it opens (third tab) | 48,915 | yes | up to 7 characters |
| Chart number after the switch (`slot:chart-value-2`) | Big number after the cursor switches to the second tab | 12,377 | yes | up to 8 characters |
| Chart caption (`slot:chart-label`) | Caption under the big number, saying what it counts | new signups | yes | up to 26 characters |
| Toast message (`slot:toast-text`) | Message in the toast at the end, usually the result of the chosen command | Shipped to production | yes | up to 27 characters |
| Color (`option:--theme`) | Warm off-white canvas with black shapes and a warm gradient cover, cool grey with a blue accent, dark with an orange accent, or sand with a green accent | paper | no, default: paper | one of: frost (grey, blue) / night (dark, orange) / paper (off-white, black) / sand (beige, green) |
| Brand color (`option:--accent`) | Only if the user wants their own brand color instead of the preset colors | #1E3A8A | no, default: none | #RRGGBB |
| Video size (`option:--resolution`) | 1080p for social posts, 4K for big screens | 1080p | no, default: 1080p | one of: 1080p / 4K |

**Ask first, then make.**

1. Take every item the user already gave, from this message or earlier in the conversation.
2. If a **required** item is still missing (Button word, Player title, Chart number, Chart number after the switch, Chart caption, Toast message), stop and ask before creating anything. Use one short message in the user's language: list only the missing items, each with its plain name, the one-line explanation and the example, and mention the defaults of the optional items in the same message so the user can change them in one reply.
3. Never make up the user's content: no invented names, places, dates, prices, claims, people or photos. The examples in the table are only examples.
4. Use the example values only when the user explicitly asks for a sample (for instance "show me an example first", in any language); then say in one sentence that the result uses sample content to be replaced.
5. If an answer breaks a limit, propose a shorter version or a valid option and ask; never cut or change it silently.
6. Read the final values back in one line, then go on to Steps.

- The chart numbers and the tooltip are figures: use the user's own or ask; never invent them for a real product.
- Keep the interface story consistent: `palette-query` is what gets typed, rows 4 and 5 (`palette-4`, `palette-5`) are its matches and the toast reports the result of row 5.
- This scene is type and flat shapes only: no logos, photos, footage or real product screenshots.
- The bundled typefaces have Latin letters only (no Chinese, Japanese or Korean characters). If the user writes a line in one of those scripts, say so and ask for a Latin-letter version; do not translate their names yourself.
- The render route (built-in or HyperFrames) is not a fill-in item: use the built-in renderer unless the user asks for HyperFrames.

Not asked (the agent decides): `slot:island-label` - status word on the small pill; interface filler the agent writes to match the user's product and reads back; `slot:player-sub` - line under the player title; interface filler the agent writes and reads back; `slot:player-time` - elapsed time in the player, like 1:04; interface filler, kept unless the user asks; `slot:player-remain` - remaining time in the player, like -2:31; interface filler, kept unless the user asks; `slot:tab-*` - three tab names shared by the tab bar and the chart card; generic period words (Today, Week, Quarter) changed only to fit the user's product; `slot:chart-tip` - tooltip figure on the chart; use a figure the user gave, otherwise ask, never an invented one; `slot:palette-*` - command palette search, shortcut and five command rows; written by the agent to match the user's product, kept consistent with the toast and read back before rendering.

Fill-in prompt shown to the user after install (copy, replace the brackets, send):

> Use shape-to-ui-states to make a UI morph loop: button word = [button word], player title = [title in the player], chart numbers = [first chart number] then [second chart number], chart caption = [what the number counts], toast = [toast message], color = [paper / frost / night / sand]

Show it in the user's language (`references/fill-in.json` also holds a Chinese version), with the brackets left for the user to fill.

Not sure what to put? The user can say "show me an example first" and you use the example values.
<!-- fill-in:end -->

## Text slots

Every visible word is a named slot. Defaults live in `references/defaults.json`; `create.mjs` refuses text over the limit.

| Slot | Default | Max | Where |
| --- | --- | --- | --- |
| `button-label` | Render | 12 | first and last state |
| `island-label` | Exporting | 11 | status pill |
| `player-title` | Late Shift Demo | 25 | player card |
| `player-sub` | built frame by frame | 35 | player card |
| `player-time` | 1:04 | 13 | under the scrub bar, left |
| `player-remain` | -2:31 | 13 | under the scrub bar, right |
| `tab-1` | Today | 6 | tab bar and chart header |
| `tab-2` | Week | 6 | tab bar and chart header (clicked on the chart) |
| `tab-3` | Quarter | 7 | tab bar and chart header (selected first) |
| `chart-value` | 48,915 | 7 | big number for tab 3 |
| `chart-value-2` | 12,377 | 8 | big number after switching to tab 2 |
| `chart-label` | new signups | 26 | caption under the number |
| `chart-tip` | +18% | 7 | tooltip on the hovered point |
| `palette-hint` | Search actions | 30 | empty search field |
| `palette-query` | ship | 34 | text typed into the search |
| `palette-key` | Ctrl K | 10 | shortcut chip |
| `palette-1` .. `palette-3` | New scene, Duplicate layer, Motion blur | 39 | rows filtered out by the query |
| `palette-4` | Ship preview | 39 | first match |
| `palette-5` | Ship to production | 39 | second match, chosen with Enter |
| `toast-text` | Shipped to production | 27 | toast |

Keep the story consistent: `palette-query` should appear in rows 4 and 5, and `toast-text` should be the result of row 5. Limits were measured with `render.mjs --measure` (longest text that fits at every check time) and set to about nine tenths. Wide letters fill a line sooner, so step 2 is the real gate. There are no picture slots.

## Steps

1. **Create** an editable copy with the user's words:
   ```bash
   node scripts/create.mjs --out ./ui-scene --theme paper \
     --set "button-label=Publish" --set "palette-query=pub" \
     --set "palette-5=Publish to web" --set "toast-text=Published to web"
   ```
   `--set slot=value` repeats; `--data content.json` takes an object of slot values; `--help` lists every slot. Result: `./ui-scene/index.html` and `scene.json`.
2. **Check** every label: `node scripts/render.mjs ./ui-scene --check`. It must print `Text fit check passed`. If a slot is listed, shorten it and repeat step 1 with `--force`.
3. **Look** at stills: `node scripts/render.mjs ./ui-scene --frames 2200,6450,8300,10300,11200,12200`. PNGs land next to the folder.
4. **Render** with the chosen route and hand back the MP4 plus the scene folder.

## Render

Built-in renderer (Node.js 22+, Chrome / Chromium / Edge, FFmpeg; fully offline):

```bash
node scripts/render.mjs ./ui-scene --output ./ui-scene.mp4
```

It seeks the scene frame by frame in headless Chrome and encodes H.264 with FFmpeg (420 frames, about 1.5 to 2 minutes). Pass `--chrome <path>` or `--ffmpeg <path>` if they are not found.

HyperFrames (Node.js 22+, FFmpeg, internet once for `npx`, which downloads the CLI and its own Chrome):

```bash
node scripts/hyperframes.mjs ./ui-scene --out ./ui-hf
cd ./ui-hf
npx --yes hyperframes@0.9.26 check
npx --yes hyperframes@0.9.26 render --output ui.mp4
```

The project keeps the same HTML, fonts and timing; `hf-runtime.js` hands the clock to HyperFrames. Change words by repeating step 1 and re-running `hyperframes.mjs`, not by editing the project. Set `HYPERFRAMES_NO_TELEMETRY=1` if the user does not want anonymous usage counters sent. If the user does not choose, use the built-in renderer.

## Rules

- Keep the timeline: change words and the theme, never timings, sizes or the order of states.
- One shape carries all twelve states. Do not add a second card, a background panel or a border.
- One accent color plus the theme's two surfaces and a muted gray. No gradients, glows or extra colors.
- Every label stays on one line. Never put a sentence in a slot.
- Never invent facts, client names or numbers; use only what the user gave you, or the defaults.

## Check

- `node scripts/render.mjs ./ui-scene --check` passes.
- Open the stills from step 3: at 2200 ms the player title and both times are readable; at 6450 ms the first tab label sits on the dark indicator; at 8300 ms the tooltip sits on the line; at 10300 ms all five commands show; at 11200 ms only rows 4 and 5 remain and the typed text is complete; at 12200 ms the toast text is not cut.
- Compare `--frames 0` with `--frames 13999`: they must look the same, or the loop jumps.
- HyperFrames route: `npx hyperframes check` reports no errors.

## Not for

- Clips longer than 14 seconds or with several scenes.
- Logos, photos, footage or real product screenshots; this scene is type and flat shapes only.
- Voiceover, music or subtitles.

## References

- `scripts/check-setup.mjs` - first-run tool check (read-only; same Chrome / FFmpeg lookup as `render.mjs`).
- `references/defaults.json` - slots, limits, check times, themes.
- `references/project/` - the scene (HTML, fonts, `runtime.js`).
- `references/hyperframes/hf-runtime.js` - clock bridge used by `scripts/hyperframes.mjs`.
- `references/third-party-notices.md` - font licenses.
- `references/inspiration.md` - credit to the original creator.

## Inspiration

The idea comes from a 14-second reel by @twoclipping, who open-sourced the prompt template behind it and invited people to recreate it. This Skill is an independent rebuild: new layout, palette, type, words and motion values, on our own renderer.

可改字段 无可改字段

使用步骤

  1. 选择用法

    在 Studio 浏览器里直接改,或装进自己的 AI,更自由地创作。

    编辑器即将推出

    Prompt / CLI / MCP / ZIP · API: 即将推出

  2. 选择安装方式

    所有 AI 安装方式均需账号。免费包登录即可;付费包还需购买或会员。

    Prompt
    复制安装提示词给你的 AI,内含下载和校验步骤。
    CLI
    先登录,再选择你的 AI 并运行安装命令。需要 Node.js 22+。
    MCP
    添加配置并重启 AI,再让它连接账号、搜索和安装包。需要 Node.js 22+。
    ZIP
    下载并解压 ZIP,将包文件夹放进 AI 的技能目录,确保 SKILL.md 直接位于包文件夹内。

    安装目录

    • Claude Code: ~/.claude/skills
    • Codex / Cursor / Gemini CLI / OpenCode / shared: ~/.agents/skills
    • OpenClaw: ~/.openclaw/workspace/skills

    装好后,试着对 AI 说:

    用 shape-to-ui-states 按我的内容制作一个版本,先问我需要哪些素材。
  3. 包里有什么

    ZIP 内含 17 个文件

    • 一个可编辑的 14 秒 1080x1080 场景文件夹,其中包含您的文字和主题
    • 渲染后的MP4,来自内置渲染器或HyperFrames
    • 在渲染之前自动检查每个标签是否适合
  4. 需要准备什么

    Studio 需要浏览器;安装需支持技能的 AI(Claude Code、Codex、Cursor 或 OpenClaw)。仅 CLI / MCP 安装需要 Node.js 22+。包的制作依赖见下方说明。

    • 必需 · Node.js 22 或更新版本
    • 必需 · Google Chrome、Chromium 或 Microsoft Edge
    • 必需 · FFmpeg
    • 可选 · HyperFrames CLI (npx hyperframes)

你会得到

  • 一个可编辑的 14 秒 1080x1080 场景文件夹,其中包含您的文字和主题
  • 渲染后的MP4,来自内置渲染器或HyperFrames
  • 在渲染之前自动检查每个标签是否适合

适合

  • 需要用于登陆页面或应用程序促销的循环UI运动剪辑的产品团队
  • 设计工作室将组件库展示为一个连续镜头
  • 想要代码驱动的 UI 动画的开发人员可以使用新副本重新设计样式

不适合

  • 长度超过14秒或具有多个场景的剪辑
  • 标志、照片、镜头或真实产品屏幕截图
  • 画外音、音乐或字幕

评分与评价

暂无评分

为技能包评分

用户评价

暂无评价

常见问题

我可以更改文字和颜色吗?

是的。每个可见的单词都是一个带有测量字符限制的文本槽,您可以选择纸张、霜冻、夜晚或沙子主题或任何品牌口音。

我需要我自己的素材还是API密钥?

不。场景仅是文字和平面形状,两种字体都随技能一起提供,并且两种渲染路线都在本地免费运行。

我可以改变风格或动作吗?

时间线是固定的,因此每个渲染都保持干净。你改变文字和颜色,而不是时间。

解锁这个包就能用

形状变 UI 状态

这个包

一次性付款

  • 安装到你的 AI
  • 下载 ZIP
选择
最划算

会员

  • 所有 Pro 技能包
  • 每天可下载 50 个不同技能包
选择

有编辑器的免费包可完整编辑和导出。

相似技能包

查看全部
装饰艺术跑马灯
艺术史速通
包豪斯节拍海报
封锁胶带揭晓
粉笔蓝图自我介绍片
电影片头字幕
口播长条图聚焦
口播大数字
口播聊天问答
口播清单逐项打勾
口播手绘圈重点
口播折线趋势
口播金句荧光笔
口播圆环进度
口播步骤连线
口播划掉改写
剪报拼贴人名条
斜扫前后对比
流动漏斗
目标液面进度
等轴热力格
KPI 指标卡面板
里程碑进度轨道
里程表计数墙
排名变化榜
地区分布针图
数据新闻图表
百格翻牌占比
字母骨牌
立体厚字旋转
卖点立方体
烟火终曲
手电筒探照揭晓
对折邀请卡
钢笔签名
相框隧道穿越
气态巨行星跃迁
半调吉祥物宣传片
半调肖像音乐片
全息箔光收藏卡
HUD 目标锁定
圆形章节故事
照片万花筒
极光玻璃卡产品发布
指令面板产品发布
行动按钮光晕收尾
发牌扇形卖点发布
通知卡卖点发布
标志组合落版
月付年付价格切换发布
骨架屏载入亮相
选取框界面导览发布
滚筒换词发布
穿越大字
液滴融合
放大镜细节巡览
大促砸屏
金属硬币翻转
霓虹灯通电
一笔画城市开场
立体翻页画册
刮刀油画
纸飞机传讯
粒子聚合 Logo
照片填字标题
象形图倒数
像素宠物插件发布片
破框而出
简历动效 Showreel
RGB 信号故障
3D 环形产品陈列
水滴涟漪揭晓
手帐拼贴
刮刮卡揭晓
丝绸挂旗
丝印海报竖屏快拍
手绘宇宙蒙太奇
切片换页画廊
拉霸三连
对开门揭晓
翻牌时刻表
彩窗阳光
左右甩卡选品
瑞士大字冲屏
合成波夜驰
方块翻面拼图
倾斜照片墙
Token 流发布短片
UX 决策蓝图动画
白板手绘讲解
浮世绘木版套印
文字漩涡揭晓
报告问题

提交技能需求