Dev & Engineering

cmux Debugging Skill

Gives AI agents the project-specific debugging conventions for cmux — a Ghostty-based macOS terminal — so probes, profiling, and UI changes never break typing latency or live agent sessions.

56/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 28k
Last updated
1d ago
License
NOASSERTION
macosswiftuidebuggingterminal-emulator
+4ghosttyprofilingruntime-pitfallsdebug-logging

What does this skill do, and when should you use it?

This is one of 25 skills bundled in the manaflow-ai/cmux monorepo, located at skills/cmux-debugging/SKILL.md. It teaches an agent how to add debug event probes to cmux's macOS app, follow the unified DEBUG-build log, use the Debug menu, and respect hard-won runtime rules such as no allocations in forceRefresh and preserving Equatable view optimizations. It also encodes a strict safety rule: never launch cmux under xctrace or Instruments, because the running app holds the user's live agent sessions — an incident on 2026-09-26 took five of them down. It is written for contributors working on cmux itself.

  • Explains the unified debug log: tail -f /tmp/cmux-debug.log or the tagged log path stored by reload.sh
  • Specifies where to place cmuxDebugLog probes, the #if DEBUG wrapping requirement, and stable event prefixes (tab.select, pane.focus, etc.)
  • Enforces safe profiling: attach to the existing pid (xctrace record --attach / sample), never launch mode
  • Lists runtime pitfalls: UTExportedTypeDeclarations for drag/drop UTTypes, hot hitTest paths, LazyVStack snapshot boundaries, .equatable() optimization
  • Documents how to add a Debug-window panel (NSWindowController subclass with @AppStorage-backed SwiftUI view)
  • Links two deep references: references/debug-event-log.md and references/runtime-pitfalls.md
Good fit
  • A cmux contributor adding debug probes to key/mouse/focus event code who needs the correct prefix naming
  • A developer about to touch terminal rendering, TabItemView, or TerminalSurface who must check typing-latency-sensitive-path rules first
  • Someone diagnosing an OS-version-specific UI repro who must test on the reporter's macOS before dismissing it
  • A contributor adding a new layout/color tuning panel to the Debug menu following the existing NSWindowController pattern
  • Anyone adding custom drag-and-drop UTTypes who must declare them in Info.plist's UTExportedTypeDeclarations
Not a fit
  • Not for developers building their own terminal apps — every rule binds to cmux's specific source paths and internal conventions
  • Not for ordinary cmux users who only want to use the terminal; the DEBUG-build debugging machinery is irrelevant to them
  • macOS only (cmux itself supports no other platform), so it cannot help on other OSes

How do you install this skill?

Before you use it
  • The skill applies only to developing/debugging the cmux repository itself on macOS; it is not a general-purpose skill for cmux users. Gate invocation on the 'cmux' trigger term.
  • No version or changelog: rules may drift from the code; verify cited source paths still exist before relying on them.
  • Debug-log and profiling guidance touches live user sessions (the doc records an incident losing five agent sessions); always confirm attach mode, never launch/kill/relaunch.
  • Repository license metadata is NOASSERTION; the actual LICENSE is GPL-3.0-or-later with BUSL-1.1 directories (web/ etc.), so redistribution requires license review.
  • No Chinese documentation; this is a static review — no commands were executed, so reliability rests on source consistency, not runtime verification.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
Install first
  • macOS
  • cmux source tree
  • xctrace/sample profilers

The source does not document an install command for this skill. It ships inside the cmux monorepo at skills/cmux-debugging/; obtaining the repo is the only route given. The README only covers installing the cmux app itself (DMG or Homebrew), not skills installation.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/manaflow-ai/cmux.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/cmux-debugging" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • I'm adding debug probes to cmux tab drag-and-drop — place the cmuxDebugLog calls in the right spots with the standard event prefixes
  • cmux stutters while typing; check my changes to TerminalSurface.forceRefresh and TabItemView against the runtime pitfalls list
  • Add a new Debug-menu window for tuning sidebar colors in cmux
  • A user-reported bug doesn't reproduce on my macOS — what does the skill say I should do?

The skill triggers via its description: use it when adding debug probes, diagnosing UI/runtime issues, touching terminal rendering, tab/sidebar list views, drag/drop UTTypes, or using the Debug menu. The flow is: instrument probes per convention into the unified DEBUG log, follow with tail, and profile by attaching to a running process instead of relaunching. Core commands:

tail -f "$(cat /tmp/cmux-last-debug-log-path 2>/dev/null || echo /tmp/cmux-debug.log)"
xctrace record --attach <pid>
sample <pid>

Consult references/debug-event-log.md and references/runtime-pitfalls.md for depth.

What are this skill's strengths and limitations?

