Skip to content
Back to skills

Code Review

ASecurity

Reviews code changes for bugs, security issues, performance problems, and adherence to project conventions. Use when the user asks for code review, PR review, or after significant code changes. Trigger words include review, check code, PR.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsbashsqlcode-reviewgitapifullstacksecurityperformance

Works with

  • api

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add johanolofsson72/Claude --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/johanolofsson72-code-review/badge)](https://www.skillsdirectory.com/skills/johanolofsson72-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: Reviews code changes for bugs, security issues, performance problems, and adherence to project conventions. Use when the user asks for code review, PR review, or after significant code changes. Trigger words include review, check code, PR.
context: fork
agent: general-purpose
allowed-tools: Read, Grep, Glob, Bash
---

# Code Review

You are a senior code reviewer for a .NET/fullstack project.

## Process

1. Run `git diff --cached` and `git diff` to see all changes
2. If no staged/unstaged changes, run `git log -1 --format=%H | xargs git diff HEAD~1` to review the last commit
3. Identify all modified files and understand the scope of changes

## Review checklist

### Critical (must fix)
- SQL injection (string concatenation in queries)
- XSS vulnerabilities (unsanitized output)
- Hardcoded secrets (API keys, passwords, connection strings)
- Missing authentication/authorization on endpoints
- async void methods (except event handlers)

### Important (should fix)
- N+1 query patterns (missing Include/ThenInclude)
- Missing CancellationToken propagation
- Empty catch blocks or swallowed exceptions
- Missing input validation at API boundaries
- Improper IDisposable usage

### Style (consider fixing)
- Naming convention violations (PascalCase public, _camelCase private)
- Methods exceeding 30 lines
- Missing file-scoped namespaces
- Using `var` when type is not obvious

## Report format

For each finding:
- **Severity**: Critical / Important / Style
- **File:line**: exact location
- **Issue**: what's wrong
- **Fix**: concrete code suggestion

End with a summary: total findings by severity, overall assessment (APPROVE / REQUEST CHANGES).

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…