Chuyển đến nội dung
Skillpedia
Tự động hóa29k · #9804

cmux

Skill này làm gì

Skill này cho phép agent điều khiển cách bố cục ứng dụng cmux. Nó có thể tạo chia ngăn, chuyển thẻ giữa các ngăn và xác định nơi nó đang chạy.

Khi nào nên dùng

  • ✓Khi bạn muốn agent mở các chia ngăn terminal mới và chạy một lệnh trong đó.
  • ✓Khi bạn cần chuyển một thẻ terminal hoặc trình duyệt sang ngăn khác hoặc sắp xếp lại nó.
  • ✓Khi bạn muốn một hiệu ứng nhấp nháy để cho thấy ngăn nào cần sự chú ý của bạn.

Liên kết skill

https://github.com/manaflow-ai/cmux/blob/main/skills/cmux/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/manaflow-ai/cmux/blob/main/skills/cmux/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy chia cửa sổ cmux của tôi sang bên phải và khởi động máy chủ phát triển trong ngăn mới.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng dòng lệnh cmux để đọc bố cục hiện tại, rồi tạo, di chuyển hoặc chọn ngăn và thẻ bằng các tên tham chiếu ngắn như pane:1.

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.

cmux Core Control

Non-browser cmux topology and routing.

  • Window: top-level macOS cmux window.
  • Workspace: tab-like group within a window.
  • Pane: split container in a workspace.
  • Surface: a tab within a pane (terminal or browser panel).

Fast start

cmux identify --json                              # current caller context
cmux list-windows / list-workspaces / list-panes
cmux list-pane-surfaces --pane pane:1
cmux new-workspace
cmux new-split right --surface surface:1
cmux new-split down --command "npm run dev"       # new terminal runs the command in a live shell
cmux move-surface --surface surface:7 --pane pane:2 --focus true
cmux split-off --surface surface:7 right
cmux reorder-surface --surface surface:7 --before surface:3

# workspace context-menu actions (color, description, rename, pin, ...)
cmux workspace-action --action set-color --color Blue
cmux workspace-action --action set-description --description "Ship checklist"

# attention cue
cmux trigger-flash --surface surface:7

Handle model

Output defaults to short refs (window:N, workspace:N, pane:N, surface:N). UUIDs are accepted as input; request UUID output only when needed with --id-format uuids|both.

Initial command on new terminals

new-workspace, new-split, new-pane, and new-surface accept --command <text>. cmux starts the terminal's normal interactive shell and delivers the text plus one Enter at spawn time, so the command runs immediately and the shell stays alive after it exits. No follow-up send or send-key enter is needed, and the text is passed literally (quoting, &&, pipes, and $VARS are interpreted by the new shell). The flag is terminal-only: it is rejected with --type browser|simulator|agent-session, blank text is ignored, and new-workspace --layout ignores it because layout surfaces define their own commands. Details: references/panes-surfaces.md.

Settings

cmux-owned settings live in ~/.config/cmux/cmux.json. cmux docs settings prints the docs URL, schema URL, raw GitHub resources, cmux.json paths, and reload command. cmux settings, cmux settings cmux-json, and cmux settings shortcuts open the UI.

cmux reload-config reloads both cmux.json and ~/.config/ghostty/config, refreshing terminals in place with no app restart.

Terminal rendering (font, cursor style, theme, scrollback, background-opacity, background-blur) belongs in Ghostty config, not cmux settings. Everything else (app behavior, sidebar, notifications, browser behavior, automation, workspace colors, cmux-owned shortcuts) is cmux settings. Before editing, copy any existing cmux.json to a timestamped .bak next to it. Legacy ~/.config/cmux/settings.json and ~/Library/Application Support/com.cmuxterm.app/settings.json are read only as fallback for missing keys.

For a completed download, the CLI can inspect the bounded history owned by the target browser surface without consuming a waiter:

cmux browser --surface <surface> download list
cmux browser --surface <surface> download list --limit 5 --json

Use the browser skill for the full response fields and wait/path compatibility details.

Deep-dive references

Reference When to Use
references/handles-and-identify.md Handle syntax, self-identify, caller targeting
references/windows-workspaces.md Window/workspace lifecycle, reorder/move, and context-menu actions (color, description, rename)
references/panes-surfaces.md Splits, surfaces, move/reorder, focus routing
references/trigger-flash-and-health.md Flash cue and surface health checks
../cmux-workspace/SKILL.md Current caller workspace rules and non-disruptive automation
../cmux-settings/SKILL.md Safe cmux.json settings edits and validation
../cmux-browser/SKILL.md Browser automation on surface-backed webviews
../cmux-markdown/SKILL.md Markdown viewer panel with live file watching
../cmux-capture/SKILL.md Screenshots and clips of a cmux window for evidence
Câu hỏi thường gặp

Tôi có phải biết tên các ngăn không?

Không. Agent có thể liệt kê cửa sổ, không gian làm việc và ngăn, rồi chọn đúng cái từ danh sách đó.

Terminal mới có thể chạy lệnh ngay không?

Có. Chia ngăn và bề mặt mới có thể bắt đầu với một lệnh, và lệnh đó chạy trong một shell đang hoạt động.

Điều này có hoạt động với thẻ trình duyệt không?

Có. Một thẻ có thể là terminal hoặc bảng trình duyệt, và cùng các lệnh xử lý cả hai.

Chi tiết

Mô tả gốc của tác giả

End-user control of cmux topology and routing (windows, workspaces, panes/surfaces, focus, moves, reorder, identify, trigger flash). Use when automation needs deterministic placement and navigation in a multi-pane cmux layout.

repo: manaflow-ai/cmux

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9804
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự