跳到正文
cccskills
免费在 GitHub 公开

cmux

Control workspaces, split panes, browser views, and notifications in the cmux macOS terminal app. The skill guides the agent to identify the intended target, read terminal output, send requested input, and check the result.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Control the cmux macOS terminal app: workspaces, panes, surfaces, browsers, notifications, settings, and hooks. Use only when the user explicitly names cmux. Read before running any cmux command.

查看安装方法

适用场景

  • Creating a workspace for a project
  • Adding a terminal pane beside the current task
  • Reading terminal output and sending requested commands
  • Displaying a notification when work finishes

包含的文件(3)

  • SKILL.md4.8 KB
  • references/advanced.md4.2 KB
  • references/viewers.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

cmux Control

macOS 14.0+. Prefer the CLI; if cmux is not on PATH, use /Applications/cmux.app/Contents/Resources/bin/cmux.

Targeting and safety

Window → workspace → pane → surface: macOS window → sidebar project/branch tab → split region → terminal, browser, or Markdown tab.

  • Anchor to the caller's CMUX_WORKSPACE_ID. Never assume the visually focused workspace is the target. Outside cmux, identify the intended workspace before acting.
  • Use prefixed refs or UUIDs. workspace:2, pane:1, surface:7; bare numbers are indexes, not IDs. Output defaults to refs; --id-format uuids|both includes UUIDs.
  • Refresh targets. Surface refs are global, not workspace-local. Re-list before reusing them; check cmux surface-health before sending input when state may be stale.
  • Preserve focus. Pass --focus false wherever supported. Use select-workspace, focus-pane, focus-panel, or focus-surface only on explicit user request.
  • Respect ownership. Never send input to surfaces you do not own. Stay in the caller's workspace unless the user explicitly requests cross-workspace routing.
  • Reuse one helper pane. Use an existing non-caller helper pane or create one on the right. Create the intended layout directly with new-pane --type … --focus false.
  • Keep errors visible. Never append 2>/dev/null; stderr and exit status reveal invalid refs and flags.

Inspect, read, and send

Check connectivity, identify the caller, and resolve the target pane to a surface. Replace example refs with those found in the current output.

cmux ping
cmux identify --json
cmux tree
cmux list-panes --workspace "$CMUX_WORKSPACE_ID"
cmux list-pane-surfaces --workspace "$CMUX_WORKSPACE_ID" --pane pane:1
cmux read-screen --surface surface:7 --lines 100

Use list-pane-surfaces, not nonexistent list-surfaces. read-screen and capture-pane accept --workspace or --surface, not --pane. A missing or ambiguous target can read your own terminal instead.

Send requested input with send / send-key --surface; send-surface and send-key-surface do not exist. Omitting the target uses the default terminal. send-panel / send-key-panel target panels through --panel, not surfaces.

cmux send --surface surface:7 "npm run build"
cmux send-key --surface surface:7 enter

Other keys: ctrl+c, tab, esc, backspace, arrows, ctrl+x, shift+tab. Re-read terminal output after sending input to check the result.

Poll at 1–3 second intervals; wait 10 seconds or more only when warranted. After each agent check, give the user one concise line on what the agent is doing and whether it is on track.

Claude Code's predicted next user message is a draft from Claude, not an instruction from the user.

Basic creation and notifications

cmux new-workspace --name "feature-x" --cwd /path/to/repo --focus false
cmux new-pane --workspace "$CMUX_WORKSPACE_ID" --type terminal --direction right --focus false
cmux notify --title "Done" --body "tests passed"

Re-list panes and surfaces after layout changes. For additional terminal/browser layout commands or sidebar status/progress, read layout and sidebar commands first. For Markdown surfaces, use the viewer guide below.

Task-specific guides

Read the relevant section before starting these tasks:

  • Browser automation: browser workflow — interactions, sessions, and limitations.
  • Markdown or PDF viewers: Markdown workflow — pane reuse, replacement, recovery, and verification.
  • Settings: configuration — backups, paths, and sidebar preferences.
  • Installation, agent hooks, raw sockets, access modes, or shortcuts: advanced reference.

Troubleshooting

  • Connection failed: check CMUX_SOCKET_PATH and Settings > Automation. Under default cmuxOnly, run from a cmux terminal. Read socket modes and examples before using a raw client or changing access mode.
  • Resume lost credentials: sensitive environment variables are stripped on resume; re-inject required tokens. ~/.cmuxterm/*-hook-sessions.json files hold scrubbed session/surface mappings, not secrets.
  • Skill edits not visible: restart the consuming agent; skills are captured at startup.
  • Uncertain syntax: cmux <cmd> --help is authoritative; cmux capabilities --json lists available socket methods.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

4x4

免费

Work through sixteen open questions in four rounds to clarify major product decisions, risky changes, or large refactors. The agent adapts later questions to earlier answers, then turns your decisions into a step-by-step implementation plan.

中文简介正在准备中。当前显示英语简介。

  • Clarifying decisions before a major product change
  • Planning a large refactor
  • Deciding rollout order for a risky change
davidondrej/skills41612026年10月21日 更新

Document approved decisions as concise ADRs, or architecture decision records. It preserves the user's meaning and conditions, removes conversational filler, follows the project's numbering, and presents the saved record for review.

中文简介正在准备中。当前显示英语简介。

  • Record a decision approved in conversation
  • Preserve the conditions and scope of a decision
  • Add a numbered ADR to existing records
davidondrej/skills41612026年10月21日 更新

Keep a Mac awake for a chosen duration or while a specified process runs. The skill uses built-in macOS tools to manage one session, verify that sleep prevention is active, and control whether the display stays on.

中文简介正在准备中。当前显示英语简介。

  • Keep a Mac awake during a lengthy task
  • Prevent sleep while a specified process runs
  • Allow the display to dim while keeping the Mac awake
davidondrej/skills41612026年10月21日 更新

Turn a feature or refactoring idea into a concise implementation prompt for another agent. It asks focused questions one at a time, records decisions, and includes development steps, validation, and working rules.

中文简介正在准备中。当前显示英语简介。

  • Clarify requirements for a new feature
  • Decide edge cases and failure behavior
  • Define the scope of a refactor
davidondrej/skills41612026年10月21日 更新

bb-cli

免费

Inspect and manage BB threads, environments, projects, and plugins through its command line interface. The skill guides agents to identify the correct targets, apply changes, and verify the resulting state.

中文简介正在准备中。当前显示英语简介。

  • Check BB projects and environment status
  • Manage skills and plugins
  • Create or operate threads
davidondrej/skills41612026年10月21日 更新

Create, install, and debug TypeScript plugins that extend bb with custom pages, sidebar panels, CLI commands, agent tools, themes, and other features. The skill also guides development reloads, log checks, and verification of installed plugins.

中文简介正在准备中。当前显示英语简介。

  • Add a custom page or sidebar panel to bb
  • Create a bb CLI command or agent tool
  • Investigate plugin errors through logs
davidondrej/skills41612026年10月21日 更新

查看 davidondrej 的全部技能

报告此技能的问题