/doctor
Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.
> /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.mddescription: 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`.
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Repo: repowise-dev/repowise
Other commands on repowise.
- /coverage
Ingest or inspect test-coverage reports — LCOV, Cobertura/Clover, or coverage.py .coverage (builds the per-test map when contexts are present).
Open command - /dead-code
Report unreachable files, unused exports, and zombie packages, tiered by confidence.
Open command - /decision
Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.
Open command - /health
Show Repowise code-health — KPIs, lowest-scoring files, refactoring targets, trends, or per-file markers.
Open command - /impacted-tests
Print the tests whose coverage intersects a change's changed lines — for a commit, base..head range, or staged diff.
Open command - /init
Set up Repowise for this codebase. Installs if needed, asks about your preferences, and runs the indexing.
Open command

