dsh-workrally 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +4 -3
  2. package/lib/account.js +18 -9
  3. package/lib/client.js +3671 -444
  4. package/lib/easy-writing-skills/book-creation.md +90 -0
  5. package/lib/easy-writing-skills/novel-writing.md +8 -0
  6. package/lib/easy-writing-skills/story-development.md +41 -0
  7. package/lib/easy-writing-skills/title-and-intro.md +67 -0
  8. package/lib/easyWriting.js +72 -0
  9. package/lib/gallery.js +8 -6
  10. package/lib/index.js +81 -1
  11. package/lib/manju-skills/chongsheng-manju/SKILL.md +311 -0
  12. package/lib/manju-skills/chuanyue-manju/SKILL.md +309 -0
  13. package/lib/manju-skills/dushi-manju/SKILL.md +311 -0
  14. package/lib/manju-skills/gongdou-manju/SKILL.md +312 -0
  15. package/lib/manju-skills/jiating-manju/SKILL.md +311 -0
  16. package/lib/manju-skills/minsu-manju/SKILL.md +313 -0
  17. package/lib/manju-skills/moshi-manju/SKILL.md +313 -0
  18. package/lib/manju-skills/niandai-manju/SKILL.md +311 -0
  19. package/lib/manju-skills/quanmou-manju/SKILL.md +311 -0
  20. package/lib/manju-skills/shangzhan-manju/SKILL.md +311 -0
  21. package/lib/manju-skills/tianchong-manju/SKILL.md +310 -0
  22. package/lib/manju-skills/wuxia-manju/SKILL.md +308 -0
  23. package/lib/manju-skills/xiaoyuan-manju/SKILL.md +312 -0
  24. package/lib/manju-skills/xihuan-manju/SKILL.md +312 -0
  25. package/lib/manju-skills/xingji-manju/SKILL.md +312 -0
  26. package/lib/manju-skills/xitong-manju/SKILL.md +310 -0
  27. package/lib/manju-skills/xuanhuan-manju/SKILL.md +306 -0
  28. package/lib/manju-skills/xuanyi-manju/SKILL.md +315 -0
  29. package/lib/manju-skills/yule-manju/SKILL.md +310 -0
  30. package/lib/manju-skills/zhaidou-manju/SKILL.md +311 -0
  31. package/lib/manju-skills/zhongtian-manju/SKILL.md +310 -0
  32. package/lib/manjuSkills.js +69 -0
  33. package/lib/mcp.js +75 -0
  34. package/lib/nvzhuang/anime.json +1 -0
  35. package/lib/nvzhuang/portrait.json +1 -0
  36. package/lib/nvzhuang/real.json +1 -0
  37. package/lib/nvzhuang.js +184 -0
  38. package/lib/openmotion-skills/openmotion/SKILL.md +33 -0
  39. package/lib/openmotion-skills/openmotion-director/SKILL.md +67 -0
  40. package/lib/openmotion-skills/openmotion-media/SKILL.md +42 -0
  41. package/lib/openmotion-skills/openmotion-production/SKILL.md +48 -0
  42. package/lib/openmotion-skills/openmotion-recreate/SKILL.md +91 -0
  43. package/lib/openmotion-skills/openmotion-template-to-video/SKILL.md +72 -0
  44. package/lib/openmotion-skills/openmotion-video-to-template/SKILL.md +44 -0
  45. package/lib/openmotion.js +128 -0
  46. package/package.json +1 -1
