Skip to content
Back to skills

Code Review 109

ASecurity

Reviews code changes for bugs, style issues, and best practices. Use when looking for errors or improving code quality.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 27, 2026
code-qualitycode-reviewbackendperformance

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-review-109 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review 109?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review 109
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-review-109/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-review-109)

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, style issues, and best practices. Use when looking for errors or improving code quality.
---

# Code Review Skill

When reviewing code, systematically check the following areas:

## 1. Correctness & Logic

- **Boundary Conditions**: Are edge cases (empty lists, None values, zero division) handled?
- **Error Handling**: Are exceptions caught specifically? (No bare `except:`).
- **Type Safety**: Do function signatures match their usage?

## 2. Architecture & Design

- **Single Responsibility**: Does the function/class do one thing?
- **Coupling**: Are dependencies manageable? (e.g., UI code shouldn't import low-level processors directly if possible).
- **Resource Management**: Are files and GPU memory released properly? (Look for `try...finally` or context managers).

## 3. Style & Conventions

- **Naming**: Do names reflect intent? (e.g., `pnm_adjacency` vs `adjacency`).
- **Docstrings**: Are complex logic blocks explained?
- **Imports**: Are imports grouped and sorted?

## 4. Performance (Specific to CT/Volume Data)

- **Vectorization**: Is `numpy`/`cupy` used instead of explicit loops?
- **Memory**: Are large arrays copied unnecessarily?
- **GPU Usage**: Is generic `try-import` used for optional GPU backends?

## Output Format

Provide feedback in a structured list:

- **Severity**: [Critical/Major/Minor]
- **File**: [Filename]
- **Issue**: [Description]
- **Suggestion**: [Proposed Fix]

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…