Skip to content
Back to skills

Review

ASecurity

Review a change like the person who gets paged when it breaks - read the code the change touches, not only the diff, and report bugs, security holes, behaviour under real load, risky logic without a test, slow paths, and code that can be cut, each with what goes wrong, how to fix it and what happens if it is left. Use when the user says "review this", "review my change", "review the diff", "look over this PR", "is this safe to merge", before a merge or a release, and after a subagent hands ba...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgoshellsqlgitsecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mohamedbechirkefi/mandatum --skill review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review?

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

Security grade badge for Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mohamedbechirkefi-review/badge)](https://www.skillsdirectory.com/skills/mohamedbechirkefi-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: review
description: Review a change like the person who gets paged when it breaks - read the code the change touches, not only the diff, and report bugs, security holes, behaviour under real load, risky logic without a test, slow paths, and code that can be cut, each with what goes wrong, how to fix it and what happens if it is left. Use when the user says "review this", "review my change", "review the diff", "look over this PR", "is this safe to merge", before a merge or a release, and after a subagent hands back code.
argument-hint: "[file, commit range or PR; default: the uncommitted diff]"
---

# Review a change

Target: $ARGUMENTS (default: `git diff` plus staged and untracked files).

A diff shows what changed. Most breakage happens where the diff does not look: a renamed
field that a file outside the diff still reads, a new code path that skips validation
the old one had, a loop that is fine for ten rows and not for ten thousand.

## 1. Read past the diff

- List every symbol the change adds, renames, removes or changes the meaning of.
- For each one, find what uses it: `mandatum graph callers <name>` when the project has
  a graph (`mandatum graph build` makes one), otherwise `grep -rn`. Read those call
  sites, even in files the change did not touch.
- Trace one real request or data flow through the changed code, from where input enters
  to where it is stored or returned.

## 2. Check, in this order

1. **Correctness.** Does it do what the task said, for the edge cases the input can
   really take (empty, missing, duplicate, very large, wrong type, other locale)?
2. **Breakage outside the diff.** Callers that now get a different shape, a removed
   default, a changed error, a changed order.
3. **Security.** Input that crosses a trust boundary without validation, injection (SQL,
   shell, path, HTML), secrets in code or logs, permissions checked on one path and not
   another.
4. **Data loss.** Writes that can half-succeed, errors swallowed on the way to storage,
   destructive defaults.
5. **Real load.** Work inside loops, queries per row, unbounded reads into memory,
   missing timeouts on network calls.
6. **Tests.** Logic with a branch, a loop, a parser, money, permissions or user input
   and no test that would fail if it broke.
7. **What to cut.** Code the task did not need: a helper the repository already has, a
   dependency the standard library replaces, dead branches, speculative options.

## 3. Report

Rank findings: **must fix**, **should fix**, **could cut**. For each:

- **Where:** `file:line`.
- **What the code does** in one sentence.
- **What goes wrong**, concretely: the input or sequence that triggers it.
- **The fix**, as small as it can be.
- **If it is left:** what the user or the owner will see.

Then say what you did not check (a language you could not run, a service you could not
reach, load you could not generate). A review that reports nothing must say what it
read; "no findings" from reading only the diff is not a review.

Fix nothing in this skill unless the owner asks. When fixing, use `/mandatum:build`, one
finding at a time, each with its check. For a second opinion with fresh context, hand
the change to the `refuter` agent.

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.