Skip to content
Back to skills

Code Review

ASecurity

Comprehensive pre-merge review protocol auditing correctness, security, edge cases, and code hygiene.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentspythongoshellsqlcode-reviewapisecurity

Works with

  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add 4LPH7/Hive_Mind --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/4lph7-code-review/badge)](https://www.skillsdirectory.com/skills/4lph7-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: Comprehensive pre-merge review protocol auditing correctness, security, edge cases, and code hygiene.
triggers:
  - code review
  - review code
  - review pr
  - review diff
  - audit diff
  - audit changes
  - pre-commit review
  - check bugs
  - security audit
---

# Code Review Protocol

Execute before declaring any task complete or submitting a branch/commit:

## 1. Correctness & Logic
- Check boundary conditions (empty collections, 0/1 limits, off-by-one errors).
- Verify error handling and fail-open/fail-closed semantics.
- Confirm state consistency across concurrency boundaries.

## 2. Security & Traversal Guards
- Path safety: Ensure all file paths canonicalized (`Path.resolve()` + `os.path.normcase`).
- Injection: Verify zero unescaped command interpolation, shell injection, or SQL formatting.
- Secret leaks: Confirm zero API keys, tokens, or credentials in diffs or test logs.

## 3. Style & Slop Hygiene
- Strip redundant AI commentary ("Loop over items", "Return result").
- Ensure error messages are structured, informative, and actionable.
- Verify zero dead code, orphaned imports, or debug prints left in production files.

## 4. Test Proof
- Verify every changed branch has an automated regression test.
- Run complete test suite (`cargo test`, `python -m unittest discover`).

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.