- Home
- Skills
- Code Quality & Review
- Forensic PR Reviewer
Forensic PR Reviewer
Perform evidence-verified, security-aware code reviews with exact line references and minimal remediation patches.
$12
Works with the AI Agents you already use
Forensic PR Reviewer
Example session with this skill installed
Review the staged changes in this directory. I am concerned about the new database logic and potential race conditions in the user checkout flow.
- Read your context and instructions
- Compiled the forensic pr reviewer
I have completed the forensic review of the staged changes. The audit focused on the checkout logic, specifically checking for concurrency issues and database transaction integrity.
PR Review Report: Checkout Flow Updates
Verdict: [REQUEST CHANGES]
The changes introduce a critical race condition in the balance deduction logic and an unhandled async rejection that could hang the checkout process.
| Severity | File:Line | Evidence | Impact | Minimal Fix |
|---|---|---|---|---|
| CRITICAL | services/checkout.ts:42-45 | Balance is read and updated in two separate operations without a transaction or row lock. | Concurrent requests can lead to double-spending or negative balances. | Wrap the read/update in a db.transaction() and use SELECT ... FOR UPDATE. |
| WARNING | models/order.ts:112 | Missing await or .catch() on the notifyInventoryService promise. | Unhandled rejections will crash the process or leave inventory out of sync if the service is down. | Add .catch(err => logger.error(err)) to the promise chain. |
| SUGGESTION | api/routes.ts:15 | The limit parameter for the order history query defaults to 1000 with no maximum. | Large accounts could trigger memory exhaustion or slow DB responses. | Implement a hard cap of 100 on the limit parameter. |
Verification Checklist
- Null/undefined checks: Verified in
checkout.ts. - SQL Injection: No dynamic strings found in queries.
- Race conditions: FAILED (see line 42).
- Async safety: FAILED (see line 112).
Next steps
- Apply the transaction wrapper in
services/checkout.tsto ensure atomic balance updates. - Add error handling to the inventory notification call to prevent silent failures.
- Run
npm testspecifically on the checkout suite to verify the fixes.
Connects securely to your tools. The creator never sees your data.
About this skill
Evidence-verified, security-aware code and pull request review skill that eliminates false positives and vague AI feedback. Runs a 4-stage pipeline: (1) collect real git diffs via read-only Bash/PowerShell scripts, (2) audit against IDOR, null safety, race conditions, N+1 queries, silent failures, and bloat, (3) filter claims through a False-Positive Gate, and (4) output CRITICAL / WARNING / SUGGESTION findings grouped by file with exact line references and minimal fixes. Includes references/, read-only scripts/, and worked before/after examples.
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.
Requires local git access and permission to execute sh or ps1 scripts. Focuses on code changes rather than full system architecture or external documentation.
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
- Software
Git
Permissions
Read-only git diff inspection (git status, git diff, git log). Performs zero file writes and zero network requests.