360 Secure SkillHub
360 安全技能中心

cmux-shared-behavior

该 Skill 为 cmux 中通过快捷键、命令面板、菜单、CLI、设置或测试等多入口暴露的行为提供实现规范,要求共用同一 action/model 与 mutation path,统一处理乐观更新、回滚和漏测修复覆盖;不包含具体代码、接口或测试用例。

manaflow-ai
热度 58.07
最近更新 2026-10-19 07:10:18
分类:开发依赖:纯提示词应用场景:代码审查 / 调试排错 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add manaflow-ai/cmux/cmux-shared-behavior
Metadata
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.