本文へスキップ
Skillpedia
画像とアイコン29k · #9794

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に貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-capture/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“cmuxの設定シートのスクリーンショットを撮って、プルリクエストに添付できるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはcmuxのcaptureコマンドを使って、アプリのウィンドウの画像を保存するか、録画を開始および停止します。画面収録の許可は不要で、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 start is refused with conflict while one is running. cmux record list says whether anything is going, and cmux record status reports 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-captions turns 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_effective in --json if a clip looks slower than expected.
  • A gif is the shape to paste into a pull request, and --gif already picks the 8 fps and half scale that keep one small; an mp4 is sharper and needs a click to play. scripts/pr-media.py uploads 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. --out on a path that is not a file is refused, and so is one whose extension does not match the format: --out clip.gif needs --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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル