cmux-capture
它能做什么
它为 cmux 窗口截取 PNG 或 JPEG 屏幕截图,或为某个操作录制一段 MP4 或 GIF 短视频。适合需要展示应用当前外观的人。
适用场景
- ✓当你为拉取请求或错误报告需要 cmux 窗口的屏幕截图时。
- ✓当修改是视觉上的,审阅者需要证据而不是文字描述时。
- ✓当拖动或动画用一段短片展示更容易理解时。
技能链接
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-capture/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为 cmux 中的设置面板截一张屏幕截图,我要把它附在我的拉取请求上。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用 cmux 截取命令保存应用窗口的图像,或开始和停止录制。它不需要屏幕录制权限,并且只对 cmux 自身的窗口工作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Screenshots and clips of cmux
cmux shot writes a png or a jpeg of a cmux window. cmux record writes an mp4
or a gif of one. Both capture only cmux's own windows, both go through the
same permission-free path, and both work in a release build and inside CI. No
Screen Recording permission is involved and none is ever requested.
cmux shot --label settings-sheet # png of the frontmost window
cmux shot --jpg --max-width 1200 --out ~/before.jpg
cmux record start --gif --max-seconds 8 --label sidebar-drag
cmux record note "dragging the workspace" # caption, drawn into the clip
cmux record stop
shot prints <width>x<height> <bytes> <path>. record prints
<id> <state> <frames> <path>. Both take --json for the whole response.
Which one
Take a screenshot when the thing is still: a sheet, a menu, a layout, a label, a color. Record when the thing is a change over time: a drag, an animation, a reorder, two views settling in an order, a spinner that should stop. A screenshot of a drag shows nothing, and a clip of a static sheet is a large file a reviewer has to click to play.
Working from a clip to a still
--region x,y,w,h is the same rectangle in both commands, in window points from
the window's top left. So a detail noticed in a clip can be shot with the same
four numbers:
cmux record start --region 0,0,420,900 --max-seconds 6 # watch the sidebar
cmux shot --region 0,0,420,900 --label sidebar-final # keep the end state
Notes for an agent recording its own cmux
- A recording stops itself at
--max-seconds(default 15, maximum 120), so a clip is never left running by an agent that stops paying attention. Set it above the time the actions take or the clip ends early. - One at a time. A second
record startis refused withconflictwhile one is running.cmux record listsays whether anything is going, andcmux record statusreports the frame count, with the effective frame rate in--json. - Caption as you go.
cmux record note "<text>"draws text into the clip from that moment on. A clip has no step list beside it, so one note before each thing a reviewer should notice is worth more than a longer clip.--no-captionsturns them off. - The clip is only cmux. Another app in front of the cmux window does not appear in the frames, so a capture does not have to own the screen.
- Frames are timed by when they were captured, so a clip plays at the speed
things happened even when the sampler fell behind the requested rate. Check
fps_effectivein--jsonif a clip looks slower than expected. - A
gifis the shape to paste into a pull request, and--gifalready picks the 8 fps and half scale that keep one small; an mp4 is sharper and needs a click to play.scripts/pr-media.pyuploads either and converts an mp4 to a gif on the way. - Neither command replaces a directory or destroys an existing file before the
new one is closed.
--outon a path that is not a file is refused, and so is one whose extension does not match the format:--out clip.gifneeds--gif.
In a CI dogfood tour
A dogfood scenario records with a record step wrapping the steps that matter,
and captions with note, rather than by calling the CLI. The step table and the
options are in
cmux-testing/references/dogfood-scenarios.md.
Deep-dive references
| Reference | When to use |
|---|---|
| references/commands.md | Every flag, the response shape, the error codes, window selection, limits |
常见问题
它需要屏幕录制权限吗?
不需要。它只通过一种无需额外权限的方式捕获 cmux 自己的窗口。
什么时候应该录制而不是截图?
当变化随时间发生,例如拖动或动画时用录制;静态画面用截图。
我能只截取窗口的一部分吗?
能。区域选项允许你按窗口点数截取特定的矩形区域。
详情
作者的原始描述
Screenshot or record a cmux window from the CLI, for a pull request, a bug report, or to see what the app actually looks like right now. Use when a change is visual, when a drag or an animation cannot be described in text, or when a reviewer needs evidence rather than a claim.
repo: manaflow-ai/cmux
热度
- GitHub 星标
- 29k
- 排名
- #9794
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cmux-browser
29k让你的智能体在 cmux 中打开网站,并在浏览器面板中阅读、点击和提取信息,同时不会抢走你当前工作的焦点。
cmux-cloud-vm
29k让你的智能体在你的 cmux Cloud 机器上运行命令、启动编码智能体并展示工作区,面板关闭后工作仍会继续。
cmux-cua
29k让你的智能体通过 cmux Computer Use 引擎操作真实的 macOS 应用,读取辅助功能树,并代你点击、输入和滚动。
cmux-custom-sidebar
29k让你的智能体根据简单的描述构建自定义 cmux 侧边栏,显示工作区、拉取请求或时钟等内容,并实时更新。