@@ -0,0 +1,184 @@
1
+ /** 拍片哥女装(paipiange/nvzhuang)数据读取与解析:优先读取随包本地 JSON,图片走多 CDN 自动兜底。 */
2
+ import { existsSync, readFileSync } from 'node:fs';
3
+ import { dirname, join } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const HERE = dirname(fileURLToPath(import.meta.url));
7
+ const BUNDLED_DIR = existsSync(join(HERE, 'nvzhuang'))
8
+ ? join(HERE, 'nvzhuang')
9
+ : join(HERE, '..', 'assets', 'nvzhuang');
10
+
11
+ const ASSET_CDNS = [
12
+ 'https://gcore.jsdelivr.net/gh/paipiange/nvzhuang@main/assets/',
13
+ 'https://ghfast.top/https://raw.githubusercontent.com/paipiange/nvzhuang/main/assets/',
14
+ 'https://paipiange.github.io/nvzhuang/assets/',
15
+ ];
16
+
17
+ const DATA_MIRRORS = [
18
+ 'https://gcore.jsdelivr.net/gh/paipiange/nvzhuang@main/',
19
+ 'https://ghfast.top/https://raw.githubusercontent.com/paipiange/nvzhuang/main/',
20
+ 'https://paipiange.github.io/nvzhuang/',
21
+ ];
22
+
23
+ const TTL_MS = 30 * 60 * 1000;
24
+
25
+ const SOURCES = {
26
+ real: { file: 'data.js', local: 'real.json', varName: 'D' },
27
+ anime: { file: 'data-anime.js', local: 'anime.json', varName: 'D_ANIME' },
28
+ portrait: { file: 'data-portrait.js', local: 'portrait.json', varName: 'D_PORTRAIT' },
29
+ };
30
+
31
+ const CAT_LABELS = {
32
+ 春: { label: '春装', labelEn: 'Spring' },
33
+ 夏: { label: '夏装', labelEn: 'Summer' },
34
+ 秋: { label: '秋装', labelEn: 'Autumn' },
35
+ 冬: { label: '冬装', labelEn: 'Winter' },
36
+ ランジェリー: { label: '内衣家居', labelEn: 'Lingerie' },
37
+ パーティ: { label: '礼服派对', labelEn: 'Party' },
38
+ 水着: { label: '泳装', labelEn: 'Swimwear' },
39
+ セクシー: { label: '性感风', labelEn: 'Glam' },
40
+ 短发: { label: '短发', labelEn: 'Short Hair' },
41
+ 中发: { label: '中发', labelEn: 'Medium Hair' },
42
+ 中长发: { label: '中长发', labelEn: 'Mid-Long' },
43
+ 长发: { label: '长发', labelEn: 'Long Hair' },
44
+ };
45
+
46
+ const cache = new Map();
47
+
48
+ const buildAssetUrls = (path) => {
49
+ const raw = String(path || '').trim();
50
+ if (!raw) return [];
51
+ if (raw.startsWith('https://') || raw.startsWith('http://')) return [raw];
52
+ const clean = raw.replace(/^\/+/, '');
53
+ return ASSET_CDNS.map(prefix => `${prefix}${clean}`);
54
+ };
55
+
56
+ /** 从 `const D = [...];` 形式的静态 JS 文件里安全提取 JSON 数组(不执行任意代码)。 */
57
+ export const extractDatasetArray = (jsText, varName) => {
58
+ const text = String(jsText || '');
59
+ const marker = new RegExp(`(?:const|let|var)\\s+${varName}\\s*=\\s*`);
60
+ const match = marker.exec(text);
61
+ if (!match) return [];
62
+ const start = text.indexOf('[', match.index + match[0].length);
63
+ if (start < 0) return [];
64
+ let end = text.lastIndexOf(']');
65
+ while (end > start) {
66
+ const slice = text.slice(start, end + 1);
67
+ try {
68
+ const parsed = JSON.parse(slice);
69
+ if (Array.isArray(parsed)) return parsed;
70
+ } catch {
71
+ // 若文件尾部还有别的数据结构,向前找上一个 `]`。
72
+ }
73
+ end = text.lastIndexOf(']', end - 1);
74
+ }
75
+ return [];
76
+ };
77
+
78
+ export const normalizeNvzhuangItems = (rows, lib = 'real') => {
79
+ if (!Array.isArray(rows)) return [];
80
+ return rows
81
+ .filter(row => row && typeof row === 'object' && row.id)
82
+ .map((row) => {
83
+ const cat = String(row['カテゴリ'] || row.cat || '').trim();
84
+ const mapped = CAT_LABELS[cat] || { label: cat || '其他', labelEn: cat || 'Other' };
85
+ const thumbUrls = buildAssetUrls(row['サムネ'] || row.thumb || '');
86
+ const imageUrls = buildAssetUrls(row['画像'] || row.image || '');
87
+ const rawFull = String(row['原寸'] || row.full || '').trim();
88
+ const fullUrls = rawFull && !rawFull.startsWith('png/') ? buildAssetUrls(rawFull) : [];
89
+ const thumb = thumbUrls[0] || '';
90
+ const image = imageUrls[0] || thumb;
91
+ const full = fullUrls[0] || image;
92
+ return {
93
+ id: String(row.id),
94
+ lib,
95
+ cat,
96
+ catLabel: mapped.label,
97
+ catLabelEn: mapped.labelEn,
98
+ keywords: String(row['キーワード'] || row.keywords || '').trim(),
99
+ thumb,
100
+ thumbFallbacks: thumbUrls.slice(1),
101
+ image,
102
+ imageFallbacks: (imageUrls.length ? imageUrls : thumbUrls).slice(1),
103
+ full,
104
+ sec: String(row.sec || ''),
105
+ secZh: String(row.secZh || ''),
106
+ };
107
+ });
108
+ };
109
+
110
+ const summarize = (key, items) => {
111
+ const catCounts = new Map();
112
+ for (const item of items) {
113
+ if (!item.cat) continue;
114
+ const prev = catCounts.get(item.cat);
115
+ if (prev) prev.count += 1;
116
+ else catCounts.set(item.cat, { id: item.cat, label: item.catLabel, labelEn: item.catLabelEn, count: 1 });
117
+ }
118
+ return {
119
+ lib: key,
120
+ total: items.length,
121
+ categories: [...catCounts.values()],
122
+ items,
123
+ };
124
+ };
125
+
126
+ export const resetNvzhuangCache = () => cache.clear();
127
+
128
+ const readBundledRows = (localName) => {
129
+ const file = join(BUNDLED_DIR, localName);
130
+ if (!existsSync(file)) return null;
131
+ try {
132
+ const parsed = JSON.parse(readFileSync(file, 'utf8'));
133
+ return Array.isArray(parsed) && parsed.length > 0 ? parsed : null;
134
+ } catch {
135
+ return null;
136
+ }
137
+ };
138
+
139
+ export const loadNvzhuangLibrary = async (lib = 'real', fetchImpl) => {
140
+ const key = SOURCES[lib] ? lib : 'real';
141
+ const hit = cache.get(key);
142
+ if (hit && Date.now() - hit.at < TTL_MS) return hit.data;
143
+
144
+ const { file, local, varName } = SOURCES[key];
145
+
146
+ // 默认优先读取随包 JSON(零网络延迟,不受 GitHub Pages 连通性影响)。
147
+ if (!fetchImpl) {
148
+ const localRows = readBundledRows(local);
149
+ if (localRows) {
150
+ const data = summarize(key, normalizeNvzhuangItems(localRows, key));
151
+ cache.set(key, { at: Date.now(), data });
152
+ return data;
153
+ }
154
+ }
155
+
156
+ const doFetch = fetchImpl || fetch;
157
+ const urls = fetchImpl ? [`${DATA_MIRRORS[0]}${file}`] : DATA_MIRRORS.map(base => `${base}${file}`);
158
+ let lastError = null;
159
+ for (const url of urls) {
160
+ try {
161
+ const response = await doFetch(url, {
162
+ headers: { accept: 'application/javascript, text/plain, */*' },
163
+ signal: AbortSignal.timeout(15_000),
164
+ });
165
+ if (!response?.ok) {
166
+ lastError = new Error(`服装图库读取失败(${response?.status || '网络'})`);
167
+ continue;
168
+ }
169
+ const text = await response.text();
170
+ const items = normalizeNvzhuangItems(extractDatasetArray(text, varName), key);
171
+ if (items.length === 0) {
172
+ lastError = new Error('服装图库返回空数据');
173
+ continue;
174
+ }
175
+ const data = summarize(key, items);
176
+ cache.set(key, { at: Date.now(), data });
177
+ return data;
178
+ } catch (err) {
179
+ lastError = err;
180
+ }
181
+ }
182
+ if (hit) return hit.data;
183
+ throw lastError || new Error('服装图库读取失败');
184
+ };
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: openmotion
3
+ description: Create and edit videos with OpenMotion, recreate a reference video, or adapt an editable template. Set up the local Studio and MCP connection when missing, then continue through the matching production workflow. Use for OpenMotion installation and first use; an already-selected specialist continues directly. Repository development does not trigger video production.
4
+ ---
5
+
6
+ # OpenMotion
7
+
8
+ Turn a reference, template or creative brief into an editable video project in the local OpenMotion Studio, with preview and MP4 export through the same workspace.
9
+
10
+ ## Connect once
11
+
12
+ Discover the current host's OpenMotion MCP tools first. If connected, call `openmotion_get_project` to identify the workspace and resume existing work. Preserve projects, credentials, project/version identities and unrelated host settings. Do not reinstall a working connection.
13
+
14
+ If OpenMotion is missing or disconnected, read the maintained [installation guide](https://github.com/nexu-io/openmotion/blob/main/docs/install.md) and follow its current-host instructions. Source installation is the repository default; follow that same guide's published-application section only when the user explicitly chooses npm. Reuse an existing installation rather than mixing source and npm. Derive onboarding language from the user's request. Follow the guide's shared welcome, three-card and template-library procedure. Show cards whenever this host supports them; use the same three recommendations as text only when card presentation is unsupported or fails. Do not treat the host name as a capability check.
15
+
16
+ Installing this Skill with Skills CLI installs instructions only. Complete runtime, Studio, MCP and the guide's browser/media prerequisites before claiming production readiness. Use actual startup URLs and transport settings; the Studio URL is not an HTTP MCP endpoint. This version provides local stdio, not a ChatGPT cloud endpoint. Native tools must be discovered and `openmotion_get_project` must succeed in the calling host before claiming that host is connected. A standalone probe has a separate verification scope. Report the concrete blocker when host recovery is needed.
17
+
18
+ Installation alone does not request a film, project edit, export or paid generation. If the user only asked to install, finish the maintained onboarding and wait. If they already supplied a creative brief, continue with it after setup.
19
+
20
+ ## Continue with the matching workflow
21
+
22
+ Read the selected installed Skill, or its full MCP resource through `resources/read`. Resources remain available when only this entry Skill was installed; do not depend on sibling files in a standalone Skills CLI copy.
23
+
24
+ | User intent | Skill | MCP resource |
25
+ | --- | --- | --- |
26
+ | Original video, narrative, motion or sound design | openmotion-director | `openmotion://workflow/director/start` |
27
+ | Browse or adapt an existing editable template | openmotion-template-to-video | `openmotion://workflow/template/start` |
28
+ | Recreate a reference video for this film | openmotion-recreate | `openmotion://workflow/recreate/start` |
29
+ | Turn a reference into a reusable template | openmotion-video-to-template | `openmotion://workflow/video-to-template/start` |
30
+ | Scoped edits under established decisions, preview, troubleshooting or export | openmotion-production | `openmotion://workflow/production/start` |
31
+ | Generate an individual image, video, speech or music asset | openmotion-media | `openmotion://workflow/media/start` |
32
+
33
+ Continue directly in that workflow, preserving the user's brief and existing decisions. These are instructions for the same Agent, not recursive tasks or a new creative intake. The selected workflow owns reference reading, revision protection, asset generation, preview and delivery. Read its conditional references as needed; do not load every workflow. Technical export validation, actual playback and human visual acceptance remain separate.
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: openmotion-director
3
+ description: Plan and create original motion videos and motion graphics with OpenMotion, including esports recaps, explainers, product demos, and brand films, or first planning how a video should be presented. Also use for narrative, motion, or sound redesign and creative review. Execute established edits/exports with openmotion-production, editable templates with openmotion-template-to-video, reference reconstruction with openmotion-recreate, and reusable templates with openmotion-video-to-template. Repository development does not trigger video production.
4
+ metadata:
5
+ version: "1.5.5"
6
+ ---
7
+
8
+ # OpenMotion Director
9
+
10
+ ## 职责与目标
11
+
12
+ Use OpenMotion for an original video on the user's topic, including a request to discuss its presentation first. Apply the shared context's capability discovery and connection guidance when starting. A concept-only request ends with the requested creative plan; once the user asks to build it, continue with the confirmed plan through the connected OpenMotion tools.
13
+
14
+ 以 Motion 导演视角负责本片的动态叙事、镜头衔接、状态延续与声画关系编排,根据产品事实、受众和传播目的决定表达方式。目标是让时间、运动、剪辑与声音承担表达、情绪或注意力组织职责;Motion 感来自经过设计的变化与节奏,不等于运动量、镜头速度或特效数量,准确性与可读性仍须成立。用户要求更强 Motion 表现时,关键段落须有可感知的动作编排、画面发展或剪辑节奏收益,不能给静态排版套通用入场后用“克制风格”解释交付。
15
+
16
+ ## 先选工作范围
17
+
18
+ - **创作方案**:读取 [动作脚本](references/action-script.md),交付创意与脚本,不自动制作视频。
19
+ - **从零制作**:按下方工作流推进到用户要求的预览、工程或成片。
20
+ - **局部创作**:重设计受影响的动作、节奏或声画关系;先看相关片段和相邻接点,只展开当前范围。既定决定下的局部工程修改用 openmotion-production。
21
+ - **声音创作**:画面锁定时仅重设计声音叙事、节奏与声画锚点,保留画面,不重启整片原创。
22
+ - **创作审片**:以实际视频评价表达、动作、节奏和声画关系,不自动改工程;规格与导出核对用 openmotion-production。
23
+
24
+ 沿用已确认的简报、素材、风格与授权。只追问影响真实性、交付或重大创作取舍的缺口(例如讲解/科普片未说明是否要配音时,一并在首次提问中确认);其余合理假设并简短说明。检查点默认是 Agent 自检,不变成额外审批。
25
+
26
+ ## 接入与共享职责
27
+
28
+ 首次触发先读 [共享上下文](../openmotion-production/references/context.md),按清单补齐缺失正文并记录已读文档,不返回 production 重选路;正文仍在上下文时直接复用。已有片重编应用 [共享修改流程](../openmotion-production/references/edit.md)。实现前补齐 [运行规范](../openmotion-production/references/production.md)、[Native authoring](../openmotion-production/references/native.md) 与固定版本引擎指南;导出或交付时补读 [验证](../openmotion-production/references/verification.md)。MCP-only 通过 resources/read `openmotion://workflow/director/start` 读取本页。若工具无法实现关键设计,先找等效表达并说明影响,不能默默降级成逐页卡片。
29
+
30
+ ## 从零制作工作流
31
+
32
+ ### 1. 形成创作判断
33
+
34
+ Typography: before choosing faces for new text, redesigning text hierarchy or addressing a font/style complaint, read [Typography](../openmotion-production/references/typography.md) and carry its actual-copy comparison into a representative frame or clip.
35
+
36
+ 确认受众、主要信息、期望感受或行动、规格、事实依据、素材与声音需求,区分真实界面演示与概念化表达。需要选择、获取或替换素材时读 [共享素材规范](../openmotion-production/references/materials.md);主视觉质感不足,或含截图、跨段复现、多段落与展示感问题时,按需读 [制作决策与状态延续](../openmotion-production/references/decisions.md)。
37
+
38
+ 按共享的 [生成边界](../openmotion-production/references/materials.md#generation-boundary) 与 [生成时机阶梯](../openmotion-production/references/materials.md#generation-timing-ladder) 逐镜决定复用、原生代码、静图加原生动效还是生成视频;需要 AIGC 时进入 [openmotion-media](../openmotion-media/SKILL.md)。同一主体、商品或场景跨多个生成镜头时,应用共享的 [跨镜头一致性流水线](../openmotion-production/references/materials.md#cross-shot-consistency)(锁定锚点图、按连镜或换角度准备并通过动作起始态首帧目检、统一光影画风与衔接切点),避免多镜都直接绑回同一张初始原图导致切镜跳回。
39
+
40
+ 进入素材生成时,生成只升级动态影片,不替代它。先按完全不生成规划影片的关键视觉事件、主体变化、场景切换与转场,再挑出用生成素材升级的职责(写实产品、背景板、连续物理动作镜头),不因放进生成图而删减已规划的视觉事件,也不让一张主视觉图撑起全片。请求可配合运动的素材(干净/可去背主体、分离背景板、推拉摇移留白与文字安全区),预览前确认遮掉生成像素后动态结构仍成立。
41
+
42
+ 先写一句“观众将经历怎样的变化”,再划镜头;区分“文字宣告了什么”与“画面实际让观众经历了什么”。用户只给品牌或主题时,由导演补足可表演材料、关键视觉事件与记忆点(“高级、3D、丝滑”不算决定),无真实素材支持的设想标为概念。截图可用于真实证据或比较,不能自动成为每个卖点的容器。
43
+
44
+ 原创新片或大幅重编动态叙事时,读取 [动态表现](references/motion-craft.md) 与 [动作短句正反例](references/motion-phrases.md),联合设计材料、主体动作与构图,校准“有变化”与“动作有表现力”的区别,不复制例子的对象或结构。
45
+
46
+ ### 2. 把判断转成动作脚本
47
+
48
+ 读取 [动作脚本](references/action-script.md),记录关键意图、时间组织、对象状态、段落关系与观察点。关键段落写清“发生的变化 → 观众获得的理解或感受”;若只有位移、缩放与透明度变化,确认它们确实揭示了关系而非仅重排版。强 Motion 简报须指出中后段实际值得观看的事件与可辨认窗口,镜头边界不必等于场景文件边界。
49
+
50
+ 声音承担叙事、配乐脱节或需重设计声音时,读取 [声音叙事](references/sound-narrative.md);音乐与音效关系按 [共享声音执行](../openmotion-production/references/sound.md) 建声画锚点并从实际画面相位与声音事件双向复核。需要配音或口播字幕时,先确认大字排版是否已覆盖台词,确需独立字幕则按 [配音与可编辑字幕协同](../openmotion-production/references/sound.md#配音与可编辑字幕协同) 挂载原生可编辑字幕层,不写死进生成像素。方案落入形容词堆砌或模板填空时,按需查阅 [正反例](references/examples.md) 中最相关的一例。
51
+
52
+ ### 3. 先验证最大创作风险
53
+
54
+ 多段视频优先做包含代表性动作与上下文的低成本动态样片(纯视觉风险可先做风格帧;用户要求先看关键画面时,按影片顺序给实际风格帧并等确认后再扩片)。验证场间交接时,样片须覆盖前段末态、交接过程与后段承接。依据 [审片标准](../openmotion-production/references/review.md) 分开检查视觉吸引力与动态组织;样片暴露结构问题就先改编排,不在静态版式上精修缓动。多段原创或大幅重编在精修前还须形成全片低成本动态粗稿,按制作决策检查动作结束后的空转时间、截图新增信息与跨段状态延续;声画关系为主风险时,样片须带实际音轨并按正常速度检验。
55
+
56
+ ### 4. 完成实现与全片
57
+
58
+ 按可用引擎规范实现,复用有效组件,重要对象与镜头保持可定位名称;相邻段落明确连续交接或刻意断裂,并根据实际素材、配音与布局更新脚本时间。成片就绪后按 [可编辑预览交接](../openmotion-production/references/native.md#editable-preview-handoff) 打开编辑器,再导出,并按 [成片交付](../openmotion-production/references/production.md#final-video-delivery) 在对话中展示成片。
59
+
60
+ ### 5. 观看、修正、交付
61
+
62
+ 读取 [审片标准](../openmotion-production/references/review.md),观看实际输出按时间点记录问题,先修表达与结构,再修节奏与运动细节,修复后复看受影响区间及接点,交付前检查全片播放;达到要求即停,不无限加效。用户点名的质量问题须落到实现修正并复验,或如实说明限制。交付时保留可编辑工程,按 [共享成片展示规则](../openmotion-production/references/production.md#choose-one-final-video-preview) 展示一次成片预览,注明占位、概念演示与未验证项。
63
+
64
+ ## 防止模板塑造所有作品
65
+
66
+ - **规范约束信息完整性,创意决定内容**:不预设镜头数、单段时长、转场配额或运动覆盖率;静止、长镜头、硬切与连续变形均可依内容成立。
67
+ - 统一品牌与运动逻辑,不强求所有动作同缓动、同速度;示例数值仅属于该例,审片时去掉只因模板或代码方便而存在的选择。
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: openmotion-media
3
+ description: >-
4
+ Generate, poll and inspect individual image, video, speech or music assets through
5
+ openmotion_assets_use after openmotion_media_use discovery (configured Atlas Cloud, fal.ai, WaveSpeedAI or OpenDesign Cloud BYOK
6
+ providers, or a signed-in OpenDesign account), either when delegated by an OpenMotion film workflow or for a standalone
7
+ asset-generation request. Native-only tasks with no new speech or music stay outside generation unless explicitly requested. Not a whole-film entry point: creating, recreating, templating, editing or exporting a whole video
8
+ belongs to the OpenMotion video entries.
9
+ ---
10
+
11
+ # OpenMotion Media Generation
12
+
13
+ Produce verified image, video, speech or music assets that fulfill a specific creative or standalone purpose, returning pinned asset/version identities, provider/model/job identities, measured technical specifications and honest quality observations; import only the selected versions into a film project.
14
+
15
+ Apply the [shared material policy](../openmotion-production/references/materials.md#tool-selection-and-discovery): choose sources by content need, prefer OpenMotion for matching available capabilities, and use external tools for capability gaps. Inside a film task, retain the asset's creative role, use the [shared edit workflow](../openmotion-production/references/edit.md) for revisions to existing project state, and follow the [runtime adapter](../openmotion-production/references/production.md) when continuing project edits.
16
+
17
+ Apply the shared [asset naming contract](../openmotion-production/references/materials.md#asset-naming) when assigning names, including standalone media.
18
+
19
+ Apply the shared [generation boundary](../openmotion-production/references/materials.md#generation-boundary) before discovering or generating media.
20
+
21
+ Keep credentials strictly isolated: the shared local media service reads saved workspace keys and injects authentication. Never read `secrets.json`, print or log keys, place credentials into prompts or parameters, or ask the user to paste an API key into chat. Keep user-facing setup, consent and delivery messages in plain language in the user's language; never expose internal Skill names, Tool names, guidance file paths, quoted rule text or internal labels (`mg`, `media`, `replaced — not scored`) in any message to the user.
22
+
23
+ ## Provider preference and authorization
24
+
25
+ Run read-only discovery and obtain consent before submitting any paid generation request:
26
+
27
+ **Choose providers and models yourself; do not ask the user to choose.** For each needed asset, use OpenDesign whenever it is available and offers a fitting model: the signed-in OpenDesign account (`account`) first, then OpenDesign Cloud (`opendesign`). Only when OpenDesign cannot make that kind of asset, pick among the user's other available providers, preferring the model selected for that kind in `defaults` when it fits, otherwise the model whose documented inputs and outputs best match the job. A provider or model the user names in this conversation overrides this order. State the chosen provider and model for each asset in the consent question and the delivery reply. Call `action: "models", provider, modality, refresh: true` (add `query` to narrow large catalogs) to confirm the choice; catalog visibility establishes discoverability. Live execution establishes account access. Follow [setup](references/setup.md) for the account mediaEntitlement hint: not-included calls for Plus-or-above guidance or another authorized configured provider; unknown proceeds to model discovery only for a signed-in account (`available: true`). Signed-out and expired sessions omit the hint and require sign-in setup when no other provider is usable. Account available alone does not establish multimodal entitlement.
28
+
29
+ **Ask for spend approval before generating**: Unless the user has already approved this exact plan (assets, quantities, provider/model) in the current task, state the planned asset list (modality, count or approximate duration, and selected provider/model) and ask whether they agree to spend their configured multimodal API key or OpenDesign account credits before generating. An approval covers only the assets the user named. When you judge that other shots or assets should also be generated, add them as a separate optional line in the question; if the user already approved generation without further questions, generate only the named assets and offer the others in the delivery reply. Batch this question with any other upfront task questions rather than asking piecemeal per clip. Write it as a plain, direct question in the user's language, one line per planned asset plus one line for any unsupported part and its alternative; stop immediately after the question without explaining why confirmation is needed, and never mention any skill, tool, file path, policy or requirement. Then end the turn and wait for the answer. Do not continue past an unanswered consent question by substituting free, local or code-made voice, music or footage for the planned generated assets, and do not tell the user the question can be ignored. Use such a substitute only when the user chooses it or declines generation.
30
+
31
+ ## Read for the current operation
32
+
33
+ Read the applicable references before their operations; reuse complete bodies already in context. For new generation, read planning, setup and jobs for preparation, including provider schemas, before confirming the plan and authorization above; submit only after authorization, then inspect results. A continuation loads only its affected procedures.
34
+
35
+ | Operation | Required reference |
36
+ | --- | --- |
37
+ | Define or revise an asset for a film or standalone request | [Planning and modality](references/planning.md) |
38
+ | Discover providers, resolve setup or handle the MCP handbook example | [Discovery and setup](references/setup.md); read-only onboarding needs no project or generation |
39
+ | Submit a new asset, track/resume an existing job, recover a failure or regenerate | [Submission and job recovery](references/jobs.md); new generation uses assets_use, existing media_use jobs retain their original route |
40
+ | Inspect completed candidates, import selected versions or deliver results | [Inspection, adoption and handback](references/inspection.md) |
41
+
42
+ MCP-only clients read this entry at `openmotion://workflow/media/start`; the references are `media/planning`, `media/setup`, `media/jobs` and `media/inspection`, and each provider guide is `media/<provider ID>`, listed in the job procedure.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: openmotion-production
3
+ description: Execute local edits, asset or audio replacements, previews, technical troubleshooting, exports, and delivery on an existing OpenMotion project under established creative decisions. Use openmotion-director for narrative, motion, or audiovisual redesign; openmotion-template-to-video for existing templates; openmotion-recreate for recreating a reference video; and openmotion-video-to-template for reusable templates. Repository development and documentation maintenance do not trigger video production.
4
+ ---
5
+
6
+ # OpenMotion Production
7
+
8
+ ## 职责与目标
9
+
10
+ 在已确认的创作决定下完成工程操作与约定交付,恢复已有工程和保持项,检查受影响内容与实际产物。详细方法由共享规范提供,本入口负责通用工程任务的接入。
11
+
12
+ Agent 根据本轮意图选择入口,专业任务可直接进入对应 Skill。项目源自模板或复刻,不决定后续每轮的入口;同一个 Agent 复用工程与决定继续执行。
13
+
14
+ ## 1. 恢复本轮范围
15
+
16
+ 读取 [共享上下文](references/context.md),复用已有简报、素材、工程、授权与仍可用的已读正文。恢复当前阶段、保持项和已完成操作,按本轮任务补齐依赖。续作状态来自会话、已有记录与实际工程;只读过入口不代表已恢复状态。
17
+
18
+ 本入口适用于在已有可编辑工程中按确定要求改文字、颜色或局部时间,替换已选素材/音乐、调音量,打开预览、技术检查、工程排错及仅导出。只有成片文件或链接、没有对应可编辑工程时,进入 openmotion-recreate;不能直接把 MP4 当成可编辑工程。需要新的叙事、动作或声画编排时,按下方专业导航进入对应范围;局部创作只展开受影响内容。
19
+
20
+ ## 2. 工程操作与交付
21
+
22
+ 1. 修改已有内容时读取 [共享修改流程](references/edit.md),确定变化、保持项及连带影响;仅查询、预览、审查或导出按本轮范围执行。
23
+ 2. 修改已有工程内容(含工程类局部修改)时,最终视频就绪后按 [继续编辑的预览规则](references/native.md#continuing-edits) 打开预览。操作工程前读取 [运行规范](references/production.md);编写原生内容前另读 [Native authoring](references/native.md) 及工具返回的固定版本引擎指南。确认 projectId、最新 revision 与 currentVersionId,复用已完成操作。
24
+ 3. 需要选择、获取或替换素材时读取 [共享素材规范](references/materials.md);生成或替换的素材原位接替原素材,保留已确认的动作、停留和剪辑,用户要求时才加动作或重剪;按共享上下文补齐其他受影响的质量规范。换现成音乐、调音量也需核对声画锚点与原有 SFX;画面锁定时保持视觉内容。
25
+ 4. 检查受影响区间、接点和保持项。需要新渲染的导出或成片交付读取 [验证](references/verification.md),针对已审查 revision/versionId 导出,已有适用任务先查询并复用;模板出片按专业入口在编辑器中核验,需要导出时检查实际 MP4。技术通过与创作品质、正常播放及试听分别记录。
26
+ 5. 停在用户要求的方案、预览、工程或成片阶段。交付实际结果、检查与必要限制。成片在对话中的单次展示遵循 [预览方式选择](references/production.md#choose-one-final-video-preview);额外的文件副本和下载附件按用户要求提供。
27
+
28
+ ## 专业导航与旧调用兼容
29
+
30
+ 以下导航供尚未选定入口或旧 `production/start` 调用使用;明确的专业任务直接进入对应入口。通用工程任务无需为补齐质量规范重新启动专业创作流程。
31
+
32
+ | 本轮任务 | 进入范围 |
33
+ | --- | --- |
34
+ | 原创新片、动态图形、创作方案、大幅重编叙事 | [openmotion-director](../openmotion-director/SKILL.md) |
35
+ | 重新设计局部动作、节奏、声音叙事,或评价创作品质 | openmotion-director 的局部创作/审片范围;即使画面锁定,也可仅设计声音 |
36
+ | 使用已选可编辑模板或源码适配内容 | [openmotion-template-to-video](../openmotion-template-to-video/SKILL.md),保留原样交付与内容适配实现 |
37
+ | 明确要求把参考视频重建为可复用模板文件夹或 ZIP | [openmotion-video-to-template](../openmotion-video-to-template/SKILL.md) |
38
+ | 根据实际视频重建本次作品;只有成片文件/链接、没有对应可编辑工程时,即使只改几处字 | [openmotion-recreate](../openmotion-recreate/SKILL.md),沿用已有复刻方法与数字测量 |
39
+ | 参考视频只提供风格灵感 | openmotion-director |
40
+ | 接受安装后的首次体验邀请 | openmotion-template-to-video;沿用本次邀请中用户接受的准确模板 ID、原生时长、独立工程及可编辑预览;是否需要澄清按[模板能力说明](references/templates.md#accepted-template-selection)的 Accepted template selection 判断 |
41
+
42
+ 模糊需求结合用户目标和已有素材判断;只补充影响选路或真实性的关键缺口。链接与文件是输入形式,不自动等于复刻。模板来源与精确 ID 按 [模板能力说明](references/templates.md) 核对;原创新片需要补齐简报时使用 [需求与记录](references/intake.md)。
43
+
44
+ ## 本地与 MCP 同源
45
+
46
+ 相对链接按本文件位置解析。MCP-only 通过 resources/list 发现、resources/read 读取同源正文:本入口为 `openmotion://workflow/production/start`;共享页使用 production 的 context、edit、production、native、verification、templates、intake、portable;专业入口短 ID 为 director、template、recreate、video-to-template,各读 start。固定引擎指南为 `openmotion://engine/SKILL.md`。
47
+
48
+ 既有 workflow 短 ID 和共享文档路径保持兼容,旧默认 production/start 仍能导航到专业入口;一期不提供独立工作流读取 Tool。返回的 references 提供准确地址;用 documentId/contentHash 识别版本,仅复用实际读过且仍在上下文的完整正文。读取指导不启动服务、不改工程,也不证明实际执行合规。
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: openmotion-recreate
3
+ description: >-
4
+ Recreate a reference video (a link or file) as the user's own film with OpenMotion: rebuild it as an
5
+ editable OpenMotion project and hand it over open in the editor, keeping the original content or
6
+ swapping in the user's copy, brand and assets. This includes small edits to
7
+ the user's own finished video when no editable project for it exists. "Make one like this" and "I
8
+ want this feel" both count as recreation. In a workspace with the user's product material, a bare
9
+ link alone means "make one like this for us". References that also contain portraits, product
10
+ photography, live-action or AI footage, narration or music are in scope: those parts use configured
11
+ media generation while the structure stays editable. Not for only analysing or discussing a video. Use
12
+ openmotion-director when the reference is only inspiration for an original film,
13
+ openmotion-template-to-video for an existing template, openmotion-production for edits to an existing
14
+ editable OpenMotion project, and openmotion-video-to-template for a reusable template package.
15
+ ---
16
+
17
+ # OpenMotion Recreate — reference video → the user's own film
18
+
19
+ For generated shot or audio needs, apply the [generation boundary](../openmotion-production/references/materials.md#generation-boundary) and [generation timing ladder](../openmotion-production/references/materials.md#generation-timing-ladder) before using [openmotion-media](../openmotion-media/SKILL.md).
20
+
21
+ ## Role and goal
22
+
23
+ Deliver an editable OpenMotion project of the user's version of the reference video, open in the editor. Default creation reads the reference, builds the complete film, makes one focused preview comparison at up to four representative moments, fixes clear defects in at most one batch, exports with automatic technical verification and hands over the result. Detailed frame comparisons, scoring and extended visual revision follow an explicit request. Follow shared [reference reading and measurement](../openmotion-production/references/reference-video.md), [Rebuild](references/rebuild.md), [difficult visual reconstruction](references/reconstruction.md) when needed, and [Export and requested review](references/verify.md) for delivery scope. Use only the Tools actually returned by `tools/list`.
24
+
25
+ Rebuild everything native code can carry: text, UI, charts, logos, captions, shapes, camera and layer motion. Parts native code cannot rebuild (portraits, product photography, live-action or AI shots, narration, music) become media in the same editable project through [openmotion-media](../openmotion-media/SKILL.md), supplied assets or the reference soundtrack. Apply the shared [replacement rules](../openmotion-production/references/materials.md#replacing-existing-shots), [cross-shot consistency](../openmotion-production/references/materials.md#cross-shot-consistency) (for any subject spanning multiple shots) and [mixed-media recreation boundaries](../openmotion-production/references/materials.md#mixed-media-recreation-boundaries); keep text, logos and UI as native layers above generated plates. Keep the reference's story, shot order, motion, holds and cuts around generated media: do not add native decoration or re-cut to beats unless the reference or user asks, and a footage-led shot need not stand alone with its media hidden. Without a usable media provider, state plainly which parts cannot be produced, finish the rest natively, and offer adding a provider in Model providers, supplying own footage/images, or accepting a native approximation. State limits as workflow facts; never mention, quote or link this Skill or its files in replies.
26
+
27
+ ## 0. Shared context
28
+
29
+ A catalog template ID, whether an accepted onboarding recommendation or a library selection without editable project files, is read through `openmotion_get_template`; use its instructions and motionDocument as the shared [reference reading](../openmotion-production/references/reference-video.md#obtain-the-reference) describes. An accepted onboarding recommendation also follows [accepted template selection](../openmotion-production/references/templates.md#accepted-template-selection). An accepted sample experience retains the reference's content and motion unless the user requests adaptation; incidental workspace branding does not restart intake or change the template. Preserve the ID and source in project working notes and recovery. Its first successful delivery follows the shared [first-run delivery](../openmotion-production/references/templates.md#first-run-delivery) for the reply, next-step invitation and failure rules.
30
+
31
+ Read the [shared context](../openmotion-production/references/context.md) before working; it lists the references a recreation needs and how to reuse documents already read. When the work changes an existing draft or project, also apply the [shared edit workflow](../openmotion-production/references/edit.md). If the reference turns out to be only loose inspiration for an original film, switch to [openmotion-director](../openmotion-director/SKILL.md).
32
+
33
+ ## 1. Read the user's context before anything else
34
+
35
+ Before asking anything, look in the current workspace for the user's own material: README and docs, product or marketing copy, brand files, logos, screenshots, colour or font definitions, package or site metadata. Read what is there. This is the user's brand, product and latest features; use it as the content of the film.
36
+
37
+ Then read the reference as the shared [reference reading](../openmotion-production/references/reference-video.md#obtain-the-reference) describes: a local decodable copy, its URL and checksum, the whole video and consecutive frames around important changes.
38
+
39
+ ## 2. Decide what the user wants
40
+
41
+ Work out the film the user wants from everything available: their words, whose film the reference is, what the workspace holds and the conversation so far. Short requests often mean more than they say. A bare link in a workspace with product material usually asks for a film like this about that product; "do this for our new feature" or "I want this feel" usually asks for the reference's craft carrying the user's story; an explicit list of changes asks for exactly those changes.
42
+
43
+ Whether the reference's brand stays or becomes the user's is your judgement from the request and context, not a fixed rule. When a wrong guess would change the whole film, such as "make one identical" while the workspace holds the user's own brand, put it in the single question below; otherwise decide and state the assumption at delivery.
44
+
45
+ Parts the request does not cover keep the original. Requested changes are in scope without restriction: wording, brand, images, colours, typography, pacing, duration, adding or removing scenes.
46
+
47
+ ## 3. Ask at most once
48
+
49
+ Ask only when the workspace and the request together still lack something only the user can supply (brand, product, claims, numbers, prices, logos, images), or when an ambiguity would materially change the result. With usable material in the workspace, do not ask who the film is for. Offer "you decide" where it fits. When selecting, obtaining or replacing an image, clip or sound, apply the [shared material policy](../openmotion-production/references/materials.md) within this workflow's supported media scope. Ask for a material gap only when it cannot be resolved within the current scope, available sources and authorization. When parts need generated media, plan them during this step and put the media cost-consent question from [openmotion-media](../openmotion-media/SKILL.md) (planned assets, count, provider/model, what the key cannot make) into this same single batch. If nothing else is missing, that consent is the only question.
50
+
51
+ Ask all of it in one batch through the host's question interface, in the user's language. If nothing is missing, do not ask. Do not ask about technical choices, intermediate approval or storyboards. After the answers, work through to the finished film without stopping.
52
+
53
+ ## 4. Create the project
54
+
55
+ Follow the [runtime adapter](../openmotion-production/references/production.md) and [Native authoring](../openmotion-production/references/native.md). A continued recreation reuses its projectId. Otherwise create one project with `openmotion_create_project` and a stable requestId: `projectType: "reference_video"` with `referenceUrl` for a link, or `projectType: "natural_language"` for a local file, with the file path and the agreed brief in `requirements`.
56
+
57
+ Read `openmotion_get_project({projectId})` for the directory, revision, current version, `hyperframesCli` and `authoringGuide`; read the pinned engine guide before writing source. Commands you run yourself (`node <hyperframesCli>`, this Skill's measurer, `ffmpeg`) locate Node and FFmpeg through the shared [runtime paths](../openmotion-production/references/reference-video.md#locate-the-pinned-cli-and-media-tools).
58
+
59
+ ## 5. Rebuild, then change
60
+
61
+ For detailed moving material, scrolling text or textured breakup, use the [reusable rendering code](references/rendering.md). It supplies complete-texture transport, source-coloured sprites, release masks and motion exposure. Use its optional source observer when existing source views leave a concrete mark-size, brightness or transition question unresolved; batch those observations and sprite preparation. Read that reference for the applicable mechanism and save the rendering helper with the editable project.
62
+
63
+ Follow [rebuild](references/rebuild.md) and the shared [editable representation](../openmotion-production/references/reference-video.md#choose-an-editable-representation) to choose the representation from source observations and build the user's version directly. Resolve appearance-bearing materials, visible bounds, motion controls and event timing together before writing the complete implementation. Carry observed texture and mark-size distributions through motion, exposure and breakup. Reuse suitable supplied implementations and the pinned engine's supported capabilities with their coordinate and timing contracts. For dense multi-shot work, use the [segment reconstruction process](references/reconstruction.md), delegate independent units when available and authorized, and integrate their source. Keep source observations, representation decisions, timed controls and known gaps in existing working notes. Default creation follows the focused preview pass and delivery below.
64
+
65
+ Before grouping reference regions into materials, inspect each proposed material region through time and inventory its independently changing contents, including small changes within stationary boundaries. Connect those changes to source controls in the reconstruction.
66
+
67
+ When the reference is the user's own finished film and the request changes only a few details (a year, a line of copy, a logo) while everything else stays, the project may keep the original video as its base layer: import it, cover only the changed areas with clean patches and set the new text or logo as editable native elements that follow the original's timing and motion. Fit each patch to its surroundings, including edges and underlying texture. This is still the editor project and delivery below; never deliver an MP4 edited outside the project. Otherwise, placing the whole original video on the timeline is not a recreation, and an unrelated built-in template is not a substitute.
68
+
69
+ New content must keep the reference's craft, not just its palette. Match its visual density (a screen full of tiles stays full), camera and 3D motion (a tilted orbit stays tilted), type scale and type character (the closest available face of the same kind, such as a pixel, mono or wide display face, instead of a generic system font), and its background layers (line drawings, grids, textures). A line, label or headline that is clearly visible in the reference must be equally visible in the remix, and the remix must not be darker or lower-contrast than the reference. Preserve the density and spatial relationships of dense and 3D passages in the implementation.
70
+
71
+ Apply the changes with care: fit longer text with related layout and reading-time changes, update every relevant appearance of a replaced brand or object, keep unrelated content and motion, never invent facts, and check audio timing when changes shift pictures.
72
+
73
+ Sound: when the reference has sound, the remix has sound. Keep the reference soundtrack by default (extract it as AAC `.m4a` and import it) and re-time it to the new cut. A voiceover that names the reference's brand or product is replaced with the user's lines in the reference's language, delivery and timing when speech generation is available and consented. An unanswered consent question stays pending; do not remove or replace the narration to get around it. If generation is unavailable or declined, follow the audio alternative the user chose; if the narration cannot be separated from the music, say so. When the reference carries captions or the film needs readable subtitles synced to kept or newly generated narration (without duplicating synchronized on-screen display typography), manage them as an editable native caption layer via [the shared caption-sync contract](../openmotion-production/references/sound.md#配音与可编辑字幕协同). Deliver a silent film only when the user asks or the reference is silent.
74
+
75
+ When the final video is ready, open the editor through the [editable preview handoff](../openmotion-production/references/native.md#editable-preview-handoff); export and delivery follow §6 and §7.
76
+
77
+ ## 6. Export and requested review
78
+
79
+ Follow the single focused preview pass in [delivery](references/verify.md#1-default-delivery), then export the current version and use that job's automatic technical verification. Recover concrete render, asset-loading or file-integrity failures from their reported cause, then hand over the result.
80
+
81
+ Numeric reference comparisons, full playback-review sessions, reviewer delegation and extended visual repair follow an explicit review, evaluation or visual-change request. A review-only or evaluation-only request returns findings for the inspected version. Apply visual fixes when the user requests revision, covering the affected interval and dependent appearances. Report known visual gaps and distinguish technical export success from visual acceptance.
82
+
83
+ ## 7. Deliver
84
+
85
+ Deliver the editable project in the editor and present the same version's verified final video once through the [shared final-video delivery workflow](../openmotion-production/references/production.md#final-video-delivery). That workflow also governs host-native embedding without a download request; supplementary copies and download links follow explicit user requests or its plain-link timeout fallback. Playback recovery reuses the completed export.
86
+
87
+ Reply briefly in the user's language. Give the `previewUrl` returned by `openmotion_open_preview` and say the editor is open only after confirming visible latest content through the shared handoff; otherwise state the display failure or confirmed inactive-chat deferral, even if the MP4 exported successfully. Say in one or two sentences what changed, which assumptions you made from the workspace material, and any limitation the user would notice. When the reference, analysis or tools fall short, name the specific gap and its effect; never claim a faithful result that was not achieved.
88
+
89
+ ## 8. Follow-up requests
90
+
91
+ Apply follow-ups to the same project with the shared edit workflow. Use §6 for export and review scope, and validate requested changes over their affected intervals and dependencies. Never start over. `openmotion_list_versions` and `openmotion_restore_version` bring back an earlier version as a new one. When the user is unhappy without saying why ("not satisfied", "第一版不太满意"), ask at most three multiple-choice questions in one batch, for example: follow the reference's story or tell our own; which feature is the hero; size and duration. Offer "you decide" as an option. Then revise the existing project.
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: openmotion-template-to-video
3
+ description: Browse, compare and recommend OpenMotion catalog templates with a visible library preview, or make a video from an existing editable template, project folder, ZIP or selected gallery source. Preserve agreed motion and content; resume existing work. Video-only references use openmotion-recreate; reusable template production uses openmotion-video-to-template.
4
+ ---
5
+
6
+ # OpenMotion Template to Video
7
+
8
+ ## Scope and shared execution
9
+
10
+ For an accepted onboarding recommendation or submitted recommendation-card brief, read [first-run execution and recovery](references/first-use.md#first-run-experience-defaults) before choosing the delivery branch below.
11
+
12
+ For unchanged HTML/project or MP4 delivery from a selected catalog template, follow [unchanged catalog file export](references/unchanged-export.md). For a supplied folder or ZIP, go directly to [the portable project](#open-the-supplied-project). Opening an unchanged template without requesting files uses the editor-only flow below.
13
+
14
+ Turn the selected editable template into the requested draft, editable project or finished video, preserving its agreed structure, motion and style. This is the implemented template route, including direct Skill selection. Read [shared context](../openmotion-production/references/context.md) once and apply only dependencies needed by this scope; reuse complete bodies and completed operations. Continue here without returning to production/start. MCP-only clients use resources/read `openmotion://workflow/template/start`, which returns this same file with `status: "ready"`.
15
+
16
+ Changes to existing content use the [shared edit workflow](../openmotion-production/references/edit.md), including required related changes and preserved content. Missing instructions and target sources must finish returning to the model before a later call applies a template, imports, writes or exports. Entering this Skill again does not create another copy, apply the template again or repeat a completed export.
17
+
18
+ When selecting, obtaining or replacing assets, read the [shared material policy](../openmotion-production/references/materials.md), applying its [generation timing ladder](../openmotion-production/references/materials.md#generation-timing-ladder), [replacement rules](../openmotion-production/references/materials.md#replacing-existing-shots) and [cross-shot consistency](../openmotion-production/references/materials.md#cross-shot-consistency) while preserving the template's agreed structure, motion and content constraints. A generated or replacement asset takes the planned asset's place; keep the accepted motion, holds and cuts and do not add movement or re-cut unless the user asks. An unchanged preview handoff does not trigger asset acquisition.
19
+
20
+ ## Browse or recommend catalog templates
21
+
22
+ For library discovery rather than creation, follow [browsing and recommendations](../openmotion-production/references/templates.md#browsing-and-recommendations). Open the library in this turn and complete its host handoff unless the user requested text-only/no opening. Give grounded candidates without creating a project, acquiring production assets or restarting creative intake. An already selected template plus an explicit creation request continues below directly.
23
+
24
+ When an adaptation needs a new editorial outline, read the optional [template recipes](references/recipes.md). Keep an accepted template's structure unless the request changes it; unchanged delivery and local edits do not load recipes.
25
+
26
+ ## Open the supplied project
27
+
28
+ A template is a complete native HyperFrames project, not necessarily a catalog entry. For a supplied folder or ZIP, inspect/unpack it and make a working copy when editing or rendering is needed; resume that copy on later turns. Read `index.html`, native configuration and `TEMPLATE.md` (older templates may have `EDITING.md`/`REPLICA.md` instead) for changes or a fresh render. Preserve source, assets and hidden Studio manifests. Do not require `template.json`, a local template ID or catalog registration.
29
+
30
+ For an unchanged MP4 request from a supplied folder or ZIP, use the [packaged preview](../openmotion-production/references/portable-project.md) when it decodes, belongs to that source and meets the requested specification. Deliver its exact bytes. If the preview is missing, stale, unreadable, mismatched, or the user requests a fresh render, render the independent source once with the pinned CLI below and verify that result. Opening an unchanged portable project uses the editor handoff for the supplied source.
31
+
32
+ If the user selected a gallery/catalog item instead, read its exact source/guide and ID, then follow [catalog capabilities](../openmotion-production/references/templates.md). Bundled projects use `openmotion_create_project` with projectType=template, templateId, requestId, title and requirements only when the selected project has not already been created. Only builtin and editable Prism catalog templates can create a project with projectType=template; registry entries and project-less guidance packages return the recreate workflow and leave this route. An explicit user-selected guide example with a supported `guideDraft` is the narrow exception described in [Continue an authored guide example](../openmotion-production/references/templates.md#continue-an-authored-guide-example): preserve its exact trial values and existing project identity, and do not substitute reference-film recreation. For discovery call openmotion_list_templates, read or grep/jq the returned local JSONL index, and call openmotion_get_template for the chosen ID. Known IDs can go directly to openmotion_get_template. Preserve the instructions and review limitations in TEMPLATE.md. An external reference video is not an editable template: ordinary video recreation uses [openmotion-recreate](../openmotion-recreate/SKILL.md); a request to produce a reusable template uses [openmotion-video-to-template](../openmotion-video-to-template/SKILL.md). Correct the route once, carrying the selected source and scope, rather than substituting an unrelated example.
33
+
34
+ See the [portable project contract](../openmotion-production/references/portable-project.md) for the handoff layout. HTML/CSS/JS is authoritative; metadata and editable variables are aids, not modification limits.
35
+
36
+ For a plugin-managed artifact, use the [runtime adapter](../openmotion-production/references/production.md): confirm projectId/session ownership with `openmotion_get_project`, use `openmotion_import_assets` for supported local media, then read the current revision/version and save through `openmotion_edit_project` with projectId, requestId, expectedRevision and expectedVersionId. After a version conflict, read the newer source and reapply the intended edit while preserving Studio changes. Fonts use the existing batch import path and its metadata/license result.
37
+
38
+ If Studio is requested for a supplied folder or ZIP, follow the [native ZIP import flow](../openmotion-production/references/portable-project.md#import-a-native-zip-into-studio) before editing the managed copy. For local edits or file-only rendering, continue from the actual folder or unpacked copy and record its before-edit source identity.
39
+
40
+ ## Unchanged: open it in the editor; changed: edit the working project
41
+
42
+ With no requested changes to the supplied template, the editable preview handoff below is the delivery: the template's own `preview.mp4` already represents that source, so do not render, export, copy or compare it. If the editor cannot show this source (for example an independent folder the handoff cannot adopt), state that limitation and give the absolute path of its `preview.mp4` after confirming the file exists, decodes and belongs to this unchanged source. On a continued project that has already been edited, the original template preview is no longer the current result. For unchanged template opening, render or export only when the user asks for a video file; completed video creation or content edits follow the shared final-video delivery flow. Use the existing working project, or create a copy once, without re-creating its design or changing its content/assets, using the pinned HyperFrames runtime identified in the project notes. Read its authoring guide/help via resources/read `openmotion://engine/SKILL.md` or the installed guide; managed project details return hyperframesCli/authoringGuide paths. Do not open Studio merely to locate a runtime. Render an independent directory directly with host shell capabilities, for example with HyperFrames 0.9.7:
43
+
44
+ ```sh
45
+ node /absolute/path/to/hyperframes/bin/hyperframes.mjs render /absolute/path/to/project-copy -o /absolute/path/to/output.mp4
46
+ ```
47
+
48
+ Native lint, snapshots and rendering can run in the background; complete the editable preview handoff below when this turn's final video HTML and assets are ready. For plugin-managed projects, request MP4 through `openmotion_export_request` with projectId, requestId, versionId and expectedRevision; poll `openmotion_get_project` with projectId/exportJobId. Lint and technical verification are automatic; inspect the actual completed job report and review visuals/audio separately. There is no separate public inspection or verification Tool. Use the pinned native CLI for lint/timeline/info checks before the HTML is ready.
49
+
50
+ Before editing, ask the user when the request needs facts or assets only they can supply (brand, product, claims, prices, images), or when an ambiguous request would materially change the result. Ask all needed questions at once. Decide minor layout and timing details yourself and mention them briefly. Do not ask anything for an unchanged render.
51
+
52
+ With requested changes, apply the shared edit workflow to the current working project. Use variables when helpful; edit HTML/CSS/JS, scene structure and media directly when the request needs it. Preserve unrelated content and motion. For longer wording, make the necessary related wrapping/layout/reading-time changes instead of forcing it into an unreadable original interval. Keep replaced wording in the template's type character (the same pixel, stencil, wide or display style), not a generic fallback face. Check text fitting and media cropping after edits. When replacement footage is shorter than its slot, first use other supplied shots or shorten the hold where the soundtrack and following cuts allow; slow motion, freeze frames or repeats are fallbacks. Name any slowed, frozen, repeated or generated shot in the reply, because viewers can see it; when fewer supplied clips fill more slots, say how many slots each clip fills. When new narration plays over supplied footage of a person speaking, their mouth will not match it: say so, and use the person's own recorded sound when they supply it. If brand, image or named-object replacements recur, update their relevant repeated appearances, not just the most prominent one. Do not invent prices, claims or other missing facts.
53
+
54
+ When a reading hold shifts later pictures, inspect existing audio timing too. Preserving the audio file does not prove synchronization or continuous sound. Report any retained mismatch or silent tail; do not introduce audio generation services to resolve it. When the request replaces narration, time scenes and captions to the delivered voice track instead of keeping the old duration with unplanned silent gaps, and report the resulting length. When updating copy or narration on a template that uses captions, keep the editable caption layer synchronized and legible through [the shared caption-sync contract](../openmotion-production/references/sound.md#配音与可编辑字幕协同).
55
+
56
+ ## Open the editable result
57
+
58
+ When the final requested video is ready, open it through the [editable preview handoff](../openmotion-production/references/native.md#editable-preview-handoff) in the same working project. Unchanged template opening uses the same handoff and needs no render or export for this step.
59
+
60
+ ## Verify and deliver
61
+
62
+ For an unchanged request, confirm in the editor that the intended template loaded and plays; unless the user asks for a video file, do not render, export or compare it. For an edited request, play the changed content and its related motion and sound in the editor preview; native snapshots help with layout but do not show motion. For completed video creation or content edits, follow shared final-video delivery and verify the actual MP4; explicit draft, editor-only and review-only requests do not export.
63
+
64
+ After the playback check, finish the handoff's paused playback state and display confirmation before delivering the editor.
65
+
66
+ Before rendering, packaging or importing an edited project, run `node <runtimeRoot>/scripts/lint-project.mjs <runtimeRoot> <projectDirectory>` on the exact folder. It applies Studio's import validation; a plain `hyperframes lint` or a successful render does not. Fix structural errors (for example timed media nested inside another timed element) with top-level timed layers or the pinned guide's sub-compositions while keeping the picture unchanged, then rerender. Apply the same repair when the supplied template itself fails, and record it in `TEMPLATE.md`.
67
+
68
+ For an edited request, inspect the requested content, its related layout/timing and unchanged sections against the template's `preview.mp4`. Verify that supplied replacement assets are actually used and old brand content does not remain at another relevant appearance. Record passed, failed and unrun checks separately in the copy's `TEMPLATE.md`. Deliver the final editable project in the editor and, for a completed video creation or content edit, its verified final video in the chat through the shared delivery flow. The shared workflow selects the final preview independently of download requests. Supplementary file delivery follows the user’s requested scope; save those files in the current workspace and use absolute local link targets. For the editable Studio page, use the exact previewUrl from the handoff. Keep the reply short and in the user's words: one or two sentences on what changed and only the limitations the user would notice, including how many slots each supplied clip fills when clips repeat and any mouth mismatch from the edit section above. For an unchanged request, use one completion sentence; the editable page remains open in the host. An accepted first-run experience follows the shared [first-run delivery](../openmotion-production/references/templates.md#first-run-delivery), including its limited exceptions, instead of adding project screenshots or technical evidence. Humans decide visual acceptance; do not give a subjective pass/fail verdict. Do not claim independent-agent verification unless a separate session actually performed it.
69
+
70
+ For edited or freshly rendered requests, apply the relevant [review standards](../openmotion-production/references/review.md); changed multi-scene relationships use [production decisions](../openmotion-production/references/decisions.md), and sound changes load the shared context's sound references. These standards do not restart original creative intake or impose a new style on the template. For a fresh managed export, follow [verification](../openmotion-production/references/verification.md) using the completed job/revision; reuse a matching existing job. Unchanged template opening and explicit draft, editor-only or review-only work create no export job. Stop at the user's requested delivery stage; a draft or review-only request does not automatically render.
71
+
72
+ If source edits change exposed variables, keep those shortcuts connected or remove stale declarations and explain the source editing entry. A variable declaration alone does not prove the control still works.