About ctx-doctor
ctx-doctor is a skill for running Context Mode diagnostics and presenting the status report in the conversation. It uses the `ctx_doctor` MCP tool, with a CLI fallback if that call fails.
Key features
- 01Run server-side diagnostics
- 02Show plain-text status results
- 03Use CLI fallback if MCP fails
Use cases
- 01Check Context Mode status
- 02Display diagnostic results across clients
MCP support
Calls the `ctx_doctor` MCP tool to run checks server-side; the skill documents a CLI fallback if the tool call fails.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mksglu/ context-mode --skill ctx-doctorAfter installing, type/ctx-doctorin Claude Code to confirm it loaded.
Details
From the project READMEContext Mode Doctor
Run diagnostics and display results directly in the conversation.
Instructions
- Call the
ctx_doctorMCP tool directly. It runs all checks server-side and returns a plain-text status report. - Display the results verbatim — they are already formatted with plain-text status prefixes:
[OK]PASS,[FAIL]FAIL,[WARN]WARN. Renderer-safe (no markdown task-list syntax) for cross-client compatibility (e.g., Z.ai GLM). - Fallback (only if MCP tool call fails): Derive the plugin root from this skill's base directory (go up 2 levels — remove
/skills/ctx-doctor), then run with Bash:
Re-display results verbatim with the sameCLI="<PLUGIN_ROOT>/cli.bundle.mjs"; [ ! -f "$CLI" ] && CLI="<PLUGIN_ROOT>/build/cli.js"; node "$CLI" doctor[OK]/[FAIL]/[WARN]prefixes.
Comments
Markdown supported