Skip to content
Development
Agent

sample-review-output

A complete review of a hypothetical PR, in the standard format. Use this as the model for tone, structure, and the anchor → problem → fix pattern.

From plugin
skills
954 skills54 agents

Claude Code

$ npx -y skills add vanara-agents/skills --agent claude-code

Agent definition

sample-review-output.md

Sample Review Output

A complete review of a hypothetical PR, in the standard format. Use this as the model for tone, structure, and the anchor → problem → fix pattern.

---

Code Review — feat: add invoice export endpoint

CRITICAL

  • `api/invoices.js:31` — **IDOR.** `findByUser(req.params.id)` returns any user's invoices; ownership

is never checked against the session. Any logged-in user can read others' financial data. **Fix:** `if (req.params.id !== req.session.userId) return res.status(404).end();` before the query (404, not 403, to avoid leaking existence).

  • `api/invoices.js:47` — **SQL injection.** `order by ${req.query.sort}` interpolates user input.

**Fix:** whitelist sortable columns:

  const SORTABLE = { date: 'created_at', total: 'amount' };
  const col = SORTABLE[req.query.sort] ?? 'created_at';

HIGH

  • `api/invoices.js:58` — Unhandled rejection: `await pdf.render()` has no try/catch; a render failure

500s with a stack trace in the body. **Fix:** wrap in try/catch, log server-side, return a generic error envelope.

  • `api/invoices.test.js` — No test covers the export path or the authz check. **Fix:** add a test

asserting a non-owner gets 404 and an owner gets 200.

MEDIUM

  • `api/invoices.js:20-72` — `exportInvoices` is 52 lines doing auth, query, formatting, and PDF

rendering. **Fix:** extract `assertOwnership()`, `loadInvoices()`, `renderPdf()`.

LOW

  • `api/invoices.js:24` — `const r` → rename to `rows` for readability.

**Verdict: Block** — two CRITICAL issues (IDOR + SQL injection) must be fixed before merge. The HIGH items (error handling + missing tests) should land in the same change. Structure is otherwise reasonable; the medium refactor is a nice-to-have.

Read more
@vanara-agents
Ships withskills

🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.

917 skills54 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of vanara-agents/skills on GitHub, a chart by star-history.com

Other agents on skills.

AGENT

AGENT

Agent

Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing…

review-notes

review-notes

Agent

This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the…

contract-and-openapi

contract-and-openapi

Agent

The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This…

design-checklist

design-checklist

Agent

Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting…

pr-comment-template

pr-comment-template

Agent

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about sample-review-output.

Which coding agents can use sample-review-output?
sample-review-output installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.