Works with the AI Agents you already use
Code Review Sentinel
Catch production-blocking bugs, security vulnerabilities, and performance leaks with staff-engineer-level PR reviews.
$9
Code Review Sentinel
Example session with this skill installed
Review this Node.js function for security and performance issues:
async function getUser(req, res) {
const user = await db.query('SELECT * FROM users WHERE id = ' + req.params.id);
res.send(user);
}
- Read your context and instructions
- Compiled the code review sentinel
The review of the getUser function is complete. I have identified a critical SQL injection vulnerability and a missing error handling path.
Code Review: getUser Audit
🔴 REQUEST CHANGES
The code is vulnerable to SQL injection via the id parameter, which could lead to a full database compromise. It also lacks error handling, which could crash the process or leak stack traces to the client.
| Severity | Category | Location | Concrete Risk |
|---|---|---|---|
| P0 Blocker | Security | db.query(...) | SQL Injection. Attackers can bypass authentication or dump the entire user table. |
| P1 High | Reliability | async function | Unhandled promise rejection. A database failure will crash the Node.js process. |
| P2 Medium | Security | res.send(user) | Data leakage. Sending * includes hashed passwords and internal metadata to the client. |
Deep-Dive Fixes
1. SQL Injection Fix
Concatenating strings into queries allows attackers to execute arbitrary SQL. Use parameterized queries to sanitize input.
// Drop-in fix for SQL Injection
const user = await db.query('SELECT id, email, name FROM users WHERE id = $1', [req.params.id]);
2. Error Handling & Data Hygiene
Wrap the database call in a try-catch block and explicitly select fields to avoid leaking sensitive data like password_hash.
async function getUser(req, res) {
try {
const { rows } = await db.query('SELECT id, email, username FROM users WHERE id = $1', [req.params.id]);
if (rows.length === 0) {
return res.status(404).json({ error: 'User not found' });
}
res.json(rows[0]);
} catch (err) {
console.error('Database error:', err);
res.status(500).json({ error: 'Internal server error' });
}
}
Edge-Case & Test Gap Matrix
| Input | Expected Behavior |
|---|---|
id=999; DROP TABLE users; | Sanitize and return 404 if no user found. |
id=non-numeric | Return 400 Bad Request or handle via DB type error. |
| Database Timeout | Catch error and return 500 without crashing. |
Next steps
- Replace all instances of string concatenation in database queries with parameterization.
- Implement a global error handling middleware to catch unhandled rejections.
- Update the SQL query to explicitly list required fields instead of using
*.
Connects securely to your tools. The creator never sees your data.
About this skill
Ship production-grade code with confidence by catching critical bugs, security vulnerabilities, and performance regressions before they hit the main branch. This skill bypasses surface-level linter nits to focus on staff-engineer-level concerns like race conditions, memory leaks, and OWASP-tier security flaws.
What it does
- Merge Verdicts provides immediate feedback with a clear status badge and executive risk summary.
- Severity-Ranked Audits organizes issues into a structured table from P0 Blockers to minor maintainability nits.
- Drop-in Code Patches delivers ready-to-paste, hardened code blocks for every high-priority finding.
- Security Scans enforces OWASP standards to detect injection risks, auth bypasses, and data leaks.
- Edge-Case Matrix identifies missing test coverage for boundary inputs, timeouts, and concurrency issues.
- Full Refactoring provides a production-ready version of standalone functions to improve complexity and readability.
How it works
- Analyze Context by scanning the language, stack, and exposure level of the provided code or diff.
- Rank Risks using a structured findings table that maps severity to specific locations and concrete production risks.
- Generate Patches for all P0 and P1 issues, explaining the exact failure scenario and providing the fix.
- Identify Gaps in the test suite by listing boundary inputs and providing unit test snippets.
Frameworks & tools
Works across major stacks including TypeScript/Node, Python/FastAPI, Go, React, and SQL. It applies OWASP security principles and performance patterns for database queries and async operations.
Why this beats prompting it yourself
Generic prompts often return "bikeshedding" feedback about style or formatting that linters already catch. This skill is hard-coded to ignore noise, enforce specific security checklists, and provide drop-in code patches rather than vague suggestions.
Use cases
- Auditing a critical PR for security vulnerabilities like IDOR or SQL injection before a release.
- Finding N+1 queries or memory leaks in a performance-sensitive backend service.
- Refactoring complex, nested logic into clean, maintainable, and well-tested functions.
- Generating unit test cases for complex edge cases that developers often overlook.
Known limitations
Does not perform UI/CSS visual design critiques or review non-code prose. Not intended for generating entire greenfield applications from scratch.
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 6 days ago
Permissions
What's inside
Frequently Asked Questions
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.