Skip to content
Development
Command

/doctor

Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.

From plugin
repowise
5.1k12 skills12 commands1 MCP
Install
> /plugin marketplace add repowise-dev/repowise
> /plugin install repowise@repowise

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/doctor

Context preview

What this command does when you run it.

Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.

Command definition

doctor.md
description: Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.
allowed-tools: Bash, Read

Repowise Doctor

Check that Repowise is healthy: the install, configured provider / API keys, and whether the index and stores are consistent with the repo.

Steps

1. Run `repowise doctor`. 2. Summarize what passed and what didn't. For each problem, give the concrete fix (set an env var, run `/repowise:update`, re-run `/repowise:init`, etc.).

Flags from `$ARGUMENTS`

  • "repair" / "fix" → `repowise doctor --repair` (attempts to fix detected

mismatches). Tell the user what it changed.

  • "workspace" → `repowise doctor --workspace` (check every repo in the workspace);

`--no-workspace` to force single-repo.

  • a path → `repowise doctor <path>`

Common findings

  • **repowise not installed / not on PATH** → suggest `pip install repowise` (or

`python -m pip install repowise` on Windows), then `/repowise:init`.

  • **No API key for the configured provider** → show the exact `export` for the

provider in `.repowise/config.yaml`. This is not fatal for `init`, which falls back to the template wiki. Only an explicitly named `--provider` errors out.

  • **Index drift (HEAD ahead of last sync)** → run `/repowise:update`.
  • **Missing embeddings / store drift** → `/repowise:reindex`.
Ships withrepowise

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

Get the whole plugin