cmux-shared-behavior

Centralize behavior across cmux entrypoints with a single shared action path.

25.8k|2.2k|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/manaflow-ai/cmux --skill cmux-shared-behavior
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cmux-shared-behavior
Source: https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-shared-behavior
Command: npx skills add https://github.com/manaflow-ai/cmux --skill cmux-shared-behavior

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize, standardize, and reuse behavior logic across all cmux entrypoints to avoid duplicated code and inconsistent UI responses.

Core Features & Use Cases

  • Central mutation path for cross-surface features to ensure consistent state updates.
  • Optimistic updates with pending state tracking and explicit rollback on failure.
  • Cross-surface consistency for entrypoints including keyboard shortcuts, command palette, context menu, CLI, settings, and debug menu.

Quick Start

Adopt a single shared action path for a feature exposed through multiple cmux entrypoints.

Frequently Asked Questions about cmux-shared-behavior

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain consistent UI state across multiple command palette and keyboard shortcut entrypoints?

To maintain consistent UI state across multiple entrypoints, route all feature mutations through a single shared action path. This central mutation path ensures uniform state updates regardless of whether the user interacts via keyboard shortcuts, command palette, or context menus.

What is the best way to handle optimistic UI updates and rollback across different application surfaces?

Handling optimistic UI updates across different surfaces requires a centralized mutation path with pending state tracking. This approach enforces explicit rollback handling on failure, ensuring UI consistency whether the action originates from a CLI command or a settings UI.

How do I stop duplicating behavior logic for features exposed through both CLI commands and context menus?

To stop duplicating behavior logic for CLI commands and context menus, centralize the feature logic into one shared action/model path. This standardizes the behavior and reuses the same mutation logic across all cmux entrypoints.

Can I use a single mutation path for features exposed through socket commands, settings UI, and the debug menu?

Yes, you can use a single mutation path for features exposed through socket commands, settings UI, and the debug menu. A centralized action path coordinates cross-surface behavior to ensure consistent UI responses and state updates everywhere.

Why does my application state become inconsistent when triggering the same action from different entrypoints?

Application state becomes inconsistent when triggering actions from different entrypoints because of duplicated behavior logic. Adopting a single shared action path standardizes the mutation process, enforcing one update route with optimistic updates and explicit rollback handling.