From cc-suite
Runs a full health check on cc-suite setup, explains issues, and auto-fixes them. Use at session start or after updating cc-suite.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-suite:diagnoseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a full cc-suite health check and offer to auto-fix every issue found. Skill counterpart to `/cc-suite:diagnose`.
Run a full cc-suite health check and offer to auto-fix every issue found. Skill counterpart to /cc-suite:diagnose.
/cc-suite:audit, /cc-suite:audit-fix, or any /cc-suite:claude-* skill behaves unexpectedlyRun the status script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/status.sh"
Stale nested symlinks (macOS ln -sf residue):
find -L .claude/skills/ .agents/skills/ -maxdepth 3 -name "cc-suite" -type d 2>/dev/null \
| grep -vE "^\.claude/skills/cc-suite$|^\.agents/skills/cc-suite$"
Any output is a stale nested symlink that duplicates skills in Codex.
Codex CLI binary:
which codex 2>/dev/null || echo "not-found"
Cache freshness — extract the version from the active symlink target and compare to ${CLAUDE_PLUGIN_ROOT}/../../.claude-plugin/plugin.json (the installed plugin version). If they differ, the skills symlink points to an old cache.
readlink .claude/skills/cc-suite 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo "missing"
Broken symlinks:
[ -L .claude/skills/cc-suite ] && [ ! -d .claude/skills/cc-suite ] && echo "broken:claude-skills" || true
[ -L .agents/skills ] && [ ! -d .agents/skills ] && echo "broken:agents-skills" || true
Build an issues list from all · (missing) and ! (warn) lines in the status output, plus any deep check failures.
Exclude .codex/hooks.json from issues if the project has no hooks section in .claude/settings.json — that missing entry is expected.
Display the diagnosis:
cc-suite diagnose — {cwd}
Healthy: N items ✓
Issues found: N
# Item Status Diagnosis
1 .agents/skills missing Codex cannot see any skills
2 .mcp.json → codex-cli missing Claude cannot invoke Codex as MCP tool
3 plugin_hooks not set Plugin-bundled hooks are inert in Codex
...
If no issues: report healthy and stop.
Ask:
Fix all auto-fixable issues now? (yes / show commands only / cancel)
For each fixable issue, run the corresponding script:
| Issue | Fix |
|---|---|
.agents/skills missing or wrong | bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_skills.sh" |
.claude/skills/cc-suite missing or wrong | bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_skills.sh" |
.codex/hooks.json missing | python3 "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_hooks.py" |
.mcp.json → codex-cli missing | bash "${CLAUDE_PLUGIN_ROOT}/scripts/mcp_codex.sh" |
.codex/config.toml → claude-code missing | bash "${CLAUDE_PLUGIN_ROOT}/scripts/mcp_claude.sh" |
| MCP parity gaps | bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_mcp.sh" |
stale nested symlink at {path} | rm "{path}" && bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_skills.sh" |
| cache stale | bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_skills.sh" (repoints to current cache) |
plugin_hooks not set | Write plugin_hooks = true under [features] in ~/.codex/config.toml |
Items that require manual action (flag, do not attempt to fix):
project trust not trusted — run codex in this directory and accept the trust promptAGENTS.md missing — run /cc-suite:init in a Claude Code session (requires Claude)After all auto-fixes, run bash "${CLAUDE_PLUGIN_ROOT}/scripts/status.sh" again.
Report: N issues fixed, N remaining (with manual steps for those that remain).
If issues persist after auto-fix, close with: "Issues remain. Next step: run /cc-suite:repair for a full non-interactive re-run of all setup scripts. If that also fails, run /cc-suite:init for a complete interactive re-initialization."
npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin cc-suiteNon-interactively re-runs all cc-suite bridge and registration scripts to repair a broken plugin layer. Use after `/cc-suite:diagnose` finds unfixable issues or after manual edits corrupt the setup.
Runs comprehensive diagnostics on Claude Code environment: plugins, settings, hooks, MCP servers. Identifies issues, supports --fix and --verbose.
Audits .claude/ structure, naming, hooks, and plugin versions. Runs hygiene and sync checks, outputs health report with fix commands.