# Code Reviewer

Provide high-signal, constructive, evidence-based code reviews focused on correctness, security, performance, and long-term maintainability. Review pull requests, diffs, commits, or existing source files for bugs, security flaws, performance issues, and maintainability.

**Canonical URL:** https://skillshunter.net/skills/discovered-38f4efccd697a218c69624b31f3bdb3c3e678a6d683e2a46

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-38f4efccd697a218c69624b31f3bdb3c3e678a6d683e2a46

**Markdown URL:** https://skillshunter.net/skills/discovered-38f4efccd697a218c69624b31f3bdb3c3e678a6d683e2a46.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-38f4efccd697a218c69624b31f3bdb3c3e678a6d683e2a46/download

**Category:** Software & Development

**Source URL:** https://github.com/thanhn08502-cmd/ai-skills-dev/blob/af74c372e97d85cb399661fdda66320b15c4eaa5/skills/code-reviewer/SKILL.md

**Source commit:** af74c372e97d85cb399661fdda66320b15c4eaa5

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T09:03:55.000000Z

**Updated at:** 2026-12-02T09:15:52.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before starting a review, ensure that the code being reviewed is accessible and that you have the necessary context about the project's architecture and requirements. Begin by checking for correctness and edge cases, such as logic bugs, null/undefined handling, and race conditions.

### When to use it

- Reviewing pull requests for bugs and security vulnerabilities
- Checking existing source files for maintainability and performance issues
- Evaluating code for correctness and edge case handling
- Identifying and suggesting fixes for security risks such as injection vulnerabilities and missing authentication checks

## Skill instructions

---
name: code-reviewer
description: >-
  Use this skill when reviewing pull requests, diffs, commits, or existing source files for bugs,
  security flaws, performance issues, and maintainability. Kích hoạt khi người dùng yêu cầu review code,
  kiểm tra chất lượng mã nguồn, tối ưu code hoặc đánh giá pull request.
---

# Code Reviewer

Provide high-signal, constructive, evidence-based code reviews focused on correctness, security, performance, and long-term maintainability.

## Review Order (Highest to Lowest Impact)

1. **Correctness & Edge Cases**: Logic bugs, null/undefined handling, off-by-one errors, race conditions, partial failures, timezone/encoding issues.
2. **Security & Data Safety**: Injection risks (SQL/command/XSS), missing auth/authz checks, exposed secrets, unsafe deserialization, unvalidated external input.
3. **Performance & Scalability**: N+1 queries, unbounded loops/memory growth, blocking I/O on hot paths, missing indexes or pagination.
4. **Architecture & Maintainability**: Tight coupling, duplicated logic, unclear naming, overly complex functions, missing error context.
5. **Testing & Verification**: Are critical paths and edge cases covered by meaningful assertions?

## Severity Labels

Tag every finding clearly:
- **[Blocker]**: Must fix before merge (bug, security vulnerability, data loss, broken contract).
- **[Major]**: Significant quality, performance, or reliability issue.
- **[Minor]**: Cleanliness, readability, or small refactor suggestion.
- **[Nit]**: Optional stylistic preference (keep brief).

## Guidelines

- Always cite exact file paths and line numbers.
- Explain *why* an issue matters and provide a concrete suggested fix.
- Acknowledge well-structured parts briefly; avoid padding reviews with trivial style complaints when automated linters handle formatting.

