@manaflow-ai/cmux-socket-policy

@manaflow-ai/cmux-socket-policy — AI coding skill

View in AI SkillSafe app
0 downloads
0 stars
0 demos
SKILL.md
namecmux-socket-policy
descriptionSocket command threading and focus policy for cmux CLI/socket work. Use when adding or changing socket commands, CLI commands, telemetry commands, focus/select/open/close/send-key behavior, or automation that could steal app focus.

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

  • Socket/CLI commands must not steal macOS app focus.
  • Do not activate the app or raise windows unless the command has explicit focus intent.
  • Only explicit focus-intent commands may mutate in-app focus/selection.
  • Explicit focus-intent commands include window.focus, workspace.select/next/previous/last, surface.focus, pane.focus/last, browser focus commands, and v1 focus equivalents.
  • All non-focus commands should preserve the current user focus context while still applying data/model changes.

Detailed reference

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@manaflow-ai/cmux-socket-policy/verified)](https://skillsafe.ai/skill/@manaflow-ai/cmux-socket-policy/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@manaflow-ai/cmux-socket-policy/installs)](https://skillsafe.ai/skill/@manaflow-ai/cmux-socket-policy/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@manaflow-ai/cmux-socket-policy/scan)](https://skillsafe.ai/skill/@manaflow-ai/cmux-socket-policy/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@manaflow-ai/cmux-socket-policy/eval)](https://skillsafe.ai/skill/@manaflow-ai/cmux-socket-policy/)