Skip to content
Back to skills

Code Review

ASecurity

Use when reviewing a code change or diff for correctness, security, missing tests, and convention violations before opening or approving a PR. Review independently and adversarially, and report high-confidence issues.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentsshellcode-reviewgitapisecuritydocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add spietrza/taskcell --skill code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spietrza-code-review/badge)](https://www.skillsdirectory.com/skills/spietrza-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-review
description: Use when reviewing a code change or diff for correctness, security, missing tests, and convention violations before opening or approving a PR. Review independently and adversarially, and report high-confidence issues.
---

# Code Review

Review the change as an independent reviewer who did not write it. Read the diff and the surrounding
code, then judge it adversarially.

## What to check

- **Correctness:** logic errors, off-by-one, wrong conditionals, unhandled `null`/`undefined`, broken
  control flow, race conditions. Trace the actual execution, don't skim.
- **Error handling at real boundaries:** I/O, subprocess, network, parsing. No silent failures, no
  swallowed errors, no fallback that hides a real problem.
- **Security:** injection, path traversal, leaked secrets, unsafe input reaching a shell/filesystem.
- **Tests:** does new behavior have a test? Are edge cases and failure paths covered? Judge from the diff and the
  surrounding code.
- **Conventions:** match the surrounding code's style, naming, and patterns. No new dependency or
  abstraction that the codebase already provides.

## Severity and the merge gate

Label every finding with the repository's own vocabulary — severity `low | medium | high | critical`,
kind `security | perf | correctness | style`. The merge gate reads the structured block, not the
verdict line: emit `<findings>{"findings":[{"severity":…,"kind":…,"title":…,"evidence":…}]}</findings>`
whenever you have any finding, and make it complete: once a block parses, only its entries count and
the prose is no longer scanned, so a finding left out of the block cannot block. Without a parseable
block the whole reply is scanned for the bare words `critical`, `high-severity` / `high severity` and
for `[high]` / `[critical]` opening a line, so do not use them loosely in prose. A `high` or `critical`
entry is **blocking** (request-changes when the gate is on). Do not invent another scale, and do not
call a style or maintainability point blocking.

## Verify before you block

- A claim about how a platform or tool behaves (CI contexts, git semantics, a library's API, a CI
  setting) needs a source before it blocks: the code and documentation you were given, or the repo's
  own files. Cite what you checked. If you cannot confirm it, say so, keep the severity the diff's own
  evidence supports, and label the finding **inferred** — never inflate it.
- Mark each finding **verified** (you traced the code) or **inferred**.
- Do not run anything: the host runs the project's gates and hands you the result as data when it has
  one. Say so if you could not judge something a gate would have caught.
- Follow the repository's own review guidance, when it has any.
- Do not re-raise a gap the author already disclosed as known unless you bring new evidence.

## How to report

Only report issues you are confident are real — skip speculative nitpicks. Do not edit files: state
each issue, where it is, and why it matters. If something is a genuine design concern beyond this
change, note it as such.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.