# Diff Risk Triage (Free, Offline PR Risk Score)

> Scores a git diff 0-100 for review risk and tells you which files to read first: migrations, CI, auth paths, deleted tests, risky added lines.

Diff Risk Triage (Free, Offline PR Risk Score) is a free AI agent skill on Agensi by Colton Mcclain, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Colton Mcclain](https://www.agensi.io/creators/colton-mcclain)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/diff-risk-triage-free-offline-pr-risk-score
- Tags: code-review, git, developer-tools

## About this skill

A first-pass map for a reviewer: where is this change most likely to hurt, and what should be read before anything else. It ranks attention; it does not find bugs and never approves a change.

Either run inside the repo with no arguments (staged + unstaged changes versus `HEAD`), pass `--base main` to compare against a branch or commit, or give a saved unified diff with `--diff FILE` (or `-` for stdin). Only `git diff` is run; nothing is checked out or modified.

This skill bundles one standard-library Python file, `scripts/diff_risk_triage.py` (sha256 `a0d742be5af8df811272e7916479545a04266754dabc7ba3a24e7be006d37f03`). If it is not already on disk:

1. Write the bundled script text verbatim to a temp file outside the user's project, e.g. `T=$(mktemp --suffix=.py)`.
2. Check `sha256sum "$T"` equals `a0d742be5af8df811272e7916479545a04266754dabc7ba3a24e7be006d37f03`. If it differs, rewrite it; never edit it.
3. Run `python3 "$T" [--diff FILE|-] [--base main] [--repo "/path"] [--json]` with each user path as a separately quoted argument.
4. Delete the temp file. Do not save the script into the project.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Diff Risk Triage (Free, Offline PR Risk Score) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Diff Risk Triage (Free, Offline PR Risk Score) do?

Scores a git diff 0-100 for review risk and tells you which files to read first: migrations, CI, auth paths, deleted tests, risky added lines.

### Which AI agents support Diff Risk Triage (Free, Offline PR Risk Score)?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Diff Risk Triage (Free, Offline PR Risk Score)?

Connect your AI agent to Agensi through MCP, then ask it to use Diff Risk Triage (Free, Offline PR Risk Score) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
