/rust-ai-lean:doctorfrom rust-ai-lean
Check that rust-ai-lean works end to end in this project (rust-analyzer LSP, CLI, hooks, toolchain) and offer each fix one at a time.
Ships in rust-ai-lean. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Verify the whole rust-ai-lean setup for the current project, then offer fixes. Reply to the user in the language they write in.
Run:
sh "${CLAUDE_SKILL_DIR}/scripts/doctor.sh" --plugin-root "${CLAUDE_SKILL_DIR}/../.." --project "$PWD"
If ${CLAUDE_SKILL_DIR} was not replaced with a real path, use the base directory shown when this skill was loaded instead. Each output line is STATUS<TAB>id<TAB>detail<TAB>fix; keep all rows.
plugin.official-lsp, plugin.enabled, info.context7). Run claude plugin list --json and inspect the array:
rust-analyzer-lsp@claude-plugins-official with "enabled": true: FAIL plugin.official-lsp, "a second rust-analyzer server is registered for .rs", fix claude plugin disable rust-analyzer-lsp@claude-plugins-official.rust-ai-lean@rust-ai-lean missing or "enabled": false: FAIL plugin.enabled, fix claude plugin enable rust-ai-lean@rust-ai-lean.context7: INFO info.context7, "for Rust crate APIs use rust-ai-lean crate-src, not Context7".claude cannot be run: WARN plugin.list with the error.lsp.tool). If the LSP tool is not in your tool list, load it with ToolSearch query select:LSP. Still unavailable: FAIL, "LSP tool unavailable in this session", fix start a new Claude Code session.lsp.document-symbol). Skip as INFO unless project.detected is OK. Pick a .rs file: src/lib.rs, else src/main.rs, else the first .rs path printed by rust-ai-lean outline . (or by find . -name '*.rs' -not -path '*/target/*' | head -n 1 if the CLI is missing). Call LSP documentSymbol on it at line 1, character 1.
toolchain.ra fix if that row is FAIL, otherwise empty.sleep is not allowed, run sleep 20 as a background command and wait for it). At most 3 attempts in total; still empty: WARN "no symbols after 3 attempts".lsp.hover). Only if step 3 is OK: call LSP hover on the name of a function from step 3. OK when a signature is returned, otherwise WARN with the response.lsp.processes). Run ps -eo rss,args | grep '[r]ust-analyzer'. INFO with the process count and total RSS in MB.hook.context). Skip as INFO unless project.detected is OK. OK if this conversation contains context starting with [rust-ai-lean]; otherwise WARN "SessionStart hint not seen", fix start a new Claude Code session.When every check above has a result, stop and go to Phase 3. Do not ask the user anything yet.
Reply 1 — the table, and nothing else. One row per check from Phases 1 and 2, columns Status, Check, Detail, ordered FAIL, WARN, OK, INFO. End that reply there: no questions, no fixes, no tool calls — even when only one check failed and its fix looks obvious.
Reply 2 onward — the fixes. Then, for each FAIL or WARN row with a non-empty fix, in table order, ask the user whether to apply exactly that fix (use AskUserQuestion when available, one question per fix). Run each approved fix and show its result. A fix of start a new Claude Code session is an instruction for the user, not a command.
Run Phase 1 again and report what changed. If any applied fix touched plugins, rustup components, or the CLI, tell the user to start a new Claude Code session and run /rust-ai-lean:doctor again: LSP servers and hooks load when a session starts.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub enoqv/rust-ai-lean --plugin rust-ai-lean