Skip to content
Back to skills

Code Review

ASecurity

Perform five-axis code reviews covering correctness, readability, architecture, security, and performance. Use when reviewing PRs, code changes, or evaluating code quality.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
developmentsqltestingcode-reviewdatabasesecurityperformance

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add hoangNguyenAngelhack/ai-agent-setup --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/hoangnguyenangelhack-code-review/badge)](https://www.skillsdirectory.com/skills/hoangnguyenangelhack-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: Perform five-axis code reviews covering correctness, readability, architecture, security, and performance. Use when reviewing PRs, code changes, or evaluating code quality.
license: MIT
metadata:
  author: angelhack
  version: "1.3.5"
---

# Five-Axis Code Review

Comprehensive code review framework for production-quality code.

## Impact Levels

| Level | Description |
|-------|-------------|
| **CRITICAL** | Must fix - blocks merge |
| **MAJOR** | Should fix - significant issue |
| **MINOR** | Nice to fix - code quality |
| **NIT** | Optional - style preference |

## The Five Axes

### 1. Correctness (CRITICAL)

- Does the code work as intended?
- Are edge cases handled?
- Does it match the specification/requirements?
- Are there potential bugs or logic errors?

```
Questions to ask:
- What happens with null/undefined inputs?
- What happens with empty arrays/objects?
- Are boundary conditions handled?
- Is error handling comprehensive?
```

### 2. Readability (MAJOR)

- Can others understand this code easily?
- Are names descriptive and consistent?
- Is the code structure logical?
- Are complex parts documented?

```
Questions to ask:
- Would a new team member understand this?
- Are functions focused and well-named?
- Is there unnecessary complexity?
- Are comments explaining WHY, not WHAT?
```

### 3. Architecture (MAJOR)

- Does it follow established patterns?
- Are abstractions appropriate?
- Is the code modular and reusable?
- Are dependencies managed well?

```
Questions to ask:
- Does this belong in this layer/module?
- Is there code duplication?
- Are interfaces clean and minimal?
- Does it violate SOLID principles?
```

### 4. Security (CRITICAL)

- Is user input validated?
- Are secrets properly handled?
- Is authentication/authorization correct?
- Are there injection vulnerabilities?

```
Questions to ask:
- Can user input cause harm?
- Are passwords/tokens exposed in logs?
- Is access control enforced?
- Are SQL queries parameterized?
```

### 5. Performance (MAJOR)

- Are there N+1 queries?
- Is pagination used for lists?
- Are expensive operations cached?
- Are there memory leaks?

```
Questions to ask:
- How does this scale with data size?
- Are database queries optimized?
- Is caching appropriate?
- Are async operations handled correctly?
```

## Review Process

### Step 1: Understand Context

```
- What problem does this PR solve?
- What's the expected behavior?
- Are there related issues/PRs?
```

### Step 2: Review Changes

```
For each file:
1. Understand the purpose of changes
2. Check each axis
3. Note issues with severity (critical/major/minor/nit)
```

### Step 3: Provide Feedback

```
Format:
[SEVERITY] File:Line - Description

Examples:
[CRITICAL] auth.ts:45 - SQL injection vulnerability
[MAJOR] user-service.ts:23 - Missing error handling
[MINOR] utils.ts:12 - Variable name could be clearer
[NIT] config.ts:5 - Inconsistent spacing
```

## Common Issues Checklist

### Security
- [ ] No hardcoded secrets
- [ ] Input validation present
- [ ] Auth checks on protected routes
- [ ] No sensitive data in logs
- [ ] SQL injection prevented

### Performance
- [ ] No N+1 queries
- [ ] Pagination for lists
- [ ] Appropriate caching
- [ ] No memory leaks
- [ ] Async operations correct

### Code Quality
- [ ] Functions < 30 lines
- [ ] Clear naming
- [ ] No code duplication
- [ ] Error handling present
- [ ] Types are specific (no `any`)

### Testing
- [ ] Tests cover happy path
- [ ] Tests cover error cases
- [ ] Tests are maintainable
- [ ] No flaky tests

## Review Output Format

```markdown
## Summary
[1-2 sentence overview of the changes]

## Correctness
- [Findings]

## Readability
- [Findings]

## Architecture
- [Findings]

## Security
- [Findings]

## Performance
- [Findings]

## Verdict
[ ] Approve
[ ] Request Changes
[ ] Comment

## Action Items
1. [Critical issues to fix]
2. [Major issues to address]
```

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 development →

Comments

Loading comments…

Newsletter

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