Ctx Doctor

mksglu/context-mode/skills/ctx-doctor

by mksglua6c43765d26bNo license25K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor

Instructions onlyDevOps & Cloud
AI-generated overview

Runs context-mode diagnostics and displays a plain-text status report of runtime and plugin checks.

What it does
This skill instructs the agent to call the ctx_doctor MCP tool, which performs all checks server-side and returns a plain-text status report. It then displays the results verbatim, using the report's [OK], [FAIL] and [WARN] prefixes. If the MCP tool call fails, it falls back to running the plugin's bundled CLI doctor command with Node.
When to use it
Use it when you need to diagnose a context-mode installation, for example to verify runtimes, hooks, FTS5, plugin registration, or npm and marketplace versions. It is triggered by the /context-mode:ctx-doctor command.
Requirements
Requires the ctx_doctor MCP tool; the fallback path needs Node and the plugin's cli.bundle.mjs or build/cli.js file. It ships no scripts of its own.

Context Mode Doctor

Run diagnostics and display results directly in the conversation.

Instructions

  1. Call the ctx_doctor MCP tool directly. It runs all checks server-side and returns a plain-text status report.
  2. 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).
  3. 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:
    CLI="<PLUGIN_ROOT>/cli.bundle.mjs"; [ ! -f "$CLI" ] && CLI="<PLUGIN_ROOT>/build/cli.js"; node "$CLI" doctor
    Re-display results verbatim with the same [OK]/[FAIL]/[WARN] prefixes.

Source and attribution

Source:mksglu/context-modeinskills/ctx-doctorat commita6c4376

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal