synthetic-screen-recording
它能做什么
这项技能说明何时应使用 TerminalScene 组件制作模拟终端录屏,何时应录制真实屏幕。适合制作软件演示、并希望终端视频干净、可预测的人。
适用场景
- ✓当你想演示一个命令行工具,并且已经知道确切的命令和输出时。
- ✓当你需要保护隐私、不显示真实桌面的录屏时。
- ✓当你希望精确设置输入速度和时间节奏时。
技能链接
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/synthetic-screen-recording/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请制作一段简短的终端演示视频,展示如何安装并运行我的命令行工具。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会事先写好命令和预期输出,然后由 TerminalScene 组件逐字输入,并带有闪烁的光标和滚动的输出。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Synthetic Screen Recording (Remotion TerminalScene)
Decision this skill answers: When the user wants a screen-recording-looking demo of a terminal, CLI tool, or coding workflow — do I capture the real desktop (OS screen recording via screen_recorder, Windows-MCP, Cap, or Playwright), or do I synthesize it in Remotion with the TerminalScene component?
Heuristic: If the agent can author the exact command/output sequence in advance, synthesize. Only capture live when the real behavior is unpredictable, needs a real app UI, or the user explicitly asked for a real recording.
Why this exists
v3 of the OpenMontage showcase tried to use Windows-MCP + screen_recorder to drive a Git-Bash window for the install walkthrough. It stalled on window positioning, focus races, and taskbar privacy concerns. We pivoted to pure Remotion rendering — a React component named TerminalScene that draws a fake terminal and types commands character-by-character. The output is visually indistinguishable from a real screen recording (same traffic-light window chrome, blinking cursor, scrolling output) but deterministic, privacy-safe, pixel-perfect at 1080p, and pace-controllable to the frame.
That component + pattern is the capability this skill makes discoverable.
When to use synthetic (TerminalScene)
YES, synthesize when:
- The demo is a terminal / CLI / coding session where commands and outputs are predictable
- The user wants a polished tutorial feel (clean typography, floating pills, cursor blink)
- Install walkthroughs, setup demos, API key config,
maketargets,git cloneflows - You need tight sync with narration — every command must land on a specific beat
- You want the result reproducible (re-render gets identical pixels)
- The user's actual desktop has private apps/windows visible you'd otherwise have to crop
NO, capture a real screen when:
- The demo is a real app UI that can't be faked (Figma, Photoshop, a web app with live state, a browser flow)
- The user explicitly asked for a recording of their actual screen
- The behavior depends on timing you can't script (streaming LLM output, real network latency)
- There's a visual quirk (a cursor effect, a plugin pop-up) that only appears in the live environment
For a browser demo → playwright-recording skill, not this one.
For a real desktop → screen_recorder tool or Cap via cap_recorder.
The component — TerminalScene
Located at: remotion-composer/src/components/TerminalScene.tsx
Exported from: remotion-composer/src/components/index.ts
Wired in dispatch: remotion-composer/src/Explainer.tsx (if (cut.type === "terminal_scene"))
Props:
interface TerminalSceneProps {
title?: string; // shown in the window title bar
steps: TerminalStep[]; // the timeline
prompt?: string; // "$", ">", etc.
accentColor?: string; // pill + prompt glow
backgroundColor?: string;
}
Step kinds:
{ kind: "cmd", text: string, typeSpeed?: number, holdSeconds?: number }
{ kind: "out", text: string, holdSeconds?: number }
{ kind: "pause", seconds: number }
{ kind: "pill", text: string, color?: string, durationSeconds?: number }
cmd— prints the prompt, types the text character-by-character (typeSpeedis seconds per character, default 0.035), then holds forholdSeconds(default 0.3)out— a line of program output, reveals instantly with a short fade-inpause— dead time. Terminal holds on last visible state. USE THIS TO SYNC WITH NARRATION.pill— non-blocking floating badge (top-right). Spring-in, hold, spring-out. Does NOT advance the cursor — the next step runs in parallel.
Authoring pattern
Author a new scene by adding a cut to build_composition.py (or your equivalent props builder):
install_steps = [
{"kind": "pause", "seconds": 7.0}, # wait for intro narration
{"kind": "cmd", "text": "git clone https://github.com/calesthio/OpenMontage.git",
"typeSpeed": 0.045, "holdSeconds": 0.3},
{"kind": "out", "text": "Cloning into 'OpenMontage'..."},
{"kind": "out", "text": "remote: Enumerating objects: 2847, done."},
{"kind": "pill", "text": "repo cloned", "color": "#34D399", "durationSeconds": 2.6},
{"kind": "pause", "seconds": 3.8}, # bridge to next narration cue
# ...
]
cuts.append({
"id": "install-terminal",
"type": "terminal_scene",
"terminalTitl
常见问题
什么时候应该改为录制真实屏幕?
这项技能说明,只有在输出不可预测、演示需要真实的应用界面,或你明确要求真实录制时,才应进行实时录制。
结果看起来像真实录屏吗?
这项技能说明它非常接近真实录屏,包括窗口边框、光标和滚动的输出。
制作它使用什么工具?
它使用 Remotion 视频框架,并通过 TerminalScene 组件绘制模拟终端。
详情
作者的原始描述
Synthetic terminal-style screen recording guidance for Remotion `TerminalScene`.
repo: calesthio/OpenMontage
热度
- GitHub 星标
- 75k
- 排名
- #2692
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/28
评论
- …