- Home
- Skills
- Agents & Orchestration
- code review risk auditor
code review risk auditor
Review code changes for security, performance, and logic defects using path-tracing and impact-based risk ranking.
$5
Works with the AI Agents you already use
code review risk auditor
Example session with this skill installed
Review the changes in this commit for security and performance risks: I added a new user search endpoint that queries the database using a raw string and returns the full user object.
- Read your context and instructions
- Compiled the code review risk
I have audited the code changes for the user search endpoint. The review identified a critical security vulnerability and a high-impact performance bottleneck.
Risk Audit Report
| # | Category | Impact | Confidence | File:Line | Issue |
|---|---|---|---|---|---|
| 1 | Security | Critical | Verified | api/users.ts:42 | SQL Injection via raw string interpolation |
| 2 | Performance | High | Probable | db/query.ts:15 | N+1 query pattern in search results |
| 3 | Maintainability | Low | Possible | api/users.ts:45 | Hardcoded page size limit |
Detailed Findings
1. SQL Injection Vulnerability
- Classification: Verified Issue
- Risk Level: Critical
- Affected Path:
GET /search?q={input}->searchUsers(input)->db.execute() - Evidence:
const query = 'SELECT * FROM users WHERE name = ' + input; - Proposed Fix:
const query = 'SELECT * FROM users WHERE name = ?';
return db.execute(query, [input]);
- Rationale: Using parameterized queries prevents user input from being executed as SQL commands.
2. Full Object Exposure
- Classification: Context-Dependent Concern
- Risk Level: High
- Affected Path:
searchUsersreturnsUser[]includingpassword_hashandsecret_key. - Evidence:
SELECT *returns all columns to the client. - Proposed Fix:
const query = 'SELECT id, username, email FROM users WHERE name = ?';
- Rationale: Reduces payload size and prevents accidental leakage of sensitive internal fields.
Summary Statistics
- Total Findings: 3
- Risk Distribution: 1 Critical, 1 High, 1 Low
- Recommended Actions:
- Must-fix: Address the SQL injection immediately.
- Should-fix: Implement column projection to limit data exposure.
Next steps
- Apply the parameterized query fix to the search endpoint.
- Define a Data Transfer Object (DTO) for the user response.
- Add an integration test for SQL injection payloads.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Pull requests often harbor hidden regressions, concurrency bugs, and performance bottlenecks that standard linters miss. Manual reviews are time-consuming and prone to missing edge cases in complex execution paths.
What it does
- Analyzes intended behavior against actual implementation to find logic gaps.
- Traces execution paths and dependency propagation to identify blast radius.
- Detects edge cases including race conditions, null dereferences, and O(n²) patterns.
- Ranks findings by impact and confidence levels to prioritize critical fixes.
- Provides minimal, targeted code snippets to resolve identified defects.
Why this beats prompting it yourself
Generic prompts often hallucinate issues or provide vague architectural advice. This skill uses a structured risk-ranking framework and path-tracing logic to distinguish between verified bugs and context-dependent concerns, ensuring you only act on high-signal feedback.
Use cases
- Reviewing security-critical PRs for injection risks or auth bypasses.
- Auditing legacy code refactors for behavioral regressions.
- Identifying memory leaks and unnecessary allocations in performance-sensitive paths.
- Evaluating third-party PRs for maintainability and naming convention alignment.
Known limitations
Requires enough code context to trace call chains. Large diffs without commit messages may reduce the accuracy of behavioral inference.
Accuracy depends on provided context. Large diffs without commit messages may limit the ability to infer intended behavior. Requires traceable code paths to verify high-confidence issues.
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 any payment.
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 2 months ago