ctx-doctor
它能做什么
这个技能检查 context-mode 工具是否已正确设置并正常工作。适合遇到 context-mode 报错,或想确认安装状态是否健康的用户。
适用场景
- ✓当 context-mode 工具没有按预期工作,而原因不明的时候。
- ✓当有人想确认钩子、存储和插件注册设置是否正确的时候。
- ✓当用户想检查自己的 context-mode 版本是否为最新的时候。
技能链接
https://github.com/mksglu/context-mode/blob/main/skills/ctx-doctor/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请运行 context-mode 诊断,并告诉我是否有任何部分出了问题。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会调用诊断工具,它在服务器上运行所有检查,并返回一份普通的状态报告。结果会以通过、失败或警告的行显示。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Context 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.
常见问题
它检查什么?
它检查运行环境、钩子、搜索存储、插件注册,以及 npm 和市场版本。
如果诊断工具无法运行怎么办?
这个技能有备用方案,会运行同一检查的命令行版本。
它会修复问题吗?
它只报告问题。修复是单独的步骤,例如运行升级技能。
详情
作者的原始描述
Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor
repo: mksglu/context-mode
热度
- GitHub 星标
- 33k
- 排名
- #8511
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
context-mode
33k教你的智能体使用 context-mode 工具来读取、搜索和运行大量数据的任务,让大型输出不占用主对话空间。
context-mode
33k教你的智能体在沙箱中处理数据密集型的工作,只输出答案,让原始文件和网页不会淹没对话。
context-mode
33k教你的智能体在输出可能很大时(例如日志、JSON 或构建结果),使用 context-mode 工具代替普通的 shell 命令。
ctx-index
33k让你的智能体把本地项目或文件夹索引到可搜索的存储中,之后提问时可以直接找到相关片段,而无需重新阅读每个文件。