browser-video-recording
它能做什么
这个技能指导智能体根据浏览器截图制作屏幕录制风格的视频,包括光标点击和跟随动作的缩放画面。适合从网页制作产品演示或教程的人。
适用场景
- ✓你想制作带有可见光标点击的浏览器演示视频的时候。
- ✓你想把浏览器步骤重新录制为流畅视频的时候。
- ✓演示需要跟随页面上动作进行缩放的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/browser-video-recording/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我浏览器中的注册步骤制作一段简短演示视频,带有光标点击和平滑缩放。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会捕获浏览器的各个状态,然后随附的脚本会将它们渲染为带有自然光标和平稳缩放的视频。交付前,它会检查视频细节和缩略图。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Browser Video Recording
Dependency Model
Separate the workflow into three layers:
- Browser control and source frames: Use the Codex in-app browser through the Browser skill/MCP. Do not use Chrome when the user asks for Codex browser or the project says not to. The browser layer supplies real screenshots and real click/scroll/navigation states.
- Local video renderer: Use the bundled Python script to render screenshots into an MP4 with a natural macOS cursor, subtle click scale, and calm zoom-follow framing. This does not require a screen-recording MCP.
- Optional native recorder integration: Use a native recording MCP only when callable and explicitly useful for starting/stopping an actual app recording or opening a generated project. If unavailable, blocked, or unable to capture the Codex browser surface, fall back to the screenshot-to-video renderer and explain the fallback.
Self-Contained Execution
This skill is enough for another Codex instance to perform the Python rendering as long as the full skill folder is installed, including scripts/render_browser_demo.py. Codex should run the bundled script instead of recreating the renderer.
Required local tools:
python3- Python package
Pillow ffmpegandffprobe
Optional macOS cursor extraction uses swift and /usr/sbin/screencapture. If those are unavailable, provide a transparent PNG through cursor_asset and set cursor_hotspot in the config.
The Browser skill/MCP is still needed for fresh Codex in-app browser screenshots. If it is unavailable, use the best available browser automation screenshot source and state the fallback.
Optional Native Recorder Support
For native app recording, verify the MCP supports:
- Use
frameRate: 60. - Use
resolutionRawValue: "4K". - Use
ratioPresetRawValue: "4:3"for region recordings. - Use an explicit
selectedRegionOnScreenwhen cropping to an embedded browser viewport.
For the local renderer, 4K 4:3 means 3840x2880. If a native recorder exposes a 4K enum, treat it as an app-side resolution preset and pair it with 4:3 region selection when recording through that MCP.
Capture Workflow
Use browser:control-in-app-browser first. After loading its docs, drive the in-app browser with the Node/browser API:
- Set viewport to
1920x1440for 4:3 4K output, then reset it before finishing. - Navigate to the requested page and perform actual clicks, backs, searches, and scrolls.
- Save browser-only screenshots after each important state change. Use names like
01-results-top.png,02-after-card-click.png,03-back-results.png. - Record the viewport coordinates of each click/scroll target. The final cursor path should land on those points, pause, click, then move to the next meaningful point.
Avoid desktop coordinate automation unless the user explicitly needs system UI. Codex browser visibility may not expose a capturable macOS surface; screenshots from the browser API are the reliable source.
Motion Rules
Make the cursor feel purposeful:
- Use sparse, mostly straight cursor paths.
- Pause briefly on a target before clicking.
- Do not wander over unrelated UI.
- Let the page transition happen after the click, not before.
- Use only subtle click feedback: scale dip/rebound, not decorative rings unless requested.
- Keep zoom-follow calmer than the cursor. The camera should frame the clicked content, not chase every small mouse move.
Default visual target:
- Real macOS pointer extracted from the compositor, or an existing transparent cursor asset.
- Cursor scale
3.0, matching the large cursor style commonly used in edited demo recordings. - Click animation strength
15for a subtle click scale dip. - Rotation strength up to
8deg, only from horizontal velocity.
Render Script
Use scripts/render_browser_demo.py for deterministic 60 fps 4:3 4K output:
python3 /path/to/browser-video-recording/scripts/render_browser_demo.py \
--config /tmp/browser-demo-config.json \
--output /tmp/browser-demo-4x3-4k-60fps.mp4
Generate a starter config:
python3 /path/to/browser-video-recording/scripts/render_browser_demo.py --write-template
The config supplies:
shots: map of state names to screenshot PNG paths.scene_starts:[time, shotName, transition]entries.cursor_keys:[time, x, y]viewport-coordinate entries.camera_keys:[time, x, y, zoom]entries.click_times: click timestamps.duration,fps,
常见问题
它需要屏幕录制工具吗?
不需要。技能通过随附的脚本把截图渲染为视频,原生录制器是可选的。
需要安装哪些工具?
Python 及 Pillow 软件包,以及 ffmpeg 和 ffprobe。
它需要 Mac 吗?
光标提取针对 macOS。当这些工具不可用时,技能会使用备用光标。
详情
作者的原始描述
Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13332
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。