📜
QualitySwift

Cmux Socket Policy

by manaflow-ai

Cmux Socket Policy is a Quality skill for Claude Code, published by manaflow-ai in cmux.

26K stars2.2K forkson manaflow-ai/cmuxAdded 2026/08/14Repository updated 2026/08/14
ampclaude-codeclicodexcoding-agentsgeminighosttymacosmultiplexermultitaskingopencodeorganizationparallel-agentsprogrammabilityterminalterminal-multiplexertmuxworkspace-manager
Install in seconds
Install Cmux Socket Policy
Copy Cmux Socket Policy into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-socket-policy ~/.claude/skills/cmux-socket-policy

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/manaflow-ai/cmux.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/cmux-socket-policy/SKILL.md in manaflow-ai/cmux
Installs to
~/.claude/skills/cmux-socket-policy
Collection
One of 20 skills cataloged from this repository
Category
Quality1354 skills

What Cmux Socket Policy does

Cmux Socket Policy defines threading and focus rules for cmux socket and CLI commands to keep telemetry off the main thread and prevent commands from stealing macOS app focus.

Cmux Socket Policy is cataloged under Quality on DirSkills. Cmux Socket Policy comes from a repository tagged amp, claude-code, cli, codex and coding-agents.

Documentation

README

cmux Socket Policy

Threading policy

  • Do not use DispatchQueue.main.sync for high-frequency socket telemetry commands such as report_*, ports_kick, status/progress updates, or log metadata updates.
  • For telemetry hot paths, parse and validate arguments off-main.
  • Dedupe and coalesce off-main first.
  • Schedule minimal UI/model mutation with DispatchQueue.main.async only when needed.
  • Commands that directly manipulate AppKit/Ghostty UI state are allowed to run on the main actor.
  • If adding a new socket command, default to off-main handling and require an explicit reason in code comments when main-thread execution is necessary.

Focus policy

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Cmux Socket Policy

  • What else does manaflow-ai publish alongside Cmux Socket Policy?

    Cmux Socket Policy is one of 20 skills that DirSkills catalogs from manaflow-ai/cmux, the repository it ships in. Its siblings there include CMUX Architecture, CMUX Billing and CMUX Shared Behavior. Each one is a separate skill with its own page in this directory, installs the same way Cmux Socket Policy does, and is maintained by manaflow-ai in that same repository. The rest of the collection is listed on the manaflow-ai/cmux page.

  • How does Cmux Socket Policy compare to other Quality skills?

    Cmux Socket Policy ranks #112 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Cmux Socket Policy against them. Open each page to compare what they document and how they install.

More from manaflow-ai/cmux

Cmux Socket Policy is one of 20 skills cataloged on DirSkills from manaflow-ai/cmux.

See all 20 skills
🏗️
2w ago

CMUX Architecture

CMUX Architecture defines the cmux package structure, layering model, dependency inversion, and Swift 6 concurrency rules. Use it before adding or meaningfully rewriting Swift files, packages, coordinators, services, repositories, or public package APIs.
Quality
26K2.2K
💳
2w ago

CMUX Billing

CMUX Billing is a runbook for editing and debugging cmux billing code, covering Stripe checkout, pricing, subscriptions, webhooks, and Pro entitlement.
DevOps
26K2.2K
🧩
2w ago

CMUX Shared Behavior

CMUX Shared Behavior enforces a single shared action and mutation path across all entrypoints (shortcuts, command palette, context menu, CLI, settings, debug menu) with consistent optimistic updates and rollback; use it when adding entrypoints or when tests missed a bug.
Quality
26K2.2K
🐞
2w ago

CMux Debugging

CMux Debugging instruments debug events, provides a Debug menu, and avoids runtime pitfalls in the cmux terminal multiplexer. Use it when adding debug probes, diagnosing UI/runtime issues, or touching terminal rendering and list views.
Quality
26K2.2K
🚀
2w ago

CMux Release

CMux Release manages the cmux release workflow, including version bumping, changelog updates, pretag guard, release tags, and asset expectations. Use it when preparing or troubleshooting a cmux release.
DevOps
26K2.2K
🖥️
2w ago

Cmux

Cmux controls the topology and routing of a multi-pane terminal layout, including windows, workspaces, panes, surfaces, focus, moves, reorder, identify, and trigger flash. Use it when automation needs deterministic placement and navigation in a cmux environment.
Automation
26K2.2K