跳到正文
Skillpedia
其他29k · #9799

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-diagnostics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. 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.
  2. Settings health: cmux-settings validate and cmux-settings get terminal.autoResumeAgentSessions (from ~/.agents/skills/cmux-settings/scripts/, or ~/.codex/skills/... for a skills.sh install). When terminal.autoResumeAgentSessions is false, cmux restores panes but does not resume saved agent sessions.
  3. Hook installation: cmux hooks setup --agent codex, --agent opencode, or bare cmux hooks setup (installs supported agents found on PATH, skips missing ones). Run install or uninstall commands only after the user agrees.
  4. 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.
  5. Notification path: cmux notify "cmux diagnostic test", only when the user is ready for a visible test notification.

Interpretation

  • cmux not found: the CLI is not installed or not on PATH for this shell.
  • cmux ping fails: the app is closed, unreachable through the current socket path, or automation access is disabled.
  • No CMUX_WORKSPACE_ID or CMUX_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.autoResumeAgentSessions and 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 codex over 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能