跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 cmux-customization

Cmux Customization

为终端用户自定义cmux,包括终端,浏览器,Markdown,diff,文件预览,注释,HTML和右侧栏查看器. 当更改cmux.json动作时使用自定义命令,工作空间布局,加按钮行为,表面标签条按钮,命令调色板条目,Dock控件,侧边栏和app设置,快捷键,通知,浏览器路由,实例-图书馆预设,或Ghostty后置的终端偏好.

6953 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

为终端用户定制cmux,包括终端、浏览器、Markdown、diff、文件预览、注释、HTML和右侧栏查看器

何时用

更改 cmux.json 动作, 自定义命令, 工作空间布局, 外加按钮行为, 表面标签栏按钮, 命令调色板条目, Dock 控件, 侧边栏和应用程序设置, 快捷键, 通知, 浏览器路径路由, 例- 图书馆预设, 或 Ghostty 支持的终端偏好

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:cmux Customization、Choose the right surface、Workflow、Example: Command Palette action、Validation、Rules。 其中含规范建议的小节:分步指令、输入输出示例。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/viewer-types.md、scripts/cmux-settings、references/examples.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

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.

cmux CustomizationChoose the right surfaceWorkflowExample: Command Palette actionValidationRules

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
cmux-customization
description
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.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 3
  • references/viewer-types.md
  • scripts/cmux-settings
  • references/examples.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「cmux-customization」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-b6195349c947cdf1-Cmux-%E8%87%AA%E5%AE%9A%E4%B9%89.html
请存为 .cursor/skills/cmux-customization/SKILL.md 或 .claude/skills/cmux-customization/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/manaflow-ai/cmux 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/manaflow-ai/cmux' --list

npx skills add 'https://github.com/manaflow-ai/cmux' --skill 'cmux-customization'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: cmux-customization description: "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." --- # 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](references/viewer-types.md). 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 --dry-run` to preview, then `cmux import `; 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](../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), `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 1. Inspect existing config. ```bash 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.json ``` 2. Pick 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. 3. Back up the target file when it already exists (applicable path only, no backup for a missing file). ```bash 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".bak ``` 4. For app settings and cmux-owned shortcuts, use the settings helper (`~/.codex/skills/...` if the user installed with `skills.sh`). ```bash ~/.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 validate ``` 5. For actions, UI wiring, workspace layouts, notification hooks, and Dock controls, edit the JSONC by hand and preserve unrelated sections (`vault`, `rightSidebar`, `commands`, `actions`, `ui`, `notifications`). 6. `cmux reload-config`. 7. Verify the configured entrypoint exists: read back the shortcut binding, or confirm the action ID and where it should appear. For viewer changes, verify the exact path or command state from the matrix. If the requested viewer or knob is absent from the schema, explain that it is not supported yet instead of writing an unknown key. The `templates.` surface proposed for future notes/Markdown/diff customization is not available until the schema and runtime implement it. ## Example: Command Palette action Appears in Cmd+Shift+P unless `palette` is false. ```json { "actions": { "codex-new-tab": { "type": "agent", "agent": "codex", "title": "Codex", "subtitle": "Start Codex in this workspace", "target": "newTabInCurrentPane", "palette": true } } } ``` Before choosing a preset, template, starter config, or known workflow pattern, run `cmux docs workflows --json`. Its catalog describes the shipped examples, what each creates, task-fit cues, requirements, adaptation points, and the saved-layout lifecycle. After choosing an example, open [references/examples.md](references/examples.md) for that example's concrete JSON recipe. ## Validation - App settings: `cmux-settings validate`. - Keep valid JSONC, no duplicate keys. - Parse `.cmux/dock.json` or `~/.config/cmux/dock.json` with a JSON parser before reporting completion. - `cmux reload-config` when the CLI is available. - Confirm the exact user-facing result: action title, shortcut, plus-button behavior, context-menu entry, or tab bar placement. ## Rules - Do not overwrite a whole top-level config section unless you own the full section. - Do not store secrets in actions, commands, or prompts. Use environment variables or the user's secret manager. - Do not use sleeps or timing workarounds in generated commands. - Do not add a cmux setting for behavior Ghostty already owns. - Keep labels short enough for menus, buttons, and the Command Palette.

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…