cmux-customization
它能做什么
它帮助修改 cmux 设置、自定义操作、工作区布局、快捷键、查看器和终端主题,然后进行验证。适合希望按自己喜欢的方式设置应用的 cmux 用户。
适用场景
- ✓当你希望在 cmux 中添加自定义操作、布局或命令面板条目时。
- ✓当你想修改 cmux 的快捷键、通知或侧边栏设置时。
- ✓当你想从其他终端应用引入字体或颜色时。
技能链接
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-customization/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的 cmux 配置中添加一个自定义操作,用于打开一个带有我的开发布局的新工作区,并保留我的其他设置不变。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体为每项更改选择正确的配置文件,在有可用架构时使用架构进行编辑,并在报告完成之前验证结果。终端外观的设置则改在 Ghostty 配置中修改。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cmux Customization
Keep the user's config intact, prefer schema-backed edits, and validate before reporting completion.
For content viewers, start with the viewer customization matrix. It maps each viewer to the settings, command, or external file that owns its knobs, including explicit fallbacks for viewer types whose template settings have not shipped yet.
Choose the right surface
| Want to change | Edit |
|---|---|
| App preferences (appearance, sidebar, notifications, browser routing, automation, shortcuts, new-workspace placement) | ~/.config/cmux/cmux.json via the cmux-settings helper |
| Custom actions, workspace layouts/commands, tab bar buttons, plus-button behavior, Command Palette entries, notification hooks | ~/.config/cmux/cmux.json globally or .cmux/cmux.json in the project |
Dock controls (right-sidebar terminals: logs, test watchers, git TUIs, dev servers, queues, cmux feed tui --opentui) |
.cmux/dock.json or ~/.config/cmux/dock.json; cmux docs dock when available |
| Terminal rendering and terminal keybindings (fonts, themes, cursor style, copy-on-select, shell integration) | Ghostty config, usually ~/.config/ghostty/config |
| Bring fonts, colors and terminal behavior over from iTerm2, Terminal, Alacritty, Kitty, WezTerm or a Warp theme | cmux import <terminal> --dry-run to preview, then cmux import <terminal>; writes cmux's own Ghostty config and a generated theme, never ~/.config/ghostty/config |
| Workspace names, descriptions, colors, read state, sidebar metadata | cmux CLI, see ../cmux-workspace/SKILL.md |
| Feed event sources | cmux hooks setup |
Viewer-specific JSON settings live in the global cmux.json: browser.*,
markdown.*, fileEditor.*, fileExplorer.*, and diffViewer.*. Generic file
preview routing also uses app.openSupportedFilesInCmux and
app.openMarkdownInCmuxViewer plus app.preferredEditor. Right-sidebar tools
are structural state and Dock configuration, not a templates.rightSidebarTool
object.
Project-local .cmux/cmux.json and .cmux/dock.json let worktree, SSH, review, dev, CI, and docs patterns travel with the repo; project actions and commands override global entries with the same ID or name. Global app preferences do not belong there.
If a request can be handled by Ghostty config, say so and use Ghostty config instead of inventing cmux UI settings.
Key surfaces in cmux.json: actions (reusable, can appear in Cmd+Shift+P, surface tab bars, shortcuts, and the plus-button right-click menu; type: "text" pastes a snippet into the focused terminal and does not submit it unless submit: true), ui.newWorkspace.action (replaces the plus-button click) and ui.newWorkspace.contextMenu (right-click menu; ui.newWorkspace.rightClick is an accepted alias but new examples use contextMenu), ui.surfaceTabBar.buttons (replaces default tab bar buttons; include built-ins like cmux.newTerminal, cmux.newBrowser, cmux.splitRight, cmux.splitDown only when they should stay visible; copy built-ins cmux.copyWorkingDirectory, cmux.copyProjectRoot, and cmux.copyScreen also work here and in actions), and commands (workspace definitions with split layouts).
Workflow
Inspect existing config.
test -f ~/.config/cmux/cmux.json && sed -n '1,220p' ~/.config/cmux/cmux.json test -f .cmux/cmux.json && sed -n '1,220p' .cmux/cmux.jsonPick global or project-local scope. Default to project-local for repo-specific commands, global for app preferences. Ask only when the choice changes behavior meaningfully.
Back up the target file when it already exists (applicable path only, no backup for a missing file).
stamp="$(date +%Y%m%d-%H%M%S)" test -f ~/.config/cmux/cmux.json && cp -p ~/.config/cmux/cmux.json ~/.config/cmux/cmux.json."$stamp".bak test -f .cmux/cmux.json && cp -p .cmux/cmux.json .cmux/cmux.json."$stamp".bakFor app settings and cmux-owned shortcuts, use the settings helper (
~/.codex/skills/...if the user installed withskills.sh).~/.agents/skills/cmux-settings/scripts/cmux-settings list-supported ~/.agents/skills/cmux-settings/scripts/cmux-settings set browser.openTerminalLinksInCmuxBrowser true ~/.agents/skills/cmux-settings/scripts/cmux-settings validateFor actions, UI wiring, workspace layouts, notification hooks, and Dock controls, edit the JSONC by
常见问题
它会覆盖我现有的设置吗?
不会。它的设计是保持你的配置完整,并进行基于架构的编辑。
终端字体和颜色在哪里设置?
通常在 Ghostty 配置文件中,而不是在 cmux 配置中。
它能从其他终端导入设置吗?
能。在应用之前,它可以预览从 iTerm2、Kitty 或 WezTerm 等应用导入的内容。
详情
作者的原始描述
Customize cmux for an end user, including terminal, browser, Markdown, diff, file preview, notes, HTML, and right-sidebar viewers. Use when changing cmux.json actions, custom commands, workspace layouts, plus-button behavior, surface tab bar buttons, Command Palette entries, Dock controls, sidebar and app settings, shortcuts, notifications, browser routing, examples-library presets, or Ghostty-backed terminal preferences.
repo: manaflow-ai/cmux
热度
- GitHub 星标
- 29k
- 排名
- #9798
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cmux-browser
29k让你的智能体在 cmux 中打开网站,并在浏览器面板中阅读、点击和提取信息,同时不会抢走你当前工作的焦点。
cmux-capture
29k让你的智能体为 cmux 窗口截取屏幕截图或短视频,以便你用真实的证据展示视觉变化或错误。
cmux-cloud-vm
29k让你的智能体在你的 cmux Cloud 机器上运行命令、启动编码智能体并展示工作区,面板关闭后工作仍会继续。
cmux-cua
29k让你的智能体通过 cmux Computer Use 引擎操作真实的 macOS 应用,读取辅助功能树,并代你点击、输入和滚动。