The guide combines whole-change risk scoring with per-file directives, health findings, test selection, and architectural context to identify areas that merit review. It explains how to gather diffs, interpret evidence, recommend tests, and report when Repowise context is unavailable.
80%
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
Fix and improve this skill with Tessl
tessl review fix ./plugins/codex/skills/change-review/SKILL.mdWhen a diff is on the table, Repowise turns "what files changed" into "what does this change put at risk" — fusing git history (churn, ownership, co-change) with graph topology (dependents, impact surface), test gaps, security signals, and the architectural decisions that govern the touched code.
Two complementary risk signals, use both:
repowise risk <revspec> scores the whole change as one unit (a commit
or a base..head range). No LLM, no network. It reports risk_percentile
(this change ranked against sampled recent commits by diff size and spread,
not a bug predictor) and the drivers behind it. Omit the revspec to score
uncommitted work. repowise health check <revspec> says what the change
actually made worse: the health findings it wrote, and the ones it worsened.
Together they are the pre-merge gate: "how risky is this change overall?"repowise risk --target <path> --changed-file <path> works per file
and returns the directive block, the specific things to check inside the
diff.repowise risk main..HEAD # HEAD, a commit SHA, or base..head
repowise health check main...HEAD # the findings the change introducedRead the health check first: a finding the change wrote fails it, one it made
worse warns. Then risk_percentile and the top drivers: a high score from large
diffusion (many dirs/subsystems) or low author familiarity tells you where to
look hardest. --ext .py,.ts counts only certain file types; -x tests/ omits
paths; --format json gives machine output. A revspec or filter that matched no
files scores zero, and that is not a clean bill of health.
Run the per-file report in PR mode by passing each changed file twice:
repowise risk --target <file> --changed-file <file> --format json # repeat both per changed fileThe response carries its own directive block, per file rather than per
change — read it first, it's a few short lists:
may_break — files/symbols that import their way to what changed but are
not in the diff. Reachability, not a diff: it says these depend on the
changed files, not that the thing they use changed. Check each one.missing_cochanges — files that historically change together with the
changed files but were left untouched. Often a forgotten update.missing_tests — changed code with a test gap. Flag for new/updated tests.tests_to_run: the tests the change needs, from the same selection
repowise impacted-tests makes, with tests_to_run_why giving each one's
reason (the changed file and its evidence, or "runs with every subset").
Check tests_run_all first: when it is true no smaller set can be
vouched for, tests_run_all_reasons says why, and the list is only what
to run first; recommend the whole suite. When it is false the list is the
set to run. tests_to_run_basis is measured when stored per-test
coverage decided a changed file and inferred when only the dependency graph
or a rule did; say which. tests_status appears only when no selection
could be made (timeout, config_invalid, unknown, ...), and then every
test must run.The same JSON carries pr_blast_radius, the fuller dossier behind the
directive's lists.
For the line-precise version from a terminal, repowise impacted-tests <revspec>
maps each changed line to the tests whose recorded coverage touches it, then
prints the ids (--format list | xargs pytest runs exactly them). It is honest
about gaps: a changed file with no coverage rows is a labelled filename guess,
and a brand-new file is "unknown, run the full suite", never "no tests needed".
get_why(query="<file>") — don't let a change silently contradict a recorded
architectural decision. Surface conflicts_with / supersedes hits.repowise health --score <changed file> --against main (repeat --score per file) scores each file now and at the
base — call out new complexity, deep nesting, or duplication the diff
introduced.repowise risk --target suggest the people with the most context on the
touched code.gh pr diff <number> (or gh pr view <number> --json files).git diff --name-only main...HEAD.git status --porcelain.repowise risk main..HEAD scores a branch/PR range
for defect risk directly.Lead with a risk level and the directive findings, each tied to a concrete
file. Distinguish "may break" (a dependent outside the diff) from "worth a
look" (a co-change or health regression). Don't pad with findings the tools
didn't support.
If repowise risk --target errors or returns nothing, the repo may be
unindexed — say so and review from the raw diff, noting that Repowise context was
unavailable. Suggest /prompts:repowise-init if the repo isn't indexed.
repowise-dev/repowise
e68395b
repowiserepowise riskrepowise healthrepowise health checkrepowise impacted-testsghgh prgh pr diffgh pr viewgitgit diffgit statusxargsxargs pytestpytestget_whyIf 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.