Skip to content
Back to skills

Code Review

ASecurity

Run a thorough self-review pass on the most recent change.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsbashcode-reviewgitapi

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add terva-sh/terva --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/terva-sh-code-review/badge)](https://www.skillsdirectory.com/skills/terva-sh-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: Run a thorough self-review pass on the most recent change.
allowed-tools: [read, bash]
permissions:
  bash: ["git diff*", "git log*", "git show*", "git status"]
---

# Code review

When the user asks for a code review (and you have not already done
one in this turn), follow this routine.

## 1. Establish what changed

Use `bash` to run `git status` and `git diff` (or `git diff --staged`
if there are no unstaged changes). Skim the patch end to end before
analysing any single hunk.

## 2. For each modified file

Read the file in full with the `read` tool — never review only the
hunk; you need surrounding context to evaluate the change properly.
Then look for:

- **Correctness**: bugs, off-by-one errors, wrong sign, missing nil
  checks, swapped arguments, race conditions.
- **Error handling**: every external call (file IO, network, parsing,
  syscalls) — does it propagate or swallow? Are errors wrapped with
  enough context?
- **Tests**: do the new code paths have tests? Are existing tests
  still passing what they claim?
- **Surface area**: are exports necessary, or could the change stay
  internal? Public APIs deserve more scrutiny than internals.
- **Style consistency**: does the change match neighbouring code?

## 3. Report

Produce a concise written review with this shape:

- **Verdict** (one line): ship-as-is / minor changes / needs work / blocked.
- **Required changes** (numbered, if any).
- **Suggestions** (bullets, optional).
- **Praise** (one or two lines if anything stood out — keeps the
  feedback humane).

Don't restate every line of the diff. Don't speculate about future
features. Stay grounded in what the patch does.

## 4. Stop

Do not auto-apply fixes. The user will decide what to act on.

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.

Comments

Loading comments…

Newsletter

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