PR Security Review: Ranked Fix List Before Merge
Automated security auditor that finds secrets, injection vulnerabilities, and auth gaps in pull requests.
$19
Works with the AI Agents you already use
PR Security Review: Ranked Fix List Before Merge
Example session with this skill installed
Review the security of my recent changes compared to the main branch. I've added a new user search endpoint and updated some dependencies.
- Read your context and instructions
- Compiled the pr security review
I have completed a security audit of the diff between main and the current branch. I checked for SQL injection, hardcoded secrets, and dependency vulnerabilities.
Security Review Report
Verdict: FIX BEFORE MERGE
[High] app/routes/users.py:28 SQL built with an f-string from request.args.get('q')
Risk: Attacker can perform SQL injection to bypass filters or extract unauthorized user data.
Fix: Use a parameterized query: cursor.execute("SELECT * FROM users WHERE username = %s", (search_term,))
[Medium] requirements.txt:12 django-rest-framework bumped to 3.12.0
Risk: This version has a known moderate vulnerability (CVE-2021-XXXXX) related to malformed input handling.
Fix: Update to version 3.12.4 or higher where the patch is applied.
[Low] config/settings.py:104 DEBUG set to True
Risk: Detailed error pages may leak internal file paths or environment variables in a production-like environment.
Fix: Ensure this flag is toggled via environment variables and defaults to False.
Next steps
- Refactor the search query in
app/routes/users.pyto use parameters. - Update the
requirements.txtto a patched version of the library. - Verify that the
DEBUGflag is correctly handled in your CI/CD environment variables.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual security reviews often miss subtle injection paths or leaked secrets in a fast-moving PR queue. This skill audits code diffs to find exploitable vulnerabilities before they reach production.
What it does
- Secrets detection identifies hardcoded tokens, keys, and credentials, ensuring they are masked in reports.
- Injection analysis traces user input to SQL queries, shell commands, and file paths to find unsanitized data sinks.
- Auth validation checks that new routes or handlers enforce identity and permission checks.
- Dependency auditing scans lockfiles for packages with known security advisories using ecosystem-native tools.
- Risk ranking categorizes findings from Critical to Low based on exploitability and preconditions.
How it works
- Analyze diffs by comparing the current branch against the base branch to isolate new changes.
- Scan patterns using internal scripts to flag candidate lines for unsafe deserialization, weak hashes, or permissive CORS.
- Verify leads by reading surrounding file context to filter out false positives in comments or test fixtures.
- Rank findings into a structured report with clear fix instructions and a merge verdict.
Frameworks & tools
This skill utilizes git, python, and ecosystem auditors like npm audit, pip-audit, or cargo audit. It works across any stack where code changes can be represented as a diff.
Why this beats prompting it yourself
Generic prompts often hallucinate security flaws or miss deep context like data exposure in logs. This skill follows a rigorous multi-step verification process, combining pattern scanning with manual trace logic to ensure findings are actionable and accurate.
Use cases
- Reviewing new API endpoints for authorization gaps and input validation.
- Scanning PRs for accidental commits of API keys or service account credentials.
- Auditing configuration changes for risky IAM rules or disabled TLS verification.
- Checking dependency updates for known vulnerabilities during the upgrade process.
Known limitations
Does not remove secrets from git history automatically. Findings in test fixtures or comments are ignored. Requires the presence of scripts/scan.py for the initial pattern scan.
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.
Does not automatically scrub secrets from git history. Requires scripts/scan.py to be present. Skips files marked as test fixtures.
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Git