manaflow-ai avatar

Cmux Shared Behavior

Prevents the classic bug where you fix something in the UI but forget the keyboard shortcut still runs the old broken code. This enforces a single mutation path when behavior surfaces through multiple entrypoints like command palette, context menus, CLI commands, settings, and debug tools. Also covers the optimistic update pattern: one mutation path, track pending state with request IDs, reconcile against the authoritative result, and roll back explicitly on failure. The missed-bug coverage rule is smart: if tests didn't catch something, you add behavior-level tests around the exact repro before calling it done. Basically architectural discipline for cmux to avoid duplicated logic across surfaces.

skills.sh installs
4.8K
GitHub stars
28.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add manaflow-ai/cmux --skill cmux-shared-behavior --agent claude-code

Installs into .claude/skills of the current project.

Files

cmux Shared Behavior

Shared entrypoints

When a behavior is exposed through multiple surfaces (keyboard shortcut, command palette, context menu, CLI/socket command, settings UI, debug menu), implement one shared action/model path and verify every entrypoint that should invoke it. Do not patch one surface and leave the others with duplicated logic.

Optimistic updates

Keep one mutation path. Record pending state with a request id or a previous snapshot, reconcile from the authoritative result, and handle failure with an explicit rollback or error state. Never let each entrypoint maintain its own optimistic copy.

Missed-bug coverage

When a user says tests missed a bug, add or adjust behavior-level coverage around the exact repro path before claiming the fix is complete.

Sponsors

Details

Repository
github.com/manaflow-ai/cmux
Categories
Debugging, CLI & Terminal
First seen
Jul 14, 2026

More from manaflow-ai/cmux

All 21

Recommended

More Debugging
1thananon avatarpost-mortemthananon/9arm-skillsWrite the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Engineer-audience, code identifiers 4.8Kskills.sh installs
2grafana avatarapp-observabilitygrafana/skillsGet RED metrics + service maps + frontend RUM + AI/LLM monitoring out of Grafana Cloud — Application Observability (`traces_spanmetrics_*` from OTel traces, p504.7Kskills.sh installs
3uni-stack avataruniwinduni-stack/uniwindUniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. C4.6Kskills.sh installs
4dotnet avatardotnet-trace-collectdotnet/skillsGuide developers through capturing diagnostic artifacts to diagnose production .NET performance issues. Use when the user needs help choosing diagnostic tools, 4.6Kskills.sh installs
5wordpress avatarwp-interactivity-apiwordpress/agent-skillsUse when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule 4.5Kskills.sh installs
6tencentcloudbase avatarminiprogram-developmenttencentcloudbase/skillsWeChat Mini Program development skill for building, debugging, previewing, testing, publishing, and optimizing mini program projects. This skill should be used 4.4Kskills.sh installs