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
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Cursor SDK — We’re introducing the Cursor SDK so you… · motion.md</title><link rel="stylesheet" href="viewer/guide.css"><link rel="stylesheet" href="viewer/board.css"></head>
<body style="--paper:#f5f5f1;--brand-ink:#202122;--accent:#9966cc;--sample-font:Arial, sans-serif">
<header class="shell"><a class="wordmark" href="#">ııı <strong>motion</strong><span>.md</span></a><span class="shell-divider"></span><span class="shell-name">视频风格规范</span><nav><button class="tab active" data-tab="board">样式板</button><button class="tab" data-tab="source">motion.md</button><a href="motion.md" download>下载文档 ↗</a></nav></header>
<main id="board-view"><header class="intro"><div class="kicker">Cursor <span>/</span> V074</div><div class="intro-line"><h1>Cursor SDK — We’re introducing the Cursor SDK so you…</h1><button id="allPause" class="quiet">播放编排 ▷</button></div><div class="intro-copy"><p>先写一个最小 SDK 例子,在旁边运行它,再只改配置切换执行环境。通过代码与终端的对应说明接口的一致性。</p></div></header>
<div class="overview"><section class="hero"><div class="tile-label">构图与编排 <span>可播放 · 可替换内容</span></div><figure class="demo" id="demo-sequence" data-demo="{"id": "sequence", "title": "整体编排", "src": "demos/sequence.html", "duration": 35.033451, "status": "authored", "description": "动作与构图示意", "initialTime": 4.8, "params": [{"key": "title", "label": "示例主文案", "type": "text", "value": "Cursor SDK", "maxLength": 60}, {"key": "accent", "label": "强调色", "type": "color", "value": "#9966cc"}], "presets": [{"label": "默认内容", "values": {"title": "Cursor SDK", "accent": "#9966cc"}}, {"label": "OpenDesign 改编", "values": {"title": "OpenDesign", "accent": "#7050da"}}]}"><div class="demo-heading"><span>整体编排</span><span class="status">规则示例</span></div><div class="demo-stage"><iframe loading="eager" sandbox="allow-scripts" title="整体编排" data-src="demos/sequence.html"></iframe></div><div class="demo-controls"><button class="play" type="button" disabled>播放</button><button class="reset" type="button" disabled aria-label="从头播放">↺</button><input class="seek" type="range" min="0" max="35.033451" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 35.03 秒</output><select class="speed" aria-label="播放速度"><option value="1">1×</option><option value="0.5">0.5×</option><option value="0.25">0.25×</option></select></div><div class="demo-params"></div><figcaption>动作与构图示意 <a href="demos/sequence.html" target="_blank" rel="noopener">独立打开 ↗</a><details class="demo-source"><summary>查看 HTML 源码</summary><pre><code><!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Cursor SDK — We’re introducing the Cursor SDK so you… · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f5f5f1}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="sequence"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html></code></pre></details></figcaption></figure></section><aside class="identity"><section class="type-sheet"><div class="tile-label">字形与层级 <span>字形示意</span></div><div class="type-brand">Cursor</div><div class="type-sample">Cursor SDK</div><p>无衬线界面文字与清晰大小层级</p><div class="type-baseline"></div></section><section class="palette"><div class="tile-label">配色 <span>点击复制色值</span></div><div class="swatches"><button class="swatch" data-color="#f5f5f1" style="--swatch:#f5f5f1" aria-label="复制色值 #f5f5f1"><span></span><code>#F5F5F1</code></button><button class="swatch" data-color="#202122" style="--swatch:#202122" aria-label="复制色值 #202122"><span></span><code>#202122</code></button><button class="swatch" data-color="#9966cc" style="--swatch:#9966cc" aria-label="复制色值 #9966cc"><span></span><code>#9966CC</code></button><button class="swatch" data-color="#f1ba8a" style="--swatch:#f1ba8a" aria-label="复制色值 #f1ba8a"><span></span><code>#F1BA8A</code></button><button class="swatch" data-color="#9ab8ad" style="--swatch:#9ab8ad" aria-label="复制色值 #9ab8ad"><span></span><code>#9AB8AD</code></button></div></section></aside></div>
<div class="roles"><span class="label">画面元素</span><span>代码行</span><span>行号</span><span>语法颜色</span><span>活动行</span><span>终端</span><span>输出日志</span><span>完成标记</span></div>
<div class="board-heading"><div><span class="eyebrow">MOTION LANGUAGE</span><h2>动作与构图</h2></div><p>局部动作 · 构图规则</p></div><div class="rule-grid"><section class="rule text-only" id="section-1"><div class="rule-label"><span>01</span><h2>代码按依赖顺序出现</h2></div><div class="rule-copy">
<p>从导入、创建代理、发送任务到事件处理逐段写出。当前代码段占据阅读中心,行号稳定,新增行向下扩展;不把整页代码从开头一次性缩得很小。</p>
<p>米白代码区与黑色终端形成清楚分工。代码用等宽字体和有限的语法色,活动配置行使用浅色底或强调色,标题沿用简洁无衬线。</p>
</div></section><section class="rule has-demo" id="section-2"><div class="rule-label"><span>02</span><h2>运行时让终端承担进展</h2></div><figure class="demo" id="demo-clip-2" data-demo="{"id": "clip-2", "title": "运行时让终端承担进展", "src": "demos/clip-2.html", "duration": 10, "status": "authored", "description": "6–16 秒 · 动作示意", "initialTime": 0.6}"><div class="demo-heading"><span>运行时让终端承担进展</span><span class="status">规则示例</span></div><div class="demo-stage"><iframe loading="eager" sandbox="allow-scripts" title="运行时让终端承担进展" data-src="demos/clip-2.html"></iframe></div><div class="demo-controls"><button class="play" type="button" disabled>播放</button><button class="reset" type="button" disabled aria-label="从头播放">↺</button><input class="seek" type="range" min="0" max="10" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 10.00 秒</output><select class="speed" aria-label="播放速度"><option value="1">1×</option><option value="0.5">0.5×</option><option value="0.25">0.25×</option></select></div><div class="demo-params"></div><figcaption>6–16 秒 · 动作示意 <a href="demos/clip-2.html" target="_blank" rel="noopener">独立打开 ↗</a><details class="demo-source"><summary>查看 HTML 源码</summary><pre><code><!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Cursor SDK — We’re introducing the Cursor SDK so you… · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f5f5f1}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="6" data-end="16"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html></code></pre></details></figcaption></figure><div class="rule-copy">
<p>代码完成后缩到左栏,终端在右栏出现,先输入执行命令,再输出读取、修改、检查和完成信息。日志可以加快,但关键完成行要留停顿。</p>
</div></section><section class="rule text-only" id="section-3"><div class="rule-label"><span>03</span><h2>切环境,只高亮改变的几行</h2></div><div class="rule-copy">
<p>将本地路径改为云仓库或相应配置时,保留大部分代码不动。活动行短暂突出,然后重新执行并显示第二次结果。</p>
<p>两次运行保持同一目标,差异集中在执行位置;不要为了表现云端而把代码、任务和成果同时全部换掉。</p>
</div></section><section class="rule text-only" id="section-4"><div class="rule-label"><span>04</span><h2>更换示例前先准备可读的最小代码</h2></div><div class="rule-copy">
<p>选一项短任务,使配置与输出都能在屏幕里读完。将代码、终端命令和日志一起替换,保留最小配置、一次运行、小幅修改、再次运行的结构。</p>
</div></section></div>
<section class="timeline-sheet" id="timing"><div class="board-heading"><div><span class="eyebrow">SEQUENCE</span><h2>段落与节奏</h2></div><p>点击段落,定位到上方编排示意。</p></div><div class="beats"><button class="beat" data-time="0.0"><span>0.00<small>s</small></span><b>导入SDK</b></button><button class="beat" data-time="2.0"><span>2.00<small>s</small></span><b>创建代理</b></button><button class="beat" data-time="4.0"><span>4.00<small>s</small></span><b>事件处理</b></button><button class="beat" data-time="6.0"><span>6.00<small>s</small></span><b>代码与终端并列</b></button><button class="beat" data-time="9.0"><span>9.00<small>s</small></span><b>运行命令</b></button><button class="beat" data-time="12.0"><span>12.00<small>s</small></span><b>工具输出</b></button><button class="beat" data-time="16.0"><span>16.00<small>s</small></span><b>本地完成</b></button><button class="beat" data-time="18.0"><span>18.00<small>s</small></span><b>替换配置</b></button><button class="beat" data-time="20.0"><span>20.00<small>s</small></span><b>切换云仓库</b></button><button class="beat" data-time="22.0"><span>22.00<small>s</small></span><b>再次执行</b></button><button class="beat" data-time="28.0"><span>28.00<small>s</small></span><b>云端完成</b></button><button class="beat" data-time="31.0"><span>31.00<small>s</small></span><b>品牌</b></button></div><div class="filmstrip"><figure><img src="assets/reference-1.jpg" alt="0.00 秒的构图参考" loading="lazy"><figcaption>0.00s</figcaption></figure><figure><img src="assets/reference-2.jpg" alt="4.00 秒的构图参考" loading="lazy"><figcaption>4.00s</figcaption></figure><figure><img src="assets/reference-3.jpg" alt="9.00 秒的构图参考" loading="lazy"><figcaption>9.00s</figcaption></figure><figure><img src="https://r.open-design.ai/files/0b538ff8e4b52bc3348610f50a6832c8ca345c3940dc13d90602b227dabc99c9" alt="18.00 秒的构图参考" loading="lazy"><figcaption>18.00s</figcaption></figure><figure><img src="assets/reference-5.jpg" alt="22.00 秒的构图参考" loading="lazy"><figcaption>22.00s</figcaption></figure><figure><img src="assets/reference-6.jpg" alt="31.00 秒的构图参考" loading="lazy"><figcaption>31.00s</figcaption></figure></div><p class="tiny">画面参考 · 离散静帧</p></section>
<section class="production"><div><span class="eyebrow">KEEP THE RELATIONSHIPS</span><h2>制作其他主题</h2>
<ul><li>可迁移为SDK教学,保留最小示例→执行→只改配置→再次执行</li><li>代码必须独立验证,原片文字不构成可运行代码承诺</li></ul>
</div><div class="production-rules"><h3>制作约束</h3>
<p>代码行 / 行号 / 语法颜色 / 活动行 / 终端 / 输出日志 / 完成标记</p>
<ul><li>代码从少到多写出后缩为左栏,右栏终端执行相同配置</li><li>本地改云端只高亮相关配置行,复用其余代码以说明接口一致</li><li>日志顺序为调用、变更、验证、完成</li></ul>
</div></section>
<footer>
<p><a href="style.json">视觉与对象</a> · <a href="timeline.json">段落时序</a> · <a href="tracks.json">位置数据</a> · <a href="manifest.json">文件清单</a></p>
<p>此规范根据参考视频整理。HTML 为可编辑的编排示例;具体数据的来源、精度与有效区间随文件标注。</p><span>Cursor / MOTION.MD</span></footer></main>
<section id="source-view" hidden><pre># Cursor SDK — We’re introducing the Cursor SDK so you…
先写一个最小 SDK 例子,在旁边运行它,再只改配置切换执行环境。通过代码与终端的对应说明接口的一致性。
```motion-demo
{
"id": "sequence",
"title": "整体编排",
"src": "demos/sequence.html",
"duration": 35.033451,
"status": "authored",
"description": "动作与构图示意",
"initialTime": 4.8,
"params": [
{
"key": "title",
"label": "示例主文案",
"type": "text",
"value": "Cursor SDK",
"maxLength": 60
},
{
"key": "accent",
"label": "强调色",
"type": "color",
"value": "#9966cc"
}
],
"presets": [
{
"label": "默认内容",
"values": {
"title": "Cursor SDK",
"accent": "#9966cc"
}
},
{
"label": "OpenDesign 改编",
"values": {
"title": "OpenDesign",
"accent": "#7050da"
}
}
]
}
```
## 代码按依赖顺序出现
从导入、创建代理、发送任务到事件处理逐段写出。当前代码段占据阅读中心,行号稳定,新增行向下扩展;不把整页代码从开头一次性缩得很小。
米白代码区与黑色终端形成清楚分工。代码用等宽字体和有限的语法色,活动配置行使用浅色底或强调色,标题沿用简洁无衬线。
## 运行时让终端承担进展
代码完成后缩到左栏,终端在右栏出现,先输入执行命令,再输出读取、修改、检查和完成信息。日志可以加快,但关键完成行要留停顿。
```motion-demo
{
"id": "clip-2",
"title": "运行时让终端承担进展",
"src": "demos/clip-2.html",
"duration": 10,
"status": "authored",
"description": "6–16 秒 · 动作示意",
"initialTime": 0.6
}
```
## 切环境,只高亮改变的几行
将本地路径改为云仓库或相应配置时,保留大部分代码不动。活动行短暂突出,然后重新执行并显示第二次结果。
两次运行保持同一目标,差异集中在执行位置;不要为了表现云端而把代码、任务和成果同时全部换掉。
## 更换示例前先准备可读的最小代码
选一项短任务,使配置与输出都能在屏幕里读完。将代码、终端命令和日志一起替换,保留最小配置、一次运行、小幅修改、再次运行的结构。
## 配色与字形
无衬线界面文字与清晰大小层级。
#f5f5f1 · #202122 · #9966cc · #f1ba8a · #9ab8ad
## 元素与制作规则
代码行 / 行号 / 语法颜色 / 活动行 / 终端 / 输出日志 / 完成标记
- 代码从少到多写出后缩为左栏,右栏终端执行相同配置
- 本地改云端只高亮相关配置行,复用其余代码以说明接口一致
- 日志顺序为调用、变更、验证、完成
## 内容替换
- 可迁移为SDK教学,保留最小示例→执行→只改配置→再次执行
- 代码必须独立验证,原片文字不构成可运行代码承诺
## 制作参数
[视觉与对象](style.json) · [段落时序](timeline.json) · [位置数据](tracks.json) · [文件清单](manifest.json)
此规范根据参考视频整理。HTML 为可编辑的编排示例;具体数据的来源、精度与有效区间随文件标注。
```motion-board
{
"version": 1,
"brand": "Cursor",
"id": "V074",
"palette": [
"#f5f5f1",
"#202122",
"#9966cc",
"#f1ba8a",
"#9ab8ad"
],
"typography": "无衬线界面文字与清晰大小层级",
"sample": "Cursor SDK",
"objects": [
"代码行",
"行号",
"语法颜色",
"活动行",
"终端",
"输出日志",
"完成标记"
],
"frames": [
{
"path": "assets/reference-1.jpg",
"timeSeconds": 0.0,
"frameId": "K0001",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-2.jpg",
"timeSeconds": 4.000013447510308,
"frameId": "K0008",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-3.jpg",
"timeSeconds": 9.000030256898192,
"frameId": "K0020",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "https://r.open-design.ai/files/0b538ff8e4b52bc3348610f50a6832c8ca345c3940dc13d90602b227dabc99c9",
"timeSeconds": 18.000060513796384,
"frameId": "K0033",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-5.jpg",
"timeSeconds": 22.000073961306693,
"frameId": "K0043",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-6.jpg",
"timeSeconds": 31.000104218204886,
"frameId": "K0057",
"role": "reference-evidence",
"status": "measured"
}
],
"stages": [
{
"start": 0.0,
"label": "导入SDK",
"end": 2.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 2.0,
"label": "创建代理",
"end": 4.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 4.0,
"label": "事件处理",
"end": 6.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 6.0,
"label": "代码与终端并列",
"end": 9.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 9.0,
"label": "运行命令",
"end": 12.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 12.0,
"label": "工具输出",
"end": 16.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 16.0,
"label": "本地完成",
"end": 18.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 18.0,
"label": "替换配置",
"end": 20.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 20.0,
"label": "切换云仓库",
"end": 22.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 22.0,
"label": "再次执行",
"end": 28.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 28.0,
"label": "云端完成",
"end": 31.0,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 31.0,
"label": "品牌",
"end": 35.033451,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
}
],
"duration": 35.033451,
"fontFamily": "Arial, sans-serif"
}
```
</pre></section><div class="toast" role="status" aria-live="polite"></div><script src="viewer/guide.js"></script><script src="viewer/board.js"></script></body></html>