- Home
- Skills
- Code Quality & Review
- Explain & Fix Code Review Comments and Warnings
Explain & Fix Code Review Comments and Warnings
Paste any review comment, linter warning or bug report: it checks whether the problem is real, explains it with the exact scenario, applies the smallest safe fix and runs your tests to verify it.
$13
/moSubscription · cancel anytime
Secure checkout via Stripe
- Always the latest version
- Delivered live to your agent via MCP
- Cancel anytime, access ends at period end
Explain & Fix Code Review Comments and Warnings
Example session with this skill installed
explain and fix this review comment: "LoginAttemptTracker is not thread-safe, attempts can be lost under load"
- Read your context and instructions
- Compiled the explain & fix
Real problem. attempts is a plain HashMap, and recordFailure reads the count and then writes count + 1. When two failed logins for the same user arrive at the same time, both read 4 and both write 5, so one attempt is lost. An attacker sending parallel requests can try far more passwords than the 5-attempt limit allows. Concurrent writes can also corrupt the HashMap.
Fix: use a ConcurrentHashMap and update the count atomically with merge.
- private final Map<String, Integer> attempts = new HashMap<>();
- private final Map<String, Integer> attempts = new ConcurrentHashMap<>();
- int count = attempts.getOrDefault(user, 0);
- attempts.put(user, count + 1);
- attempts.merge(user, 1, Integer::sum);
Finding: lost updates in login attempt counter · Verdict: real
Fixed in: src/main/java/com/acme/auth/LoginAttemptTracker.java:18, 34
Verified by: ./mvnw test -Dtest=LoginAttemptTrackerTest → 6 tests passed; added a concurrent test that failed before the fix
Subscription · always the latest version
- Secure checkout via Stripe
- Cancel anytime
- Delivered live via MCP
About this skill
Stop guessing what a reviewer, linter or scanner meant. This skill turns any finding into understanding and a verified fix.
What it does
- Finds the code the comment refers to and reads its context
- Decides honestly whether the problem is real – and pushes back when it isn't
- Explains what goes wrong and the exact input or sequence that triggers it
- Applies the smallest correct fix – no unrelated reformatting or refactoring
- Runs your tests or build to verify, and offers a regression test
Works with comments from human reviewers, AI reviewers, SonarQube, ESLint, SpotBugs, Semgrep, CodeQL and other scanners, in any language.
Pairs with "PR Code Review" and "Security Review".
Skips formatting and style nits. Uses triage for diffs over 30 files or 2,000 lines. Requires git for automated scope detection.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
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.