Agent Skillsmanaflow-ai/cmux › cmux-diagnostics

cmux-diagnostics

GitHub

用于收集和分析cmux环境诊断信息,检查CLI、Socket、设置及钩子健康状态。提供只读检查结果和安全摘要,帮助用户排查连接、会话恢复及通知等问题,确保系统正常运行。

skills/cmux-diagnostics/SKILL.md manaflow-ai/cmux

Trigger Scenarios

用户请求cmux健康检查或医生报告 cmux钩子、通知或会话恢复功能异常 需要获取支持安全的调试摘要

Install

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

Use without installing

npx skills use manaflow-ai/cmux@cmux-diagnostics

指定 Agent (Claude Code)

npx skills add manaflow-ai/cmux --skill cmux-diagnostics -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-diagnostics",
    "description": "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."
}

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.

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-custom-sidebar/SKILL.md
skills/cmux-customization/SKILL.md
skills/cmux-debugging/SKILL.md
skills/cmux-dev-workflow/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-settings/SKILL.md
skills/cmux-shared-behavior/SKILL.md
skills/cmux-socket-policy/SKILL.md
skills/cmux-testing/SKILL.md
skills/cmux-workspace/SKILL.md
skills/cmux/SKILL.md

Metadata

Files
0
Version
cef69a7
Hash
364aa124
Indexed
2026-08-20 08:16

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 09:28
浙ICP备14020137号-1 $방문자$