code-review

Identify bugs and design flaws in code through structured reviews.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill code-review-cosmix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/code-review
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill code-review-cosmix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured, actionable code review guidelines to improve correctness, maintainability, and performance.

Core Features & Use Cases

  • Context Gathering: Scoping reviews to relevant files and conventions.
  • Quality & Safety: Detecting logical errors, edge cases, and resource management issues.
  • Performance & Design: Suggestions for DRY, SOLID, and test coverage.

Quick Start

Review a Python module for type hints, docstrings, and potential refactors.

Frequently Asked Questions about code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify bugs and design flaws in pull requests?

Code review systematically examines pull requests for logical errors, edge cases, and design issues. Structured review processes catch bugs before merging, checking correctness, error handling, input validation, and resource management to improve code quality.

What should I look for when reviewing code for maintainability?

Code review evaluates maintainability through adherence to DRY and SOLID principles, test coverage, docstrings, and type hints. This ensures code is readable, modular, and easier for teams to modify and extend over time.

Can code review detect performance issues?

Yes, code review identifies performance concerns by analyzing resource management, thread safety, and algorithmic efficiency. Reviewers spot optimization opportunities and inefficient patterns that impact scalability.

How do I review legacy or unfamiliar codebases effectively?

Code review for unfamiliar codebases uses context gathering to scope relevant files and conventions. This structured approach helps reviewers understand intent, identify inconsistencies, and spot potential bugs without deep prior knowledge.

What's the best way to check for security issues during code review?

Code review detects security gaps by examining input validation, error handling, and resource cleanup. Systematic checks catch common vulnerabilities like improper bounds checking and unhandled edge cases.

Does code review work for repository-wide audits?

Yes, code review applies to repository-wide reviews beyond pull requests. It covers entire codebases to enforce consistency, identify technical debt, and ensure best-practice adherence across projects.