Works with the AI Agents you already use

    Code Review — Human-Voiced PR Reviews

    by Cristhian Zanforlin Lousa

    1

    Reviews a pull request and writes a paste-ready, first-person review ordered by severity, with file:line evidence.

    Free

    2 usesSecurity scanned
    Code Review — Human-Voiced PR Reviews

    Code Review — Human-Voiced PR Reviews

    Example session with this skill installed

    Can you review this PR before I approve it?

    Title: "Add password reset request endpoint"
    Description: "Adds POST /auth/password-reset. Sends an email with a reset link. Tokens expire after 1 hour."

    +++ b/src/auth/passwordReset.ts
    @@ -0,0 +1,29 @@
    +import { Router } from "express";
    +import { db } from "../db";
    +import { mailer } from "../mailer";
    +import { logger } from "../logger";
    +
    +export const passwordResetRouter = Router();
    +
    +passwordResetRouter.post("/auth/password-reset", async (req, res) => {
    +  const { email } = req.body;
    +  logger.info(`Password reset requested for ${email}`);
    +
    +  const user = await db.user.findUnique({ where: { email } });
    +  if (!user) {
    +    return res.status(404).json({ error: "No account with that email" });
    +  }
    +
    +  const token = Math.random().toString(36).slice(2);
    +  await db.passwordResetToken.create({
    +    data: { userId: user.id, token },
    +  });
    +
    +  try {
    +    await mailer.send(user.email, "Reset your password", `https://app.example.com/reset?token=${token}`);
    +  } catch (err) {
    +    logger.error(err);
    +  }
    +
    +  return res.json({ ok: true });
    +});
    
    +++ b/src/auth/passwordReset.test.ts
    @@ -0,0 +1,4 @@
    +it("sends a reset email", async () => {
    +  const res = await request(app).post("/auth/password-reset").send({ email: "ana@example.com" });
    +  expect(res.status).toBe(200);
    +});
    
    • Read your context and instructions
    • Compiled the code review

    Summary

    I read the handler and the test as pasted and traced the reset flow from request to email. I didn't run the suite, because I only have the diff. The structure is fine, but the token can be predicted, the email address goes into the logs, and the one-hour expiry promised in the description isn't in the code. All three are on an account-takeover path, so this needs changes before it merges. Once those three are fixed, I'd approve with the remaining comments. Scope is clean: both files serve the stated purpose. I didn't run the PR pentest probes because I have only the diff and no running environment for this branch, so the findings below come from reading the code.

    Needs to change before merge

    The reset token is predictable

    src/auth/passwordReset.ts:17 builds the token with Math.random().toString(36).slice(2). Math.random isn't a cryptographic generator, and its output can be predicted, which turns a reset link into an account-takeover vector. The token is also stored in plain text at line 18, so anyone with read access to that table, a backup, or a replica can reset any pending account. Generate it with crypto.randomBytes(32).toString("base64url"), store only a SHA-256 hash of it, and compare hashes when the link is used.

    The email address is written to the logs

    Line 10 logs Password reset requested for ${email}, which puts PII into every log line for this endpoint, including for addresses that don't belong to any account. Log the internal user.id after the lookup, or log nothing before it. The logger.error(err) at line 25 deserves a look for the same reason: many mailer errors include the recipient address in their message.

    The one-hour expiry in the description isn't implemented

    The description says tokens expire after 1 hour, but passwordResetToken.create at line 18 stores no expiresAt, and nothing in this diff consumes or invalidates a token. As written, a reset link works forever and can be used more than once. Add expiresAt, mark the token used on redemption, and add a test that an expired or already-used token is rejected. If the redemption side lives in another PR, point me to it and I'll check it there instead.

    Worth fixing in this PR

    The 404 reveals which emails have accounts

    Lines 13–15 return 404 "No account with that email", so anyone can probe the endpoint to find out who is registered. Return the same 200 with a neutral message ("If this email is registered, we'll send a link") whether or not the user exists. Ideally, send the email after the response so the timing doesn't give it away either. This doesn't block the merge, but it's a small change and belongs here.

    A failed send is reported as success

    The catch at lines 24–26 logs the error and still returns { ok: true }. If the mailer is down, users wait for an email that never arrives, and nothing signals the outage. Keep the neutral response for the reason above, but log with user.id and an error code and emit a metric you can alert on.

    email isn't validated

    req.body.email goes straight into findUnique at line 12 without a check that it's a string. Validate the body with the project's schema validator and return 400 on anything else, so malformed input fails clearly instead of reaching the ORM.

    Follow-ups and take-it-or-leave-it

    • Fine as a follow-up: rate-limit this endpoint per IP and per address. Without a limit, it can be used to flood someone's inbox and run up the mail bill. If a global limiter already covers /auth/*, ignore this.
    • Take it or leave it: move the hardcoded https://app.example.com/reset base URL at line 23 into config, so staging links don't point to production.

    Tests

    The only test checks that the status is 200. It would still pass if no token were stored, no email were sent, and the token were logged, so it doesn't prove the behavior. I'd want tests showing that an unknown address gets the same response as a known one, that the stored token is hashed and has an expiresAt, that a mailer failure still returns the neutral response and records the error, and that no log call receives the email address.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Reviewing Code produces the kind of review a competent engineer writes after doing the work. Every finding is a complete sentence with file:line evidence, the cause and the consequence, and a disposition: fix before merge, fix in this PR, follow-up, or take it or leave it. The review is printed in chat, safe to paste into GitHub, and written in the PR's own language.

    Problems it solves

    • Reviews that read like a filled-in form.
    • "Request changes" over preferences, or over work the PR never set out to do.
    • PRs that sneak in drive-by refactors, unmentioned behavior changes or weakened tests.
    • Security defects in AI-written code that only show up when someone actually sends the request.
    • Review comments that break on GitHub (#N auto-links, Fixes keywords).

    Workflow. Read the whole PR. Run a scope check: every changed file must map to the PR's stated purpose, and unrelated hunks, unmentioned behavior changes, loosened assertions and slop become findings. Apply the security lens (five trust questions, plus web checks for XSS, CSRF/CORS, BOLA, SSRF and injection when the diff touches the web stack). When the PR can run in a local or ephemeral environment, run a minimal PR pentest: up to 13 safe curl probes mapped to OWASP WSTG, each approved by a human and never aimed at production. Then come the comprehension, structural, cross-platform, correctness and testing checks, internal triage, and the review rendered as prose.

    The review stays in scope too. Pre-existing problems in untouched code are follow-ups, never blockers. "Request changes" is reserved for true blockers.

    Inside: references for scope checks, PR pentest, web security checks, security checks, structural checks, correctness checks, grep recipes, the checklist and the output format, plus shared references from sibling skills.

    Triggers on "review this PR", "code review", "review this diff" or "second opinion on this branch".

    Free and MIT-licensed, part of claude-skills-czl.

    Source on GitHub: this skill · full repository

    Reviews what it can read: with only a diff it says what it could not verify. The PR pentest runs only against a local or ephemeral environment of the PR branch, with a human approving each probe; without one it relies on static checks. It never posts to GitHub or edits code.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    2 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    eslintNode.jsGit

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    **/*
    learnings/**

    - Reads files: yes. It reads the PR diff, the touched files, the tests and its `learnings/` folder. - Edits files: no code edits. The review goes to chat, never to a file. Its only write is an optional `learnings/YYYY-MM-DD-slug.md` when it finds a recurring review pattern. - Shell commands: read-only inspection such as the grep recipes and optional complexity tools. The PR pentest sends `curl` requests, and only against a local or ephemeral environment started from the PR branch, with two disposable test accounts. It stops at 10 requests for brute force, sends no destructive payloads and needs a human to approve each command. - Network access: only for the optional pentest, and only to that local or ephemeral environment. Never production, shared staging or third-party hosts. - Git/GitHub: explicitly forbidden from `git add`, `git commit`, `git push`, `gh pr review`, `gh pr comment` and any other command that changes GitHub. You post the review yourself.

    Listed1 month ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    Yes. Any agent that supports the SKILL.md format can load it. It was built and tested mainly on Claude Code.

    No. The skill forbids `gh pr review`, `gh pr comment`, `git commit`, and `git push`. The review is printed in chat for you to read, edit, and post yourself.

    Those make a review read like tool output. Severity is still triaged, but it shows up in the ordering and wording ("needs to change before merge", "fine as a follow-up"). "Request changes" is reserved for true blockers.

    Automatically, when you ask to review a PR or diff, ask for a code review, or ask for a second opinion on a branch. You can also invoke it by name.

    Unzip it into `~/.claude/skills/` for every project, or into a project's `.claude/skills/` to scope it to that project. The result should be `.claude/skills/reviewing-code/SKILL.md`.

    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.

    Free