Grow AI Skills Saved
↗ Agent skillCommunity skill

Code Reviewer Skill

Review code changes for concrete defects, maintainability and missing checks.

By Alireza Rezvani·Development

What this skill does

  • Diff analysis

    Inspect a branch comparison or pull-request diff for concrete code changes and risk areas.

  • Language-specific review

    Load shared rules and the relevant language guide instead of applying one generic checklist.

  • Report preparation

    Combine code-quality checks with findings that identify the affected code, impact and verification gaps.

What to provide & what you get

Input
A code diff, repository context and expected behavior
Expected output
A code review with actionable findings and verification gaps

Community source

Upstream source

Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.

Read upstream SKILL.md
File
engineering-team/skills/code-reviewer/SKILL.md
Revision
19392f7a08264ed00486a251f5b2098321771f94

The downloaded SKILL.md text matches this upstream entrypoint. Review the ZIP’s source and license records for the complete packaging details.

Installation

  1. Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only SKILL.md.
  2. Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.

Codex

This project
.agents/skills/code-reviewer/SKILL.md
All your projects
~/.agents/skills/code-reviewer/SKILL.md

Claude Code

This project
.claude/skills/code-reviewer/SKILL.md
All your projects
~/.claude/skills/code-reviewer/SKILL.md
  1. Check the final path. It must match one of the paths above, with one code-reviewer/ folder directly under skills/. Avoid an extra ZIP-name folder around it.
  2. Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.

Before the first run

  • A repository or diff and intended behavior
  • Python 3 for optional repository analysis helpers.

The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.

What's in the download

33 files across 1 skill folder. Includes code-reviewer/SKILL.md and supporting directories:

  • assets/
  • expected_outputs/
  • languages/
  • rules/
  • scripts/

File integrity (SHA256):

fb7fa64f0d4936244431297bed0484fd3729f008c683fa7b0b91abf511d26a7a

How to use

  1. Provide the diff or project directory, base branch and expected behavior.
  2. Ask for a review focused on correctness, security or another explicit priority.
  3. Reproduce important findings and run relevant tests before deciding on changes.

Try it in your agent

Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.

Codex

Use $code-reviewer.

 Review this diff for actionable defects. Give the triggering case and file location for each finding.

Claude Code

/code-reviewer

 Review this diff for actionable defects. Give the triggering case and file location for each finding.

Check the result: Automated checks can locate candidates but do not replace contextual review of the actual behavior.

Recorded Codex example · 2026-11-09

Review a five-line Python cart function

This example uses a synthetic input. The input and actual output are retained below.

Input

def add_item(sku: str, quantity: int, items: list | None = []) -> list:
    if quantity < 0:
        raise ValueError("quantity must be positive")
    items.append({"sku": sku, "quantity": quantity})
    return items

Actual Codex output

## Findings

1. [P1] Give each new cart its own list (cart.py, line 1). The default list is created once and reused. Calling add_item("A", 1) and then add_item("B", 2) returns the same list for both calls, so the second cart contains the first cart's item. Use a None default and create a fresh list inside the function when no list is supplied.

2. [P2] Reject a zero quantity (cart.py, line 2). The required contract says quantity must be positive, but quantity < 0 accepts zero. Calling add_item("A", 0, []) appends an invalid zero-quantity item. Reject quantity <= 0 and retain a regression case for zero.

3. [P2] Handle the declared None input (cart.py, line 4). The annotation explicitly permits None, but add_item("A", 1, None) reaches items.append and raises AttributeError. Initialize a list when items is None, as in the fix for the shared default.

These findings concern the supplied five-line fixture and its stated contract. No live checkout or customer data was used. The reproduction record checks the failing behavior; it does not show a corrected implementation.

Checks for this example

  • Python reproduced the shared default list across two carts.
  • A zero quantity was accepted, contrary to the stated contract.
  • The declared None input raised AttributeError. No corrected implementation was run.
How this example was run

Instructions were read explicitly from the retained download package and applied in the current Codex desktop authoring session. Automatic discovery, a separate installation, other agents and a no-skill comparison were not tested.

Keep exploring

Related skills & prompts

Browse this category ↗

Learn by doing

Guides for your next task

Browse practical guides ↗