cmux-diagnostics
它能做什么
这项技能对 cmux 终端应用运行只读的健康检查,并用通俗的语言解释结果。适合使用 cmux、并在某些功能失效时需要帮助的人。
适用场景
- ✓当 cmux 的钩子、通知或会话恢复没有按预期工作的时候。
- ✓当 cmux 中的浏览器自动化、套接字访问或命令行控制失败的时候。
- ✓当你想为 cmux 做健康检查,或生成一份可发给能提供帮助的人的支持安全摘要的时候。
技能链接
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-diagnostics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 cmux 通知停止工作了。你能检查一下问题出在哪里,并给我一份可以分享的报告吗?”
每周 5 个新技能,1 分钟读完。
工作原理
它运行一个内置脚本,读取 cmux 的状态信息,跳过密钥和私有文件,然后解释哪些部分正常、哪些需要修复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cmux Diagnostics
Collect and interpret support-safe cmux diagnostics for end users. Default to read-only checks. Never dump hook config files, session stores, prompt logs, tokens, or environment secrets.
Quick report
Run the bundled read-only script first, from whichever install path exists:
skills/cmux-diagnostics/scripts/cmux-diagnostics # cmux checkout
~/.agents/skills/cmux-diagnostics/scripts/cmux-diagnostics # installed skill
~/.codex/skills/cmux-diagnostics/scripts/cmux-diagnostics # Codex-only skills.sh install
Add --include-context only when workspace names, cwd paths, and current cmux identifiers are relevant to the reported issue.
What to check
- CLI and socket health:
command -v cmux,cmux ping,cmux capabilities --json. If socket commands fail, check whether the agent is running inside a cmux terminal and whether socket automation is enabled. - Settings health:
cmux-settings validateandcmux-settings get terminal.autoResumeAgentSessions(from~/.agents/skills/cmux-settings/scripts/, or~/.codex/skills/...for askills.shinstall). Whenterminal.autoResumeAgentSessionsis false, cmux restores panes but does not resume saved agent sessions. - Hook installation:
cmux hooks setup --agent codex,--agent opencode, or barecmux hooks setup(installs supported agents found on PATH, skips missing ones). Run install or uninstall commands only after the user agrees. - Session restore evidence:
ls -lh ~/.cmuxterm/*-hook-sessions.json 2>/dev/null. Missing stores usually mean the agent has not run inside cmux since hooks were installed, hooks are disabled, or the integration does not support resume capture. - Notification path:
cmux notify "cmux diagnostic test", only when the user is ready for a visible test notification.
Interpretation
cmuxnot found: the CLI is not installed or not on PATH for this shell.cmux pingfails: the app is closed, unreachable through the current socket path, or automation access is disabled.- No
CMUX_WORKSPACE_IDorCMUX_SURFACE_ID: the command is running outside a cmux terminal. Some hooks intentionally no-op there. - Hook config but no session store: run one supported agent inside cmux after installing hooks, then re-check.
- Session store but no agents on restore: check
terminal.autoResumeAgentSessionsand whether the saved executable still exists on PATH. - Settings validation fails: fix the config first. Invalid config makes later symptoms misleading.
Rules
- Stay read-only until the user asks to fix something.
- Never print raw hook files, session JSON, prompt logs, shell history, tokens, or API keys. Summarize file presence, size, modified time, and marker presence instead.
- Prefer a narrow fix such as
cmux hooks setup --agent codexover reinstalling every integration. - After a fix, rerun the diagnostic script and report the changed lines.
常见问题
这项技能会显示我的密码或私有文件吗?
不会。这项技能避免输出钩子配置文件、会话存储、提示日志、令牌和环境密钥。
检查会改变我电脑上的任何东西吗?
默认只进行只读检查,因此它只查看当前状态,不会更改设置。
使用它需要懂终端命令吗?
不需要,这项技能会替你运行检查,并解释结果的含义。
详情
作者的原始描述
Run end-user cmux diagnostics. Use when cmux hooks, notifications, session restore, settings, browser automation, socket access, CLI control, or agent resume behavior is not working, or when the user asks for a cmux health check, doctor report, or support-safe debug summary.
repo: manaflow-ai/cmux
热度
- GitHub 星标
- 29k
- 排名
- #9799
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cmux-browser
29k让你的智能体在 cmux 中打开网站,并在浏览器面板中阅读、点击和提取信息,同时不会抢走你当前工作的焦点。
cmux-capture
29k让你的智能体为 cmux 窗口截取屏幕截图或短视频,以便你用真实的证据展示视觉变化或错误。
cmux-cloud-vm
29k让你的智能体在你的 cmux Cloud 机器上运行命令、启动编码智能体并展示工作区,面板关闭后工作仍会继续。
cmux-cua
29k让你的智能体通过 cmux Computer Use 引擎操作真实的 macOS 应用,读取辅助功能树,并代你点击、输入和滚动。