- Home
- Skills
- Code Quality & Review
- Senior PR Code Reviewer & Security Gatekeeper
More screenshots
Works with the AI Agents you already use
Senior PR Code Reviewer & Security Gatekeeper
Automated staff-level PR code reviewer & security gatekeeper. Audit git diffs for OWASP flaws, N+1 queries, memory leaks, and missing unit tests with copy-paste fixes.
$2.99
Senior PR Code Reviewer & Security Gatekeeper
Example session with this skill installed
Audit my current git diff before I open a pull request—flag any security risks, performance bottlenecks, or edge-case bugs.
- Read your context and instructions
- Compiled the senior pr code
I have completed a pre-PR audit of your current git diff across
4 modified files (src/api/orders/route.ts, src/services/catalog.ts, src/hooks/useCartSync.ts, and src/utils/formatCurrency.ts).
🚦 Merge Verdict: BLOCK
The changes introduce a critical authorization bypass (IDOR) on order retrieval and an N+1 database query bottleneck in catalog lookup that will degrade performance under load.
🔴 Critical & Security Issues (Must Fix)
[src/api/orders/route.ts:42] — Missing Ownership Check (IDOR): The endpoint fetches orderId directly from the database without verifying that the authenticated user owns the record.
// Fix: Scope query to the authenticated user's session ID
const order = await db.order.findFirst({
where: { id: orderId, userId: session.user.id }
});
if (!order) return Response.json({ error: "Order not found" }, { status: 404 });
🟡 Performance & Logic Warnings (Should Fix)
[src/services/catalog.ts:68] — N+1 Database Query: Calling db.product.findUnique() inside items.map() executes a separate query per cart item.
// Fix: Batch fetch all products in a single query
const products = await db.product.findMany({
where: { id: { in: items.map((item) => item.productId) } }
});
[src/hooks/useCartSync.ts:24] — Unhandled Promise Rejection: syncCartToServer() lacks a try/catch block, causing unhandled runtime errors on network timeouts.
🔵 Clean Code & Nitpicks (Optional)
[src/utils/formatCurrency.ts:11] — Replace the magic number 100 with a named constant CENTS_PER_UNIT for better readability.
🧪 Missing Test Cases
- Assert that requesting another user's
orderIdreturns404/403. - Test
useCartSyncerror recovery when the API returns a503timeout. - Test checkout total calculation with an empty
itemsarray.
Next steps
- Apply the
userIdownership filter insrc/api/orders/route.tsto close the IDOR vulnerability. - Refactor
src/services/catalog.tsto usefindManyinstead of querying inside a loop. - Add the missing authorization and timeout unit tests before opening your Pull Request.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual PR reviews are slow, inconsistent, and often miss critical security vulnerabilities or performance bottlenecks. This skill acts as a staff-level engineer to audit your code for bugs, leaks, and technical debt before it hits production.
What it does
- Security scanning identifies SQL injection, XSS, hardcoded secrets, and missing authorization checks.
- Performance auditing detects N+1 queries, memory leaks, and blocking operations in critical execution paths.
- Logic verification catches race conditions, unhandled promise rejections, and off-by-one errors.
- Maintainability checks flags high cyclomatic complexity and DRY violations with refactoring suggestions.
- Test gap analysis pinpointing specific edge cases and logic branches that lack adequate unit or integration tests.
How it works
- The skill analyzes your git diff, staged changes, or provided source files to detect the tech stack and framework conventions.
- It performs a multi-layer audit across five dimensions: Bugs, Security, Performance, Architecture, and Test Coverage.
- It generates a structured report with a clear Merge Verdict and specific file/line references for every finding.
- For every issue identified, it provides a copy-pasteable code fix or concrete refactoring example.
Frameworks & tools
Works with any language or framework, with specialized focus on auth, payments, database queries, and API routes.
Why this beats prompting it yourself
Generic prompts often return vague advice like "add more comments." This skill is hard-coded to ignore fluff, enforce strict engineering standards, and mandate exact code snippets for every requested change.
Use cases
- Auditing a Pull Request for security vulnerabilities before merging to main.
- Performing a performance check on new database query logic or API endpoints.
- Reviewing legacy code refactors to ensure no new edge cases were introduced.
- Generating a punch-list of missing test cases for a new feature implementation.
Known limitations
Does not perform live execution of code or dynamic analysis; reviews are based on static analysis of provided text or diffs.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Limited to static analysis of provided text or diffs. Cannot perform dynamic runtime analysis or live penetration testing.
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 1 day ago
Nothing to install. It runs in your AI agent.
Works on staged git changes (git diff --staged), entire branches, or any individual files you paste or reference in your workspace.
Permissions
File Scopes
Read-only access is used exclusively to inspect local source files and staged git diffs during a code review. This skill never modifies files, executes shell commands, reads environment secrets, or sends code to external servers.