Skip to content
Back to skills

Review Code

ASecurity

Review a diff or a branch without changing it and return verified findings with file and line, the reason, a proposed fix and a clear verdict. Use for "review this change", "check the diff", "review the branch before merge", "is this safe to merge".

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsshellsecuritydocumentation

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add kinzarra/vibetrack --skill review-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Code?

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

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

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: review-code
description: Review a diff or a branch without changing it and return verified findings with file and line, the reason, a proposed fix and a clear verdict. Use for "review this change", "check the diff", "review the branch before merge", "is this safe to merge".
---

# Review code

The result is a verdict and a short list of findings that are true, located and actionable. Five proven problems beat thirty guesses. The review is read-only: no file in the change is edited.

## 1. Set the frame

- Read the task and its acceptance criteria first. The first question is whether the change does what was asked, all of it and nothing else.
- Get the full diff against the base the change will merge into, and the list of changed files. Read the author's report and treat it as a set of claims to check.
- Read the changed code in its surroundings: the whole function, its callers and the tests, not only the changed lines.
- Note the size. A change over about 600 changed lines or one that mixes unrelated things gets that as its first finding.

## 2. Order of attention

Spend the effort in this order and stop polishing when the top of the list has problems.

1. **Correctness**: does it meet each criterion; wrong conditions and off-by-one; null and empty; error paths that swallow or mislabel failures; wrong units, time zones, rounding; behaviour changes for existing callers.
2. **Security**: missing authentication or permission checks on new paths; input reaching a query, a shell, a file path, a template or a URL without validation; secrets in code, logs or responses; unsafe deserialization; new dependencies and their source.
3. **Data loss**: destructive migrations, deletes and updates without a narrow condition, overwrites without a check, missing transactions, irreversible operations without a backup or a rollback path.
4. **Concurrency**: shared state without protection, check-then-act races, double execution on retry, non-idempotent handlers, locks held across slow calls, ordering assumptions.
5. **Failure and load**: unbounded loops, queries inside loops, missing pagination, limits and timeouts, memory growth, resources that are never released.
6. **Tests**: is there a test for each new behaviour and each fixed bug; do the tests assert outcomes; would they fail if the code were wrong; were any tests deleted, skipped or weakened.
7. **Readability and fit**: names, duplication of what already exists in the codebase, dead code, departures from the project's conventions, comments that say what instead of why, documentation left stale.

## 3. Verify every claim

- Do not report from the diff alone. Open the file, follow the call, read the definition. A finding states what was read to confirm it.
- Run what can be run without changing the change: the project's linter, type check and tests. Record the commands and results. A failing check is a blocking finding.
- For a suspected bug, construct the concrete input that triggers it and trace the code with that input. When it is cheap, prove it with a scratch test outside the tracked files, or by running the code.
- Check the author's claims: "all tests pass", "no behaviour change", "backward compatible". Report each as confirmed, refuted or not checkable.
- An unproven suspicion is written as a question, marked as such, and is never blocking.
- Do not raise what the project's formatter or linter already decides, and do not raise personal taste as a defect.

## 4. Finding format

One finding per problem, ordered by severity:

```
[blocking | optional | question] path/to/file:line
What: the problem in one sentence.
Why: the concrete failure, with the input or scenario and its consequence.
Fix: the specific change, as a short description or a few lines of code.
Checked by: what was read or run to confirm it.
```

- **Blocking**: wrong behaviour, a security hole, data loss, a race, a failing check, a missed acceptance criterion, a missing test for risky logic.
- **Optional**: an improvement that can wait, with no risk if left.
- **Question**: something that needs the author's or the owner's answer.

Group repeats: one finding with a list of places, not ten copies.

## 5. Report

1. **Verdict**, one of: approve; approve with optional fixes; request changes; cannot review (say what is missing).
2. **Summary** in 2 to 4 sentences: what the change does and the main reason for the verdict.
3. **Acceptance criteria**: each one met / not met / not verifiable.
4. **Findings**: blocking first, then optional, then questions.
5. **Checks run**: commands and results.
6. **Not reviewed**: files or aspects skipped, and why (generated code, no access, no way to run).

Rules: request changes whenever one blocking finding stands. Do not edit the code under review, do not commit, push or merge; fix only when the task says so. Quote secrets found in the diff by location only, never by value. Review the code, not its author.

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.