# Code Security Diff Reviewer

> Automated 6-axis security and logic audit for code diffs with ranked findings and minimal fix patches.

Code Security Diff Reviewer is a paid AI agent skill on Agensi by Badung, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3.99 (one-time purchase)
- Creator: [Badung](https://www.agensi.io/creators/badung)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/code-security-diff-reviewer
- Tags: code-review, security, typescript, python, git

## About this skill

Reviewing your own diffs is a recipe for missing the obvious. This skill acts as a consistent pre-commit gate for your code, catching security holes and logic flaws before they reach your main branch. It checks staged changes or pasted patches against six specific axes and returns severity-ranked findings with exact line citations and minimal patches.

### What it does

- **Security audits**: Detects missing authorization checks (BOLA/IDOR), SQL injection, XSS, path traversal, SSRF, and exposed secrets in your diffs.
- **Boundary analysis**: Identifies unchecked nulls and undefined values, integer/date off-by-one errors, and unhandled empty collections.
- **Concurrency checks**: Finds check-then-act races, missing transaction boundaries, and non-atomic database updates.
- **Error handling**: Flags swallowed exceptions, empty catch blocks, ignored error returns, and stack traces or secrets leaking in error responses.
- **Contract validation**: Spots breaking API changes, renamed or removed response fields, and schema changes without backward compatibility.
- **Verification gap**: Points out behavioral changes or bug fixes that lack a test covering the failure path.

### How it works
1. **Input the diff**: Provide staged changes via `git diff --staged`, a branch diff, or paste a unified diff into the chat.
2. **Review the findings**: The skill classifies issues as `[BLOCKER]`, `[HIGH]`, or `[NIT]`, each with a `file:line` citation and the quoted offending line.
3. **Apply patches**: Use the provided minimal patch for each `[BLOCKER]` and `[HIGH]` finding.
4. **Verify locally**: Run the recommended commands to confirm the fix in your environment.

### Frameworks & tools

Works with TypeScript/JavaScript (Next.js, Express, React), Python (FastAPI, Django), Go, Java/Kotlin, and SQL.

### Why not just a generic prompt

Generic prompts tend to return vague "clean code" advice. This skill applies a fixed six-axis checklist so each review covers the specific failure modes — atomic updates, IDOR, silent failures, contract breaks — instead of depending on what the model happens to notice.

### Use cases

- Reviewing an AI agent's output before committing it to your codebase.
- A pre-PR security sweep for BOLA/IDOR issues in API routes.
- Checking for breaking contract changes in service updates.
- Finding missing test cases for changed logic branches.

### Known limitations
Sees only the diff you provide, not the whole codebase; findings are based on the hunks plus any assumptions marked explicitly. Verification commands are listed as `Pending local run` unless you execute them.

## Requires

- 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 Code Security Diff Reviewer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this reviewer differ from standard AI code assistants or linters?

Unlike general-purpose coding assistants that focus on syntax or style, this skill uses a specialized six-axis audit framework to detect deep logic flaws like race conditions, BOLA/IDOR vulnerabilities, and breaking API contract changes that typical linters and LLMs overlook.

### Which AI agents or development platforms is this skill compatible with?

The skill is designed to work with any AI agent or platform that supports text input. Simply pipe your `git diff` output or paste your patch file directly into the agent's interface to trigger the audit.

### Do I need to give the skill access to my entire codebase to use it?

No. The skill is a "zero-setup" tool: it needs no access to your private codebase or any environment configuration. Because it analyzes the diff itself, you can use it immediately by providing the output of a `git diff --staged` command or a pasted patch.

### What exactly is included in my purchase of the Code Security Diff Reviewer?

You receive the complete Code Security Diff Reviewer skill file (SKILL.md) with the six-axis audit framework, the severity and output rules, both worked examples, and install instructions for Claude Code and Codex.

### Which programming languages and frameworks are currently supported?

The skill currently supports TypeScript, JavaScript, Python, Go, Java, and SQL. It is optimized for modern web frameworks such as Next.js, FastAPI, and Django, specifically looking for common vulnerabilities inherent in those architectures.

### Are there any limitations to the security audit's depth?

The skill is highly effective at analyzing the immediate logic within a diff, but since it does not scan your entire codebase, it may not detect issues caused by distant dependencies. It is best used as a high-speed security gate before final manual PR reviews.

---

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.