Pros
  • Encodes real, painful lessons from the cmux project, including an incident where a suspected profiler relaunch killed five live agent sessions
  • Provides a stable event-prefix naming scheme and ready-to-paste log-tracking commands
  • Two deep reference files cover probe naming and runtime pitfalls for quick pre-change review
Limitations
  • Tightly bound to cmux's source layout and internal paths (Sources/ContentView.swift, the CMUXDebugLog package); near-zero value outside this repo
  • License field is NOASSERTION on the metadata (app core is GPL-3.0-or-later, server code is BUSL-1.1) — verify commercial boundaries yourself
  • No automation scripts accompany the skill; compliance with hot-path rules depends entirely on the model reading and obeying the prose

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
cmux Debugging Skill this page 56 · Use with care ★ 28k 1d ago NOASSERTION
cmux Ghostty Submodule Workflow Skill 54 · Use with care ★ 28k 1d ago NOASSERTION
cmux Custom Sidebar 50 · Use with care ★ 28k 1d ago NOASSERTION
cmux Workspace Skill 64 · Recommended ★ 28k 1d ago NOASSERTION
cmux Customization 55 · Use with care ★ 28k 1d ago NOASSERTION

The source compares cmux with tmux (tmux is a multiplexer inside any terminal; cmux is a native macOS GUI app), but this skill itself is an internal cmux debugging convention with no directly comparable alternative skill documented.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
56/ 100 5-point scale 2.8 / 5
1Trust18 / 25 · 3.6/5

Content is advisory: no network access, no credential handling, no external side effects. The only externally consequential instruction (profiling) explicitly forbids killing/relaunching the user's running cmux, citing a real incident, and restricts to attach mode — least-privilege oriented. The tail command reads local /tmp files only. Deductions: unverified publisher (not itself penalized per rules), one-sided claims about reload.sh behavior and /tmp path writes without independent confirmation, and no discussion of sensitive data that debug logs may contain.

2Reliability10 / 20 · 2.5/5

