返回顶部
b

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, writing the output into the workspace `media/` directory, and returning it with the MEDIA protocol. Use when the user wants a browser walkthrough, product demo, site recording, landing-page capture, hover/click/search flow recording, or asks to package browser recording into a reusable skill.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
83
下载量
0
收藏
概述
安装方式
版本历史

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 1. Extract the recording brief into a concrete sequence. 2. Convert the sequence into a JSON plan. 3. Run `scripts/run-recording.mjs` against that plan. 4. Verify the MP4 exists in the current workspace `media/` directory. 5. 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: ```bash 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: 1. Mention the generated file path briefly. 2. Put the attachment on its own line using the MEDIA protocol. Example reply shape: ```text 录好了,时长约 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 `evaluate` step that changes the form target to `_self` before 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 browser-demo-recorder-1776021771 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 browser-demo-recorder-1776021771 技能

通过命令行安装

skillhub install browser-demo-recorder-1776021771

下载 Zip 包

⬇ 下载 browser-demo-recorder v1.1.0

文件大小: 12 KB | 发布时间: 2026-4-13 09:34

v1.1.0 最新 2026-4-13 09:34
Improve recording fidelity with a visible cursor overlay on the current page, wheel-based scrolling that stays anchored near the last interaction, and cross-platform input clearing. Also update docs to reflect human-like cursor, click, type, and scroll behavior.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部