Agent Skills › manaflow-ai/cmux › cmux-shared-behavior

cmux-shared-behavior

GitHub

规范多入口行为的统一实现与变更路径,确保键盘、菜单等入口共用逻辑。要求乐观更新保持单一状态路径并处理回滚。强调在测试遗漏缺陷时,需基于确切复现路径补充行为级覆盖,保证修复完整性。

skills/cmux-shared-behavior/SKILL.md manaflow-ai/cmux

Trigger Scenarios

多个界面入口暴露相同行为 需要实现乐观更新机制 测试遗漏了特定Bug

Install

npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -g -y
More Options

Use without installing

npx skills use manaflow-ai/cmux@cmux-shared-behavior

指定 Agent (Claude Code)

npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -a claude-code -g -y

安装 repo 全部 skill

npx skills add manaflow-ai/cmux --all -g -y

预览 repo 内 skill

npx skills add manaflow-ai/cmux --list

SKILL.md

Frontmatter
{
    "name": "cmux-shared-behavior",
    "description": "Shared behavior and mutation-path rules for cmux. Use when a behavior is exposed through multiple entrypoints such as keyboard shortcuts, command palette, context menu, CLI, settings, debug menu, optimistic UI, or tests that previously missed a bug."
}

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.

Version History

  • cef69a7 Current 2026-08-20 08:16

Same Skill Collection

skills/cmux-architecture/SKILL.md
skills/cmux-backend/SKILL.md
skills/cmux-billing/SKILL.md
skills/cmux-browser/SKILL.md
skills/cmux-cloud-vm/SKILL.md
skills/cmux-cua/SKILL.md
skills/cmux-custom-sidebar/SKILL.md
skills/cmux-customization/SKILL.md
skills/cmux-debugging/SKILL.md
skills/cmux-dev-workflow/SKILL.md
skills/cmux-diagnostics/SKILL.md
skills/cmux-ghostty/SKILL.md
skills/cmux-keyboard-shortcuts/SKILL.md
skills/cmux-localization/SKILL.md
skills/cmux-markdown/SKILL.md
skills/cmux-release/SKILL.md
skills/cmux-review/SKILL.md
skills/cmux-settings/SKILL.md
skills/cmux-socket-policy/SKILL.md
skills/cmux-test-bisect/SKILL.md
skills/cmux-testing/SKILL.md
skills/cmux-workspace/SKILL.md
skills/cmux/SKILL.md

Metadata

Files
0
Version
a616a2b
Hash
cf6ebcb3
Indexed
2026-08-20 08:16

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-05 11:25
浙ICP备14020137号-1