High internal self-consistency: SKILL.md and both references align on paths, event prefixes, filenames; concrete implementation locations, ring buffer/dump mechanism, and explained failure modes (unguarded #if DEBUG breaking non-Debug builds). Deductions: static review only — the tail command and script behaviors were not executed; behavior when the /tmp state files are absent is not specified; no test evidence for the skill itself, so the static cap of 10 applies.

3Adaptability9 / 15 · 3.0/5

Precise trigger semantics: clear use cases (debug probes, UI/runtime diagnosis, rendering, UTTypes, Debug menu) and disambiguation of 'debug menu'; clear boundaries (macOS only, DEBUG builds only, cmux repo contributors). Deductions: no Chinese-language support; audience limited to this repository's developers; no explicit non-fit/environment declarations inside the skill.

4Convention9 / 15 · 3.0/5

Good layered structure: concise SKILL.md with progressive disclosure into references, stable naming, specific issue citations. Deductions: no skill version, changelog, or maintenance statement; repository license metadata is NOASSERTION (actual LICENSE is GPL-3.0-or-later plus BUSL-1.1 directories, but the skill does not state its own licensing); install/dependency prerequisites are assumed rather than documented.

5Effectiveness6 / 15 · 2.0/5

If the scenario matches (debugging inside the cmux repo), the skill delivers hard-won pitfall rules (hitTest hot paths, equatable boundaries, OS-version differences) with clear marginal value. Deductions: value is confined to one repository; static review cannot verify outputs are directly usable; near-zero utility for non-maintainers limits cost/benefit.

6Verifiability4 / 10 · 2.0/5

Many auditable claims: implementation file paths, event prefixes, Info.plist UTType names, issue links #2586/#4529/#14427, all cross-checkable against repository sources. Deductions: nothing executed or independently reproduced; the cited issue contents are not confirmable from the supplied evidence; claims and inferences are not strictly separated; static cap of 5 applies.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Oct 10, 2026 Reviewed revision 3dd1fe78859f Review evidence[1][2][3][4][5][6][7][8][9][10][11][12][13]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Do I need the cmux app installed to use this skill?
The knowledge only pays off when developing cmux itself: you need a DEBUG build, the source tree, and reload.sh. Ordinary cmux terminal users have no use for this debugging machinery.
Why can't I profile with Instruments' launch mode?
The skill explicitly forbids xctrace --launch on any cmux bundle and forbids quitting, killing, or relaunching the user's running cmux (com.cmuxterm.app) — it holds live agent sessions; a suspected profiler relaunch on 2026-09-26 took five down. Always attach to the existing pid.
Do probe logs ship in production code?
No. Most probes belong to a dogfood debug loop and are removed before merge; every call site must be wrapped in #if DEBUG / #endif.
Does this skill cost anything?
No. cmux is free and open source (GPL-3.0-or-later for the app core), and the skill ships in the same repo.

More skills from this repository

All from manaflow-ai/cmux

Dev & Engineering

cmux Ghostty Submodule Workflow Skill

Standardizes Ghostty submodule commits, GhosttyKit.xcframework rebuilds, and parent pointer updates for cmux contributors, preventing dangling submodule pointers that break CI and checkouts.

★ 28k FS 54 Use with care 1d ago
Dev & Engineering

cmux Custom Sidebar

Turn a plain-language request into a hot-reloading custom cmux sidebar — no Xcode, no build step, no signing.

★ 28k FS 50 Use with care 1d ago
Dev & Engineering

cmux Workspace Skill

Lets an AI coding agent work safely inside the cmux workspace that invoked it, without disturbing the workspace or window the user is actually looking at.

★ 28k FS 64 Recommended 1d ago
Dev & Engineering

cmux Customization

A skill for safely customizing the cmux terminal: edit cmux., Dock config and Ghostty preferences to tailor actions, layouts, shortcuts and notifications without breaking existing config.

★ 28k FS 55 Use with care 1d ago
Dev & Engineering

cmux Core Control

Deterministically control cmux terminal topology — windows, workspaces, panes, surfaces, focus, and attention cues — via the cmux CLI, built for AI coding agent automation.

★ 28k FS 47 Use with care 1d ago
Dev & Engineering

cmux Localization Rules & Audit Skill

Enforces localization rules and a verifiable audit workflow for every cmux user-facing string change, so no hardcoded English text ever lands.

★ 28k FS 56 Use with care 1d ago
Dev & Engineering

cmux Keyboard Shortcuts

Turns your key preferences into working cmux shortcut bindings, with templates, snapshots, and rollback instead of blind JSON edits.

★ 28k FS 58 Recommended 1d ago
Dev & Engineering

cmux Settings Management Skill (cmux-settings)

Safely view, edit, and roll back cmux's cmux. configuration with hot reload — changes apply on save, no app restart.

★ 28k FS 58 Recommended 1d ago
Automation & Ops

cmux Cloud VM Skill

Lets an AI agent operate cmux Cloud machines through the cmux CLI: run durable remote commands and coding agents on persistent terminals, then present verified results to the user.

★ 28k FS 56 Use with care 1d ago
Dev & Engineering

cmux-capture: Screenshot and Record cmux Windows

Capture screenshots or recordings of a cmux window from the CLI to supply real evidence for PRs, bug reports, and visual verification — with no screen recording permission required.

★ 28k FS 55 Use with care 1d ago
Productivity & Collaboration

cmux Markdown Viewer

Opens .md files in a formatted panel beside your cmux terminal with live reload, keeping plans, docs, and notes visible as they change.

★ 28k FS 52 Use with care 1d ago
Dev & Engineering

cmux Diagnostics

Collects support-safe, read-only diagnostics for cmux so you can pinpoint failing hooks, notifications, session restore, and CLI control without leaking secrets.

★ 28k FS 51 Use with care 1d ago
Dev & Engineering

cmux Shared Behavior Rules

Codifies one shared implementation and verification path for cmux behaviors exposed through multiple entrypoints, so fixes never land on one surface and leave others stale.

★ 28k FS 48 Use with care 1d ago
Dev & Engineering

cmux Architecture Skill

Load cmux's package architecture, layering, dependency inversion, and Swift 6 concurrency rules before adding or heavily rewriting Swift files, packages, coordinators, services, or public APIs in the cmux repository.

★ 28k FS 63 Recommended 1d ago
Dev & Engineering

cmux-browser: Browser Automation Skill for cmux

Open sites, inspect browser surfaces, wait for page state, and extract data through the cmux CLI without stealing focus — built for parallel AI coding agent workflows.

★ 28k FS 60 Recommended 1d ago
Dev & Engineering

cmux Testing Skill

Pick the right scoped local/CI verification for the cmux repo, add behavior-grounded tests, and keep Swift test targets correctly wired in the Xcode project.

★ 28k FS 60 Recommended 1d ago
Dev & Engineering

cmux Socket Policy Skill

Gives AI coding agents the threading and focus rules for cmux socket/CLI work, so telemetry stays off the main thread and automation never steals your app focus.

★ 28k FS 58 Recommended 1d ago
Dev & Engineering

cmux Dev Workflow Skill

A standardized contributor workflow for cmux: tagged native builds, Xcode project normalization, and sidebar extensions — without disturbing a running cmux instance.

★ 28k FS 53 Use with care 1d ago
Dev & Engineering

cmux Release Skill

A release-workflow skill for cmux maintainers covering version bumps, changelog assembly, pretag guard, tagging, and release asset verification.

★ 28k FS 53 Use with care 1d ago
Automation & Ops

cmux Computer Use Skill

Lets AI coding agents inside cmux drive real macOS apps through a local computer-use engine, strictly on explicit user request.

★ 28k FS 50 Use with care 1d ago

Related skills