The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
fix(install): sync valid first-run Skill guidance (#168)
open-design-crew[bot]6fd589516b66
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex dd3be2cc..9453ed7d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -65,7 +65,7 @@ jobs:npm run typecheck:studionpm run build:studio- name: Validate standalone installation and packaging- run: node --experimental-strip-types --test tests/npm-installer.test.ts tests/npm-package.test.ts tests/test-package.test.ts tests/source-install.test.ts tests/bootstrap.test.ts tests/mcp-registry.test.ts tests/phase1.test.ts tests/adapters.test.ts tests/package.test.ts tests/recreate-measure.test.ts tests/workflow.test.ts tests/catalog.test.ts tests/extension-boundary.test.ts+ run: node --experimental-strip-types --test tests/install.test.ts tests/npm-installer.test.ts tests/npm-package.test.ts tests/test-package.test.ts tests/source-install.test.ts tests/bootstrap.test.ts tests/mcp-registry.test.ts tests/phase1.test.ts tests/adapters.test.ts tests/package.test.ts tests/recreate-measure.test.ts tests/workflow.test.ts tests/catalog.test.ts tests/extension-boundary.test.ts- name: Studio regressionrun: npm run test:studio -- --maxWorkers=2- name: Build phase-one ZIP and exercise all nine toolsdiff --git a/README.md b/README.mdindex c8c41b46..aa523c71 100644--- a/README.md+++ b/README.md@@ -28,6 +28,8 @@ This builds a small npm installer, a separate application archive and a checksum`npm run package:phase1` builds the plugin ZIP. Complete Mac/Windows bundles remain available through the [test packaging tools](docs/test-packages.md). Current native acceptance targets macOS 26 arm64 and Windows 11 x64; building an archive does not prove it runs on another OS.+After installation, invite the user to the first-run example and wait for consent. An accepted invitation follows [template-to-video](skills/template-to-video/SKILL.md) for the existing 20-second Product Promo example; it does not select a removed Skill.+## Privacy and public scopeNo embedded upstream browser analytics identifier or PostHog sender is retained in Motion's editor. Engine subprocesses disable upstream CLI telemetry. Packages include only the approved runtime files, selected Skills, documentation and licenses; tests, development source, private process archives, credentials and user projects stay outside the artifacts.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex d7ca6c03..46c5d0d5 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -67,14 +67,14 @@ OpenDesign 围绕已有 Agent 用户的产品演示、参考复刻、动态图```text请执行以下命令安装 OpenMotion:-curl -fsSL https://raw.githubusercontent.com/nexu-io/open-design/main/install.sh | bash+curl -fsSL https://raw.githubusercontent.com/nexu-io/html-anything/feature/motion/install.sh | bash安装成功后,简要介绍它能做什么,并询问我是否体验一个无需准备素材的 20 秒视频,提供 MP4 并打开可编辑工程。```这段指令要求 Codex 在安装成功后介绍能力并邀请体验;你选择开始后再制作。完整文本应发送到 Codex 对话框,不要直接粘贴到终端。-入口合入 OpenDesign `main` 后此命令才可用。脚本仅检出 ``,自动安装锁定依赖、构建编辑器、注册并安装插件,再验证真实 MCP 握手。首次安装需联网;不会安装系统软件或重启 Codex。安装目录会保留,供本地插件源继续使用。+此命令在 `feature/motion` 分支存在期间即可使用;脚本默认检出 `feature/motion`,自动安装锁定依赖、构建编辑器、注册并安装插件,再验证真实 MCP 握手。首次安装需联网;不会安装系统软件或重启 Codex。安装目录会保留,供本地插件源继续使用。已有同名目录时停止,不覆盖、不自动更新。需要换目录时,在 `bash` 前设置 `OPENMOTION_INSTALL_DIR=/绝对路径`;可同时用 `OPENMOTION_REF=标签或分支` 选择下载版本。已有源码也可直接运行 `bash scripts/install-motion.command`。安装插件与成功导出视频是不同阶段;导出依赖见下文。@@ -84,7 +84,7 @@ curl -fsSL https://raw.githubusercontent.com/nexu-io/open-design/main/install.sh1. 在当前对话简要介绍 OpenMotion 支持产品宣传视频、动态图表与流程动画、模板和可编辑预览、MP4 导出。2. 主动询问用户:**“要现在体验一个无需准备素材的 20 秒视频吗?我会提供 MP4,并打开可编辑工程。”**-3. 停下来等待用户选择;用户回复“体验”或明确同意后,执行下方首次体验默认规则。用户明确只要安装或暂不体验时,尊重该选择。+3. 停下来等待用户选择;用户回复“体验”或明确同意后,进入 [template-to-video](skills/template-to-video/SKILL.md) 并执行下方首次体验默认规则。用户明确只要安装或暂不体验时,尊重该选择。先在当前对话完成介绍与邀请。若新插件工具尚未加载,在用户同意体验后再提供新会话接续方式;安装时的 MCP 预检不代表当前对话已加载新工具。安装失败时先说明失败原因,修复成功后再邀请。diff --git a/docs/product/changes.md b/docs/product/changes.mdindex 8a07e8fa..8e7c3c1c 100644--- a/docs/product/changes.md+++ b/docs/product/changes.md@@ -1,5 +1,12 @@# 公开变更记录+## 2026-11-06:安装后的模板 Skill 引导++- 接受首次体验的新用户进入现有的 `template-to-video`,替换已删除的 `motion-template` 名称;沿用 Product Promo 示例与既有同意规则,不扩大安装授权。+- 安装回归提取实际脚本中的 Skill 引用,确认对应 `SKILL.md` 存在且至少匹配一项;CI 执行这条检查。新增测试在旧脚本上失败,修正后运行对应回归。+- 英文与中文使用说明同步标明模板入口,中文源码安装地址指向当前仓库的 `feature/motion`,并说明该命令在分支存在期间即可使用,与 `install.sh` 默认检出分支一致。+- 保留独立 npm、原生依赖锁、公开内容清理、浏览器统计移除和正向打包清单;不增加账户、计费或商业化能力,不发布包。+## 2026-11-06:独立分发与复刻工作流- Motion 源码位于仓库根目录;保持独立 npm lockfile、安装器、MCP 与 Skills,不依赖 OD 的应用私有代码或工作区链接。diff --git a/docs/skills.md b/docs/skills.mdindex 3f167412..ce377a0f 100644--- a/docs/skills.md+++ b/docs/skills.md@@ -59,6 +59,7 @@ MCP 工具说明和领域执行位于 `mcp-tools.ts`;`mcp.ts` 保留初始化## 验证与限制+- 安装引导的 `进入 <Skill> 的` 路由由 `tests/install.test.ts` 提取并检查对应 `skills/<Skill>/SKILL.md` 存在;该测试纳入 PR CI,避免 Skill 删除或改名后留下失效引导。- 自动回归检查全部文档全文与 SHA256、跨路线链接、旧调用、错误参数、跨 cwd/符号链接,以及空工作区和已有工程不变。- 目录/HTTP 指引检查 builtin、registry、reference 三种来源的准确 ID 和路线,保留短指令与原工具字段;MCP 源文件写入和 stale revision 拒绝继续覆盖。- 独立 Agent 前向探针覆盖原创、模板默认内容、源码模板、风格参考、视频 URL/文件复刻、文字小改、声音锁画、仅导出、仅脚本、画廊成片和仓库开发。探针实际调用只读 MCP,停在工程/服务操作前;后续工具序列属于方案检查,不是实际制作执行证明。diff --git a/scripts/install-motion.command b/scripts/install-motion.commandindex 6efc3989..3e0f6937 100644--- a/scripts/install-motion.command+++ b/scripts/install-motion.command@@ -49,7 +49,7 @@ OpenDesign(Motion) 已安装。MCP 连接预检通过。然后主动询问用户:“要现在体验一个无需准备素材的 20 秒视频吗?我会提供 MP4,并打开可编辑工程。”停下来等待用户选择;用户明确只要安装或暂不体验时,尊重该选择。用户回复“体验”或明确接受本次邀请,即确认使用内置 Product Promo(product-promo):沿用示例文字、图形和动画,创建独立的 20 秒可编辑工程,保留原有工程;同一次体验已创建则复用。-不再追问素材、品牌、风格或模板。进入 motion-template 的首次体验默认路径,在 Codex 右侧打开工作室的可编辑工程,检查载入与播放,并导出 MP4。+不再追问素材、品牌、风格或模板。进入 template-to-video 的首次体验默认路径,在 Codex 右侧打开工作室的可编辑工程,检查载入与播放,并导出 MP4。接受本次邀请即授权示例导出。等待导出完成并检查实际文件后,最终回复给出简短说明与可播放/下载的 MP4,同时保持右侧工程可用;ZIP/截图仅作补充。宿主无浏览器/面板能力时仍提供 MP4 与实际工程链接,并说明页面未自动打开;导出失败时保留工程并说明原因,不以预览或排队状态冒充成片。先在当前对话完成介绍与邀请。若新插件工具尚未加载,在用户同意体验后再提供新会话接续方式。diff --git a/tests/install.test.ts b/tests/install.test.tsindex b7b4e0fc..97476650 100644--- a/tests/install.test.ts+++ b/tests/install.test.ts@@ -1,10 +1,19 @@import test from 'node:test';import assert from 'node:assert/strict';-import { mkdtemp, mkdir, writeFile, rm } from 'node:fs/promises';+import { mkdtemp, mkdir, writeFile, rm, readFile, access } from 'node:fs/promises';import { tmpdir } from 'node:os';import path from 'node:path';import { resolveInstalled } from '../scripts/resolve-installed.mjs';+test('installation onboarding routes only to existing Skills', async () => {+ const script = await readFile(new URL('../scripts/install-motion.command', import.meta.url), 'utf8');+ const references = [...script.matchAll(/进入 ([a-z0-9-]+) 的/g)];+ assert.ok(references.length > 0, 'Installation onboarding must reference a Skill');+ for (const [, skill] of references) {+ await access(new URL(`../skills/${skill}/SKILL.md`, import.meta.url));+ }+});+test('preview resolves versioned cache and compatible local cache without changing user configuration', async () => {const root = await mkdtemp(path.join(tmpdir(), 'motion-install-'));try {