Ctx Doctor

mksglu/context-mode/skills/ctx-doctor

作者 mksglua6c43765d26b无许可证25K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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

仅含说明DevOps & Cloud
AI 生成的概览

运行 context-mode 诊断,并以纯文本状态报告显示运行时与插件检查结果。

功能
该技能指示代理直接调用 ctx_doctor MCP 工具,由服务端执行全部检查并返回纯文本状态报告。随后原样显示结果,沿用报告中的 [OK]、[FAIL] 和 [WARN] 前缀。若 MCP 工具调用失败,则回退为使用 Node 运行插件自带的 CLI doctor 命令。
适用场景
适用于需要诊断 context-mode 安装情况的场景,例如检查运行时、钩子、FTS5、插件注册以及 npm 与市场版本。它由 /context-mode:ctx-doctor 命令触发。
运行要求
需要 ctx_doctor MCP 工具;回退路径需要 Node 以及插件的 cli.bundle.mjs 或 build/cli.js 文件。该技能本身不附带脚本。

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.

来源与署名

来源:mksglu/context-mode位于skills/ctx-doctor提交a6c4376

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架