ask
Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
Show Repowise code-health — KPIs, lowest-scoring files, refactoring targets, trends, or per-file markers.
> /plugin marketplace add repowise-dev/repowise > /plugin install repowise@repowise
How it fires
How this command gets triggered: by you, by Claude, or both.
/healthContext preview
What this command does when you run it.
Show Repowise code-health — KPIs, lowest-scoring files, refactoring targets, trends, or per-file markers.
description: Show Repowise code-health — KPIs, lowest-scoring files, refactoring targets, trends, or per-file markers. allowed-tools: Bash, Read
Report the code-health layer: a deterministic 1–10 score per file from markers (complexity, deep nesting, brain methods, cohesion, duplication, untested hotspots, and more). No LLM — works even in index-only mode.
1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Decide the mode from `$ARGUMENTS` (see below), run the command, and present a readable summary — score(s), the top marker findings, and what they mean. Don't dump the raw table verbatim.
Default (no args) — dashboard KPIs + lowest-scoring files:
repowise health
Handle `$ARGUMENTS`:
higher than production code, so narrowing lowers every figure without a defect having been found; the default stays `all`)
out the git-derived half: churn, co-change, ownership, prior fixes)
Other flags: `--format json` for machine-readable output, `-v, --verbose` for pipeline debug logs, `--repo <alias>` / `--no-workspace` in workspace mode.
Excellent 8.5+, Good 7.0–8.5, Fair 5.5–7.0, Needs work 4.0–5.5, At risk below 4.0. Use those words rather than inventing your own.
A decline is not automatically a regression — if the trend reports `history_drag`, say so: the code shape did not get worse, and no edit to those files settles it.
cleanup — cross-reference with `/repowise:risk` or `get_risk`.
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
Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).
Ingest or inspect test-coverage reports — LCOV, Cobertura/Clover, or coverage.py .coverage (builds the per-test map when contexts are present).
Report unreachable files, unused exports, and zombie packages, tiered by confidence.
Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.
Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.