cmux-capture
Skill này làm gì
Skill này chụp ảnh PNG hoặc JPEG của một cửa sổ cmux, hoặc một bản ghi MP4 hoặc GIF ngắn của một hành động theo thời gian. Dành cho người cần cho thấy giao diện ứng dụng trông như thế nào ngay lúc này.
Khi nào nên dùng
- ✓Khi bạn muốn ảnh chụp màn hình của một cửa sổ cmux cho một pull request hoặc báo cáo lỗi.
- ✓Khi một thay đổi mang tính trực quan và người review cần bằng chứng hơn là mô tả.
- ✓Khi một thao tác kéo hoặc hoạt ảnh dễ cho thấy hơn bằng một đoạn clip ngắn.
Liên kết skill
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-capture/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chụp ảnh màn hình phần cài đặt trong cmux để tôi đính kèm vào pull request của mình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng lệnh capture của cmux để lưu ảnh cửa sổ ứng dụng, hoặc để bắt đầu và dừng một bản ghi. Không cần quyền ghi màn hình, và nó chỉ hoạt động trên các cửa sổ của chính cmux.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Nó có cần quyền Screen Recording không?
Không. Nó chỉ chụp các cửa sổ của cmux thông qua một đường dẫn không cần quyền bổ sung.
Khi nào nên ghi hình thay vì chụp ảnh?
Ghi hình khi thay đổi diễn ra theo thời gian, chẳng hạn một thao tác kéo hoặc hoạt ảnh. Dùng ảnh chụp cho một cảnh tĩnh.
Tôi có thể chụp chỉ một phần của cửa sổ không?
Có. Tùy chọn vùng cho phép bạn chụp một hình chữ nhật cụ thể theo điểm của cửa sổ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 29k
- Vị trí xếp hạng
- #9794
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cmux-browser
29kCho phép agent của bạn mở website trong cmux, đọc, nhấp và trích xuất thông tin từ khung trình duyệt mà không chiếm tiêu điểm của bạn.
cmux-cloud-vm
29kCho phép agent của bạn chạy lệnh, khởi động agent lập trình và hiển thị workspace trên các máy cmux Cloud, giữ công việc chạy tiếp sau khi pane đóng.
cmux-cua
29kCho phép agent của bạn thao tác ứng dụng macOS thật qua engine Computer Use của cmux, đọc cây accessibility và nhấp, gõ, cuộn thay bạn.
cmux-custom-sidebar
29kCho phép agent của bạn xây dựng sidebar cmux tùy chỉnh từ mô tả đơn giản, hiển thị các thứ như workspace, pull request hoặc đồng hồ, với cập nhật trực tiếp.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.