Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(plugins): render the change-review skill from its shared source (#2023)
Raghav Chamadiya59c0d5894157
diff --git a/plugins/codex/skills/change-review/SKILL.md b/plugins/codex/skills/change-review/SKILL.mdindex d5c3a27a8..923b19951 100644--- a/plugins/codex/skills/change-review/SKILL.md+++ b/plugins/codex/skills/change-review/SKILL.md@@ -17,7 +17,8 @@ Two complementary risk signals, use both:score with drivers (lines added/deleted, files, directories, subsystems,change entropy, author familiarity). No LLM, no network. Prefer this in-MCPtool; it takes a revspec and diffs server-side, so you never shell out. Lead- with `risk_percentile` (this change ranked against sampled recent commits),+ with `directive` and `health_delta` — what the change actually made worse.+ Then `risk_percentile` (this change ranked against sampled recent commits),summarized by `review_priority` and `classification`. `score` is calibratedper single commit, so a PR-sized change reads high by construction, and`fallback_band` appears only when there was no baseline to rank against.@@ -33,15 +34,18 @@ Two complementary risk signals, use both:get_change_risk(revspec="main..HEAD") # HEAD, a commit SHA, or base..head```-Read `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. `extensions=[".py", ".ts"]` counts only certain file types;-`exclude_patterns=["tests/"]` omits paths. A `warning` field means the revspec-or filters matched no files, so an all-zero score there is not a clean bill of-health. The equivalent from a terminal is `repowise risk <revspec>` (add-`--ext .py,.ts` or `--format json`).+Read `directive` first: `status`, a `headline` naming what got worse, the+`reasons` behind it and `next_actions` to run. `health_delta` carries the+findings the change introduced or resolved. 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. `extensions=[".py", ".ts"]` counts+only certain file types; `exclude_patterns=["tests/"]` omits paths. A `warning`+field, or a `directive.status` of `unknown`, means the revspec or filters+matched no files, so an all-zero score there is not a clean bill of health. The+equivalent from a terminal is `repowise risk <revspec>` (add `--ext .py,.ts` or+`--format json`).-## Then drill into the directive block+## Then drill into the per-file directiveCall `get_risk` in **PR mode** by passing the changed files:@@ -49,7 +53,8 @@ Call `get_risk` in **PR mode** by passing the changed files:get_risk(targets=<changed files>, changed_files=<same changed files>)```-The response carries a `directive` block — read it first, it's a few short lists:+The response carries its own `directive` block, per file rather than per change+(distinct from `get_change_risk`'s) — 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 thediff --git a/plugins/shared/skills/change-review.md b/plugins/shared/skills/change-review.mdindex 96a1406a4..9839bfdee 100644--- a/plugins/shared/skills/change-review.md+++ b/plugins/shared/skills/change-review.md@@ -30,7 +30,8 @@ Two complementary risk signals, use both:score with drivers (lines added/deleted, files, directories, subsystems,change entropy, author familiarity). No LLM, no network. Prefer this in-MCPtool; it takes a revspec and diffs server-side, so you never shell out. Lead- with `risk_percentile` (this change ranked against sampled recent commits),+ with `directive` and `health_delta` — what the change actually made worse.+ Then `risk_percentile` (this change ranked against sampled recent commits),summarized by `review_priority` and `classification`. `score` is calibratedper single commit, so a PR-sized change reads high by construction, and`fallback_band` appears only when there was no baseline to rank against.@@ -46,15 +47,18 @@ Two complementary risk signals, use both:get_change_risk(revspec="main..HEAD") # HEAD, a commit SHA, or base..head```-Read `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. `extensions=[".py", ".ts"]` counts only certain file types;-`exclude_patterns=["tests/"]` omits paths. A `warning` field means the revspec-or filters matched no files, so an all-zero score there is not a clean bill of-health. The equivalent from a terminal is `repowise risk <revspec>` (add-`--ext .py,.ts` or `--format json`).+Read `directive` first: `status`, a `headline` naming what got worse, the+`reasons` behind it and `next_actions` to run. `health_delta` carries the+findings the change introduced or resolved. 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. `extensions=[".py", ".ts"]` counts+only certain file types; `exclude_patterns=["tests/"]` omits paths. A `warning`+field, or a `directive.status` of `unknown`, means the revspec or filters+matched no files, so an all-zero score there is not a clean bill of health. The+equivalent from a terminal is `repowise risk <revspec>` (add `--ext .py,.ts` or+`--format json`).-## Then drill into the directive block+## Then drill into the per-file directiveCall `get_risk` in **PR mode** by passing the changed files:@@ -62,7 +66,8 @@ Call `get_risk` in **PR mode** by passing the changed files:get_risk(targets=<changed files>, changed_files=<same changed files>)```-The response carries a `directive` block — read it first, it's a few short lists:+The response carries its own `directive` block, per file rather than per change+(distinct from `get_change_risk`'s) — 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