code-review
Systematically review code changes for security, architectural integrity, and testing standards.
Install
mkdir -p .claude/skills/code-review-james10192 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16490" && unzip -o skill.zip -d .claude/skills/code-review-james10192 && rm skill.zipInstalls to .claude/skills/code-review-james10192
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review code for bugs, security issues, and quality. Use when asked to review code or before creating a PR.Key capabilities
- →Get changes from the current branch against a base branch
- →Check for security issues like hardcoded secrets or SQL injection vulnerabilities
- →Review architecture and patterns for project conventions and single responsibility
- →Assess code quality for function length, DRY principle, and error handling
- →Verify test coverage for new features and bug fixes
- →Check for performance issues like N+1 queries or blocking operations
How it works
The skill retrieves code changes, then systematically checks them against a predefined checklist covering security, architecture, code quality, tests, and performance, categorizing findings by severity.
Inputs & outputs
When to use code-review
- →Review merge request
- →Perform security audit
- →Check code quality
About this skill
Perform a thorough code review of the changes in the current branch.
Step 1 — Get the changes
git diff develop...HEAD
git diff --stat develop...HEAD
If there is no develop branch, use main or master as the base.
Step 2 — Review checklist
Security (CRITICAL — block PR if any found)
- No hardcoded secrets, tokens, or credentials in code
- No SQL string interpolation (use parameterized queries / ORM)
- User input validated before processing
- Authentication/authorization enforced on protected routes
- No sensitive data exposed in API responses (passwords, tokens)
- No
console.log/printof sensitive data
Architecture & Patterns
- Code follows the project's existing conventions (check CLAUDE.md)
- Business logic separated from HTTP/presentation layer
- No circular dependencies introduced
- Functions do one thing (single responsibility)
Code Quality
- Functions < 50 lines
- No duplicated logic (DRY)
- Meaningful variable and function names
- No commented-out code left behind
- Proper error handling (no silent failures, no bare
catch/except) - No unnecessary
anytypes (TypeScript projects)
Tests
- New features have tests
- Bug fixes have regression tests
- Happy path + main error cases covered
Performance
- No obvious N+1 queries
- No blocking operations in async contexts
- Large lists paginated, not fetched all at once
Step 3 — Report
Format your review as:
BLOCKING — Must fix before merge:
- [issue] in
file:line
IMPORTANT — Should fix:
- [issue] in
file:line
SUGGESTIONS — Nice to have:
- [suggestion]
GOOD — What was done well
$ARGUMENTS
When not to use it
- →When the user does not want a code review
- →When the user does not want to create a PR
- →When the changes are not in the current branch
Limitations
- →Relies on `git diff` for changes
- →Requires a `develop`, `main`, or `master` branch as base
- →Checks are based on predefined checklist items
How it compares
This skill provides a structured and automated code review process with specific checks and a categorized report, offering a more consistent and thorough review than a manual inspection.
Compared to similar skills
code-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-review (this skill) | 0 | 7mo | Review | Intermediate |
| github-code-review | 13 | 4mo | Review | Advanced |
| reviewing-code | 21 | 10mo | No flags | Intermediate |
| reviewing-nextjs-16-patterns | 11 | 10mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-code-review
ruvnet
Comprehensive GitHub code review with AI-powered swarm coordination
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
reviewing-nextjs-16-patterns
djankies
Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
find-bugs
davila7
Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.