用途
Doctor 用于对营销技能插件的运行环境做健康检查(health check)。当你需要确认“setup 是否正常”“一切是否可用”“帮我诊断一下”时使用它。它对营销技能所依赖的工具与连接执行诊断,并以通过/失败状态和可执行的修复说明清晰报告结果。
运行环境检测
首先判断当前运行环境:
- 如果 google_drive_search 工具可用 → Cowork
- 否则 → Claude Code
执行的检查
尽可能并行运行所有检查,然后给出单一的汇总。
1. Tiger Den MCP(必需)
这是首要检查。所有使用参考文档的技能都依赖 Tiger Den。
尝试调用 Tiger Den 专有工具(在两种运行环境中相同):
list_voice_profiles()
之所以选择 list_voice_profiles 而不是 search_content,是因为其他连接器(如 Tiger Docs)也会暴露 search_content 工具。list_voice_profiles 是 Tiger Den 独有的,因此不会产生误报。
- 通过:无错误返回语音配置列表。
- 失败:工具 list_voice_profiles 不可用、连接被拒绝或认证错误。
修复(Cowork):“Tiger Den 未连接。前往 Settings(齿轮图标)→ Connectors → 找到 Den.tigerdata.com → 点击 Connect 并登录。然后开启新的 Cowork 会话并再次运行 /doctor。”
修复(Claude Code):“Tiger Den 未连接。在单独的终端运行:claude mcp add -s user --transport http tiger_den https://den.tigerdata.com/api/mcp/mcp —— 然后重启 Claude Code。”
2. Google Drive(可选,仅 Cowork)
Google Drive 已不再是参考文档的必需项(现在由 Tiger Den 处理)。但某些技能(如 case-study-prep)仍使用 google_drive_fetch 读取用户提供的 Google Docs,因此在 Cowork 中该连接器仍然有用。
在 Cowork 中尝试:
google_drive_search(api_query: "name contains 'brand' and '1DUPUkDyG8bkQgoWWI4kvoLTyMk_sT1n2' in parents")
- 通过:报告“Google Drive — Connected(用于部分技能读取用户文档)”。
- 失败:报告“Google Drive — Not connected(可选——仅当你使用读取 Google Docs 的技能时才需要)”。
这是信息性提示,不是阻塞项。不要将其呈现为错误。
在 Claude Code 中完全跳过此检查。
3. Contributor 工具(可选,仅 Claude Code)
只有当用户计划编辑或新增技能时才需要 Contributor 工具。插件正常使用并不需要它们。缺失项应作为信息提示,而非错误。
在 Cowork 中完全跳过此检查——沙箱无法探测用户主机,且 /skill-contributor 已为 Cowork 贡献者处理了缺失工具的流程。
在 Claude Code 中通过 Bash 并行检查以下三项:
- which gh → GitHub CLI 是否安装?
- gh auth status → GitHub CLI 是否已认证?(仅当 which gh 成功时才运行)
- git config --global user.name 和 git config --global user.email → git 身份是否已设置?
以分组区块报告,标记为 Contributor tools(可选):
- 三项全部通过 → ✅ Contributor tools — ready(一行即可)。
- 任一项失败 → 逐项列出缺失内容并加 ℹ️ 前缀,最后以“→ 如果你计划贡献技能,运行 /contributor-setup 来配置这些。”结尾。
绝不要将缺失的 Contributor 工具呈现为插件问题——它们完全是可选的。
结果呈现
使用此格式:
Plugin Health Check
✅ Tiger Den — Connected ℹ️ Google Drive — Connected (optional) ✅ Contributor tools — ready
Google Drive 行仅出现在 Cowork 中。Contributor tools 行仅出现在 Claude Code 中。
存在问题时:
Plugin Health Check
❌ Tiger Den — Not connected ℹ️ Google Drive — Not connected (optional) ℹ️ Contributor tools — gh not installed, git identity not set → If you plan to contribute to skills, run /contributor-setup.
1 issue found — details below.
Contributor 工具问题不计入“发现的问题”总数——只有 Tiger Den 失败才是阻塞项。
对于每个失败的检查,直接在输出中包含修复说明。保持简洁——每条修复一两句话,附精确步骤。
如果 Tiger Den 通过,以“You're all set — all the skills in this plugin have what they need.”结尾。
如果 Tiger Den 失败,以“Run /setup for step-by-step help getting Tiger Den configured.”结尾。
语气
保持简短、诊断导向。这不是入门引导——用户想要的是快速状态报告,而不是教程。把手把手的引导留给 /setup。
限制
资料仅描述该技能自身的检查逻辑与输出格式,未提供其计费、价格、平台覆盖或性能数据。