npx skills add ...
npx skills add manaflow-ai/cmux --skill cmux-keyboard-shortcuts
Guide and apply cmux keyboard shortcut customization. Use when the user asks to customize, rebind, unbind, reset, audit, or create shortcut templates for cmux, including tmux-style, Vim-style, terminal-first, browser-heavy, iTerm/Terminal-like, or agent-triage layouts.
npx skills add manaflow-ai/cmux --skill cmux-keyboard-shortcuts
Turn a user's workflow preferences into cmux shortcut bindings in ~/.config/cmux/cmux.json: guide, propose compact templates, apply the selected changes, and confirm the config parses with recognized keys.
Every new cmux-owned keyboard shortcut must be added to Sources/KeyboardShortcutSettings.swift, visible and editable in Settings > Keyboard Shortcuts, supported as shortcuts.bindings.<actionId> in ~/.config/cmux/cmux.json, and documented in web/app/[locale]/(landing)/docs/keyboard-shortcuts/page.tsx and the configuration docs. All four, not a subset.
skills/cmux-settings/scripts/cmux-settings for every read/write. It reads JSONC, writes atomically, and validates JSON plus recognized settings keys.skills/cmux-settings/references/shortcut-actions.md. Current defaults: web/data/cmux-shortcuts.ts or Sources/KeyboardShortcutSettings.swift.shortcuts.bindings.<actionId>."cmd+b".["ctrl+b","c"]. The first stroke needs a modifier unless the key is Space. The second stroke can be bare.null for explicit unbinds. "", "none", "clear", "unbound", and "disabled" are accepted aliases, but null is the clearest JSON value and matches the templates below.selectSurfaceByNumber and selectWorkspaceByNumber must use a digit from 1 to 9. cmd+1 means the full cmd+1 through cmd+9 family.showHideAllWindows is the only system-wide shortcut. It cannot be a chord, requires modifiers, and may be rejected by macOS if reserved.globalSearch is application-scoped and only fires while cmux is active.showHideAllWindows also requires Settings > Global Hotkey > Enable System-Wide Hotkey. The binding can validate in cmux.json while the feature is disabled, so warn the user to enable that setting before reporting the shortcut as usable.unset deletes a cmux.json override. It does not clear shortcut changes saved through the Settings UI/UserDefaults. If the user asks for true built-in defaults, tell them to use Settings > Keyboard Shortcuts > Reset Default Shortcuts after clearing file-managed overrides, then verify in the app. For showHideAllWindows, use Settings > Global Hotkey to restore the shortcut to ctrl+opt+cmd+. because Keyboard Shortcuts > Reset Default Shortcuts intentionally skips the global hotkey.cmux.json live reloads. Never tell the user to restart cmux.Classify the request:
unset rule above).Inspect existing config:
Snapshot prior values for every action you will change. A path that was absent reverts with unset; a path with an existing custom value reverts with set <same-json-value>.
Apply only the chosen action paths, then "$CMUX_SETTINGS" validate.
Read back each changed action: "$CMUX_SETTINGS" get shortcuts.bindings.newSurface.
Finish with the template name, changed actions, and exact revert commands from the snapshot.
Apply action by action, never by overwriting the whole shortcuts.bindings object.
One terminal-style namespace; ctrl+b starts a cmux chord instead of reaching the shell.
These actions already match cmux built-in defaults, so clear file overrides rather than writing default values.
Prefix-free pane movement with no arrow keys.
Unread handling on one key family. toggleUnread stays on cmd+opt+u so this composes with Vim Pane Navigation without colliding with cmd+opt+j.
Workspaces and surfaces on distinct number and bracket lanes.
Return embedded-browser behavior to common macOS browser shortcuts. unset keeps future cmux defaults applying.
Fewer app-level shortcuts. Prefer unbinding only the actions the user names; this is a starting proposal.
~/.config/cmux/settings.json unless the user explicitly asks; it is legacy fallback config.shortcuts.bindings unless the user wants a full replacement.shortcut-actions.md.cmux-settings validate. It validates JSON and supported keys, not shortcut syntax, macOS reservation, or focus-context conflicts.cmd+[ or cmd+] to application-scoped actions, warn that they collide with browser Back/Forward unless the browser actions are also changed or unbound.unset clears file-managed overrides for one action. Do not call that a built-in default reset unless Settings UI/UserDefaults values were also reset.