Skip to content
Development
Skill

/ctx-doctor

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

From plugin
context-mode
20k11 skills6 hooks1 MCP
Install
$ npx -y skills add mksglu/claude-context-mode --skill ctx-doctor --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/ctx-doctor

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

ctx-doctor.SKILL.md
name: ctx-doctor
description: |
  Run context-mode diagnostics. Checks runtimes, hooks, FTS5,
  plugin registration, npm and marketplace versions.
  Trigger: /context-mode:ctx-doctor
user-invocable: true

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.

Ships withcontext-mode

The other half of the context problem. Used across teams at

Get the whole plugin
Stats
19,757
Stars
1,416
Forks
Active
Maintenance
TypeScript
Language
8h ago
Last commit
5mo ago
Created

Repo: mksglu/claude-context-mode

Other skills on context-mode.