No slash command · from Repowise
Analyzes code health and tech debt using Repowise's deterministic scoring (McCabe complexity, class cohesion, clone detection, untested hotspots). Dashboard mode ranks what to fix first; targeted mode explains per-file findings.
Ships in Repowise. 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.
Repowise scores every file 1–10 from deterministic markers — McCabe complexity, deep nesting, brain methods, class cohesion (LCOM4), god classes, clone detection, untested hotspots, function-level churn, ownership dispersion, and more. Zero LLM calls; pure local analysis. The weights are calibrated against a real defect corpus, so a low score means more likely to harbour bugs, not just bigger.
get_health() (no targets): fix_first, the ranked list of
what to fix first, then repo-level KPIs and the lowest-scoring files. Start here for "how
healthy is this codebase?" or "what should we clean up?".get_health(targets=["src/x.py", "src/y.py"]): per-file score
and the specific marker findings driving it. Use before/after a refactor,
or to explain why a file is flagged.include flagsget_health(targets=[...], include=[...]):
"biomarkers" — always return the findings list (what's wrong, where)."refactoring" — deterministic, ranked refactoring suggestions (by impact/effort)."coverage" — surface coverage data when it's been ingested."trend" — recent health snapshots + declining / predicted-decline signal.include adds blocks; only=[...] subtracts them.
fix_first; open
an item with get_health(fix_id=...) for its steps and the tests to run,
and present the plan, not just the scores.weighted_deficit, not score — the score floors at 1.0.unresolved before calling a file clean: a target listed there matched
nothing, and not_indexed means run repowise update.get_risk(targets=[...]); a file
that is both low-health and a churn hotspot deserves the most care.repowise coverage add cov.lcov
(LCOV / Cobertura / Clover; a coverage.py .coverage also builds the
per-test map), then repowise health --recompute to fold it into the scores.repowise health — KPIs + lowest-scoring filesrepowise health --refactoring-targets — ranked by impact / effortrepowise health --trend — snapshots + declining alertsrepowise coverage add <file> — ingest coverage, light up untested-hotspotIf get_health reports no repository, suggest /repowise:init. Code health is
computed even with a template-rendered wiki (no LLM needed), so it should be available
whenever the repo is indexed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub repowise-dev/repowise --plugin repowise7 skills in this plugin
/dead-code-cleanupFind and safely remove unused code.Other plugins' skills for the same job