doctor
Diagnoses OrchestKit and project health: manifests, hooks, skills, agents, MCP servers, CC version and permissions, with severity and remedies. Use to run…
от yonatangross★ 312 звёзд на GitHub
Установить doctor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
OrchestKit Health Diagnostics
Host-neutral workflow. Invoke by skill name (doctor). Claude Code slash routing, YAML hook loaders, and .claude/chain live in references/claude-code.md.
Argument Resolution
FLAGS = "$ARGUMENTS" # Full argument string, e.g., "--verbose" or "--json"
FLAG = "$ARGUMENTS[0]" # First token: -v, --verbose, --json, --category=X
# $ARGUMENTS[0], $ARGUMENTS[1] for indexed access (CC 2.1.59)
STEP 0: Choose Scope (AskUserQuestion — M118 #1464)
A full doctor run takes ~20s. Most invocations only need one slice. Ask the user up-front so voice-flow shortcuts ("just the MCPs") map cleanly:
# Skip the prompt when an explicit scope arg or env override is present:
# doctor cc → skip, use cc-only
# doctor mcp → skip, use mcp-only
# doctor plugin → skip, use plugin-only
# ORK_DOCTOR_SCOPE=all (or any of the above) → skip, use the env value
#
# Otherwise, ask:
AskUserQuestion(questions=[{
"question": "What should doctor check?",
"header": "Scope",
"options": [
{"label": "Everything (default)", "description": "Full system health — ~20s; runs all 15 categories"},
{"label": "CC version & features only", "description": "Categories 10 + 13 + 14; ~3s — for 'is my CC up to date?'"},
{"label": "MCP servers only", "description": "Category 12 (incl. pinning sub-check); ~5s — for 'are MCPs working?'"},
{"label": "Plugin health only", "description": "Categories 0-3 + 5 (skills, agents, hooks, build); ~8s — for 'after npm run build'"}
]
}])
Skip the prompt entirely when the scope is unambiguous from the invocation. The fast scopes (3-8s) are 3-7× faster than the full run — voice users say "just the MCPs" and get a 5s answer.
Overview
The doctor command performs comprehensive health checks on your OrchestKit installation. It auto-detects installed plugins and validates 16 categories:
- Installed Plugins - Detects ork plugin
- Skills Validation - Frontmatter, references, token budget (dynamic count)
- Agents Validation - Frontmatter, tool refs, skill refs (dynamic count)
- Hook Health - Registration, bundles, async patterns
- Permission Rules - Detects unreachable rules
- Schema Compliance - Validates JSON files against schemas
- Coordination System - Checks lock health and registry integrity
- Context Budget - Monitors token usage against budget
- Memory System - Graph memory health
- Claude Code Version - Validates CC >= the
supported_floorinshared/cc-support.json(read it; it is the single source). Everything the old "recommends 2.1.154+" note gated (xhigheffort,/ultrareview, stream-jsonplugin_errors) is floor-guaranteed now, so there is nothing left to recommend - External Dependencies - Checks optional tool availability (agent-browser), plus one line per peer skill installed from another marketplace:
typesafe@typesafe-aiinstalled version against the marketplace's, viascripts/check-peer-skill.py(missing marketplace and missing plugin are separate verdicts, the vendor's update commands are the fix text; #4233) - MCP Status - Active vs disabled vs misconfigured, API key presence for paid MCPs. CC 2.1.110: detects duplicate definitions across config scopes. Sub-check warns when HIGH-tier servers resolve to
@latestin.mcp.json(closes #1462) - Plugin Validate - Runs
claude plugin validatefor official CC frontmatter + hooks.json validation (CC >= 2.1.77) - Effort/Model Compatibility - Warns only when
xhigheffort is configured AND the active model is provably unable to run it. Silent otherwise, because the fallback itself is silent - Sandbox Posture - CC Bash-sandbox on/off across all four settings scopes (incl.
~/.claude/settings.json, where real configs usually live), with a/sandboxnudge; sub-check 15b queries the macOS unified log for recent sandbox deny events (fail-closed: a denied log query reports UNOBSERVABLE, never zero) - Operator Settings Posture - Detects security controls that a plugin bundle cannot carry (credential-read deny rules, the
sandboxblock,CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS) and are therefore missing unless the operator wrote them into their own settings
When to Use
- After installing or updating OrchestKit
- When hooks aren't firing as expected
- Before deploying to a team environment
- When debugging coordination issues
- After running
npm run build
Quick Start
doctor # Standard health check
doctor -v # Verbose output
doctor --json # Machine-readable for CI
CLI Options
| Flag | Description |
|---|---|
-v, --verbose |
Detailed output per check |
--json |
JSON output for CI integration |
--category=X |
Run only specific category |
Health Check Categories
Detailed check procedures: Load
Read("rules/diagnostic-checks.md")for bash commands and validation logic
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Grep - 04
Glob - 05
AskUserQuestion - 06
Write
Вложенные файлы
- references/agent-memory-dir.md
- references/agents-validation.md
- references/claude-code.md
- references/health-check-outputs.md
- references/hook-validation.md
- references/mcp-pinning-check.md
- references/memory-health.md
- references/permission-rules.md
- references/remediation-guide.md
- references/report-format.md
- references/sandbox-posture.md
- references/schema-validation.md
- references/settings-posture.md
- references/skill-preapproval.md
- references/skills-validation.md
- references/version-compatibility.md
- rules/_sections.md
- rules/diagnostic-checks.md
- rules/mcp-status-checks.md
- scripts/check-agent-browser-version.sh
- scripts/check-agent-memory.sh
- scripts/check-mcp-pinning.sh
- scripts/check-operator-permissions.cjs
- scripts/check-operator-permissions.sh
- scripts/check-peer-skill.py
- scripts/check-plugin-health.sh
- scripts/check-sandbox-violations.sh
- test-cases.json
FAQ
Что делает скилл doctor?
Diagnoses OrchestKit and project health: manifests, hooks, skills, agents, MCP servers, CC version and permissions, with severity and remedies. Use to run doctor checks, diagnose issues or check project health before a release.
Как установить скилл doctor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doctor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…