Repowise scores files using deterministic code and repository markers, with guidance for dashboard, file-specific, trend, and refactoring-plan results. The instructions explain how to interpret scores, check coverage and risk, and present findings without dumping raw output. They also describe what to suggest when no repository is found.
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
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.
repowise health: 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?".repowise health --file src/x.py: one file's score and the
specific marker findings driving it, to explain why a file is flagged.
repowise health --score src/x.py --score src/y.py scores files as they are
on disk now; add --against <rev> for a before/after read around a refactor.--refactoring-targets — deterministic, ranked refactoring suggestions (by impact/effort).--plan <ID> — one stored refactoring plan: its preconditions, steps and checks.--trend — recent health snapshots + declining signal.--scope production — leave tests, tooling and generated files out.--format json — machine output.repowise health --refactoring-targets ranks the queue and
repowise health --plan <ID> prints one plan's steps. Present the plan, not
just the scores.weighted_deficit, not score — the score floors at 1.0.repowise update.repowise risk --target <path>;
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.If repowise health reports no repository, suggest /prompts: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.
repowise-dev/repowise
e68395b
repowiserepowise healthrepowise updaterepowise riskrepowise coveragerepowise coverage addIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.