Works with the AI Agents you already use
Diff Risk Review — Rule-Based PR Gate
by SHUN
Most review time goes to the ten changed lines that can page someone at 3am.
Free
Diff Risk Review — Rule-Based PR Gate
Example session with this skill installed
patch.diff — 6 files: api, config, utils, a test file, requirements.txt, a workflow
- Read your context and instructions
- Compiled the diff risk review
BLOCK 11 blocker / 8 warning · SECRET_IN_CODE config.py:5 · TEST_WEAKENED test_orders.py:23 · CI_MUTED deploy.yml:14
Connects securely to your tools. The creator never sees your data.
About this skill
A pull request is a list of claims about the future. Most review time goes to the ten changed lines that can page someone at 3am.
This skill reads the diff and nothing else: only changed lines are judged, and the removal side is checked only for deletions that are themselves the risk.
Rules that fire:
- credentials in code, silent catch, bare except, unsafe deserialize
- assertion deleted from a test, test skipped in the same change
|| true,continue-on-error,permissions: write-all, remote script piped to shell- SQL built by
+,%, f-string or.format verify=False,InsecureSkipVerify, auth set to None- timeout removed, unbounded loop, mutable default
- debug leftovers, identifiers in log lines, unpinned requirements
Output is risk_review.md (verdict, findings table, per-file table) plus an embedded PR comment block and risk_review.json. Exit codes 0/1/2 map to PASS/WARN/BLOCK, so the same script is a local review pass and a pipeline gate. A false positive is suppressed in the diff with risk-ok and a reason.
Rule-based: finds known shapes, a novel failure mode passes. Reads a diff, not a repository. No secret-history scan, no CVE or licence checks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Software
Python 3.9+
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.