/skill-concierge:doctor [--fix]from skill-concierge
Diagnose and repair a broken or degraded skill-concierge install. Use this skill when the skill-search MCP won't connect, search_skills returns nothing or stale results, skills have gone dark, the MCP seems to run old code after a plugin update, or anything about skill-concierge misbehaves after setup or a plugin update. Runs scripts/doctor.py to check the deployment layer (engine venv, engine freshness, the local index owner, MCP wiring, settings overrides, ledger) and delegates retrieval health to the engine; with --fix it applies safe repairs (start the index owner, reindex, re-apply overrides).
Ships in skill-concierge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A deployment-layer health check with safe auto-fixes. It diagnoses what setup.sh
provisions and delegates the retrieval diagnostic (embedder, index, dark/stale skills) to
the engine's own skill-search --health, so the two never drift.
Diagnose (read-only) from the plugin root:
python3 "$CLAUDE_PLUGIN_ROOT/scripts/doctor.py"
It prints a check matrix and an overall status: OK | WARN | FAIL (exit 1 on FAIL).
Read the matrix. Each row is [✓|!|✗] <check> <detail>:
| Check | What it verifies |
|---|---|
| Python 3.10-3.12 | a usable interpreter (only when the venv is missing) |
| Engine venv | the stable venv + skill-search bin exist |
| Engine freshness | the venv's COPIED engine matches the deployed vendored source — catches a stale MCP serving old code after /plugin update (the venv is built once by setup.sh and never refreshed by an update); WARN → rerun setup.sh |
| MCP wiring | .mcp.json is valid + bin/skill-search-mcp is executable |
| Index owner | the local index owner (ADR-0070; replaces the Qdrant container and the Docker embed shim) answers its Qdrant-compatible REST port + /health, its code_version, and its SQLite file's integrity/point counts |
| Retrieval health | engine --health: embedder reachable, no dark/stale skills, index fresh |
| Multi-vector layer | trigger points present (MAX-pool retrieval, ADR-0012); WARNs if SKILL_MULTIVECTOR is on but none exist |
| Corpus health | per-skill calibration ok/weak/no-signal counts from eval/thresholds.json |
| Retrieval flywheel | is the utterance-generation LLM configured + reachable, per-skill utterance coverage (which skills lack utterances), and the last flywheel run from the global manifest (~/.claude/skill-concierge/flywheel-manifest.json). Read-only, fail-open (never FAIL — the flywheel is optional). ADR-0027 |
| Trigger hygiene | junk already stored in the utterance layer — empty / one-char / repeated phrases a degraded model wrote. Coverage only measures presence, so such a skill still counts as "covered" and the generator then skips it forever; this row is what catches it. WARN + auto-fix (purge). Read-only, fail-open |
| Settings overrides | skillOverrides applied to ~/.claude/settings.json; now detects drift from the installed catalogue (apply-overrides.py --check) → WARN + auto-fix (ADR-0025) |
| Ledger dir | the telemetry log directory is writable |
| Duplicate MCP | warns if a leftover user-scope skill-search MCP also exists |
| MCP reachable | warns when the skill-search MCP is installed but not connected here — disabled for the project via /mcp, pending approval, or failed. Every other row answers is the index healthy; this one answers can the agent reach it, and the two come apart: a project-disabled MCP leaves the engine fully green while search_skills / get_skill do not exist for that session. The enforcer's per-turn offer is unaffected (it queries Qdrant over REST), so WARN not FAIL. Read-only, fail-open, no auto-fix — re-enabling is a user action |
Auto-fix the safe failures:
python3 "$CLAUDE_PLUGIN_ROOT/scripts/doctor.py" --fix
--fix applies only fast, safe repairs, then re-checks: start a stopped index owner
(also stopping + disabling a revived skill-search-qdrant/skill-concierge-embed-shim
container if an old harness copy brought Docker back onto the owner's ports),
--reindex a stale/dark index, re-apply the settings overrides, purge
junk utterance layers. It never builds or refreshes the keep-off map — that is consent-only
(ADR-0077); the Keep-off row only reports.
Heads-up: the overrides fix writes
~/.claude/settings.json(backed up first) viascripts/apply-overrides.py. The user invoking doctor is consent for that; mention it before running--fixso the change isn't a surprise.The
Trigger hygienefix DELETES data — it drops each junk utterance layer from the canonical corpus~/.claude/skill-concierge/triggers.json(backed up totriggers.json.bak-junk-<ts>first) and clears that skill's generation-cache key, then reindexes. It does not regenerate: doctor never calls the LLM. A purged skill falls back to description+body retrieval (no worse than junk phrases pointing the wrong way) until the next flywheel run rewrites it — which it now will, because the cleared cache key stops the generator skipping it as "covered".
Handle what --fix can't. doctor never auto-builds the venv or the container
(slow, heavyweight). If Engine venv is FAIL or Engine freshness is WARN, run the
skill-concierge:setup skill (or ./setup.sh) — that rebuilds/refreshes the stable
venv from the deployed source. For a duplicate MCP, run the printed claude mcp remove
command. After any fix, restart Claude Code if the MCP wiring or engine changed.
Doctor is a precondition, not the proof. A green doctor shows files and config exist. It does not show that a harness runs the concierge: OpenCode's plugin failed to load, and Codex skipped the enforcer hook, while doctor stayed green (ADR-0090). To prove a harness works, run the live smoke:
python3 "$CLAUDE_PLUGIN_ROOT/scripts/smoke.py"
It runs one real headless turn per harness and passes a harness only when its temp ledger holds an offer
row and a search row. It spends one model call per harness. A missing CLI is FAIL; ZCode has no command
line and shows UNPROVEN. A harness in --advisory (default $SMOKE_ADVISORY) still reports but does not block. Do not claim a harness works on doctor
alone.
/mcp shows skill-search not connected → Engine venv / MCP wiring. Fix: run setup.
search behaves like an OLD version after a plugin update → Engine freshness. The MCP venv
is stale (copied engine, not refreshed by /plugin update). Fix: rerun setup.sh, then restart.
search returns nothing or stale → Index owner / Retrieval health. Fix: --fix (reindex)
— note the SessionStart auto_reindex hook now self-heals index staleness in the background.
Keep-off row only reports; --fix never touches the map (ADR-0077). No map, or a map
without "approved_by_user": true, hides nothing and is OK (an unapproved map's names are
reported as ignored). WARN means the file is invalid JSON or has no keep_off list. To get
suppression, run python3 scripts/build_keep_off.py to see a proposal and --apply only after
Thinh says yes. A skill you take inline that gets dropped → add it to keep-on (exempt).
skills you expect aren't offered / a new skill leaks its full description → Settings overrides
(now flags override drift). Fix: --fix (re-apply) — or nothing: the SessionStart
auto_overrides hook self-heals the budget on drift (ADR-0025).
Doctor is green but a harness shows no menu or no search → run scripts/smoke.py. A Codex row that fails
with no offer row means Codex skipped a changed hook: open Codex and trust the skill-concierge hooks again
(docs/caveats.md §27).
Full landmine reference: docs/caveats.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/blocklistManage skill-concierge's DISABLE list — skills the user ordered off, regardless of origin (personal, plugin, external catalog, or command-files surfaced as skills). Use this skill when the user wants to view, disable, block, or re-enable a skill, says "disable X", "block X", "stop using/offering X", "X is turned off", "re-enable/unblock X", "which skills are disabled", or asks why a Skill invocation was denied by the blocklist guard. Runs scripts/blocklist.py (list / add / remove); the blocklist lives under the canonical durable home (~/.claude/skill-concierge/blocklist.json) and is enforced by the enforcer (no offers/hints/routes), the engine (no search hits, get_skill refuses), and the PreToolUse guard (invocation denied) — ADR-0046./catalogsManage external skill-catalog roots — third-party skill collections indexed for retrieval WITHOUT being installed (ADR-0031). Use this skill when the user wants to register, list, or remove an external skills directory ("add my cloned skills repo to search", "index this skill collection without installing it", "which external catalogs are configured"), promote an external skill into ~/.claude/skills, or asks why a search hit is marked "[external]". Runs scripts/catalogs.py (list / add / remove / promote), which edits the operator-owned ~/.claude/skill-concierge/catalog-roots.json; the index follows at the next reindex./consultConsult the best skill or chain of skills for a task — a deliberated, expert-style curation over the full catalogue (installed AND external), built on deep reading of skill bodies and capsule dossiers (ADR-0049). Trigger when the user asks to consult which skills fit a task, wants the best combo or chain of skills planned as a step BEFORE work starts, asks "which skills should I use for X" or "plan a skill strategy for this task", or wants the agent to think deeply and curate from the whole shelf instead of taking the quick per-turn offer. Runs a wide sieve (consult_candidates over the engine index), delegates body-level fit analysis to an analyst subagent, then composes a ranked RUN/⚠/ALSO verdict with promote-ready external picks. For the quick single-skill find mid-task, use skill-search instead./flywheelSee the retrieval-flywheel status and trigger an incremental utterance-generation run. Use this skill when the user asks about the flywheel, "how many skills have utterances / triggers", "flywheel coverage", "which skills are missing utterances", "is the LLM endpoint configured/reachable", or wants to "generate triggers", "run the flywheel", "refresh utterances", or "index the new skills' utterances". The flywheel is the utterance layer (ADR-0026) that teaches the retriever how users actually ask for a skill (EN+VN), lifting recall. Runs scripts/flywheel.py — status mode (default, read-only) prints endpoint config + reachability and per-skill utterance coverage (N/M covered, and the missing skills by name); --generate runs the incremental generator (only new/changed skills hit the LLM) then reindexes so the new points go live, printing before/after coverage. Generation fails loud if the LLM endpoint is unreachable./keep-onManage skill-concierge's always-ON allowlist — the skills kept fully described in every turn instead of name-only. Use this skill when the user wants to view, add, or remove always-on skills, asks "which skills are always on", "add X to always-on", "remove X from the keep-on list", "manage the always-on skills", or wants to curate what stays injected vs retrieved on demand. Runs scripts/keep-on.py (list / add / remove), which edits the always-on allowlist under the canonical durable home (~/.claude/skill-concierge/keep-on.json) and re-applies the settings.json overrides./reputationManage the owner's skill ranking — the ❤️ house-favourite and ⭐ trusted badges skill-concierge shows next to skills on its per-turn menu, plus the automatic 🔥 proven badge. Use this skill when the user wants to view, add, remove, or move a ranked skill, says "heart X", "star X", "make X a favourite", "I trust the pstack skills", "unrank X", "which skills are my favourites", "why does X have a badge", asks about the badges on the menu, or wants tier suggestions / a maintenance pass ("suggest favourites", "which skills should be starred", "clean up my ranking"). Runs scripts/reputation.py (list / add / remove / why / suggest); the ranking lives at ~/.claude/skill-concierge/reputation.json and is read live by the per-turn hook — ADR-0083.npx claudepluginhub thinhkhuat/skill-concierge --plugin skill-concierge