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 從公開儲存庫中收錄這些內容。

檢舉或申請下架