get_risk
Assesses file risk by combining git churn, bus factor, dependency graph, and security findings. Provides directives for PR changes to prevent breaking code.
Instructions
What history says about touching these files — churn, owners, blast radius.
Fuses git temporal signals (churn percentile, trend, bus factor) with
graph topology (dependents, co-changes, impact surface) and security
findings. Consult before editing 95th+ churn-percentile files. Pass
changed_files for PR mode: the response leads with a directive block
(will_break, missing_cochanges, missing_tests) — read it first.
Args:
targets: file paths to assess.
repo: usually omitted.
changed_files: PR-changed files for blast-radius mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| targets | Yes | ||
| changed_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |