/install browser-demo-recorder
Browser Demo Recorder
Turn a natural-language recording request into a deterministic browser recording that lands in the current workspace media/ directory and can be sent back immediately.
Workflow
- Extract the recording brief into a concrete sequence.
- Convert the sequence into a JSON plan.
- Run
scripts/run-recording.mjsagainst that plan. - Verify the MP4 exists in the current workspace
media/directory. - Reply with a short status line and a
MEDIA:line pointing at the generated file.
What to Capture From the User Brief
Convert the request into these fields before recording:
- Start URL and any required destination URLs
- Viewport preference if given; otherwise use
1600x1200 - Ordered steps: page holds, cursor sweeps, clicks, typing, scrolls, and ending frame
- Timing goals: total duration, per-step hold times, and any "don't click" / "hover only" constraints
- Output basename if the user hints at a name; otherwise derive a short slug from the task
If the brief is missing something critical, ask one question. Otherwise infer sensible defaults and proceed.
Plan Format
Read references/plan-schema.md when building or debugging plans.
Use references/example-skills-video-plan.json as the default reference for a multi-step marketing demo with homepage, hub, search, and return-home flow.
Runner
Run the recorder like this:
node scripts/run-recording.mjs /absolute/path/to/plan.json
Behavior:
- Connects to the existing OpenClaw browser via CDP
- Injects a visible cursor overlay so recordings show mouse position
- Uses human-like mouse movement, clicks, typing, and wheel-based scrolling
- Records directly to MP4
- Writes both MP4 and debug JSON into the plan's
outputDir - Default output directory should be the current workspace
media/directory
Output Rules
Always set the plan outputDir to the workspace media directory unless the user explicitly asks for a different safe location.
After success:
- Mention the generated file path briefly.
- Put the attachment on its own line using the MEDIA protocol.
Example reply shape:
录好了,时长约 42 秒。
MEDIA:media/my-demo-2026-03-25T09-30-00-000Z.mp4
Use a workspace-relative MEDIA: path when possible.
Implementation Notes
- Homepage forms sometimes open a new tab; if that breaks a continuous recording, add an
evaluatestep that changes the form target to_selfbefore clicking submit. - Prefer DOM-based targets over raw coordinates, but use coordinates for cinematic cursor sweeps.
- Keep cursor motion smooth and leave short holds after major transitions so the video is usable with voiceover.
- Save the generated plan near the media output or in a temp location only if you need to inspect it again; the MP4 in
media/is the primary artifact. - If the run fails, inspect the debug JSON written next to the output video before retrying.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install browser-demo-recorder - 安装完成后,直接呼叫该 Skill 的名称或使用
/browser-demo-recorder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Browser Demo Recorder 是什么?
Record browser demo videos from a plain-language brief by turning the requested flow into a plan, driving the OpenClaw browser via CDP, encoding an MP4, writ... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 133 次。
如何安装 Browser Demo Recorder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install browser-demo-recorder」即可一键安装,无需额外配置。
Browser Demo Recorder 是免费的吗?
是的,Browser Demo Recorder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Browser Demo Recorder 支持哪些平台?
Browser Demo Recorder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Browser Demo Recorder?
由 smile618(@smile618)开发并维护,当前版本 v1.1.0。