Works with the AI Agents you already use

    Diff Risk Review — Rule-Based PR Gate

    by SHUN

    1

    Most review time goes to the ten changed lines that can page someone at 3am.

    Free

    Security scanned
    Diff Risk Review — Rule-Based PR Gate

    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

    CI_MUTED deploy.yml

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    Reads a unified diff against a fixed rule catalog and returns PR-ready findings — committed credentials, swallowed exceptions, removed assertions, muted CI, concatenated SQL, disabled TLS, unpinned deps, dropped timeouts — each with file:line, the line as evidence and a fix. Exit codes usable as a C

    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.

    Connect your AI agent to Agensi through MCP, then ask it to use Diff Risk Review — Rule-Based PR Gate 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.

    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.

    Free