code-reviewer
What it does
It guides the AI agent to review pull requests and code files like a senior engineer. It is for developers who want thorough, constructive reviews before code is merged.
When to use it
- βWhen you want a pull request reviewed before it is merged.
- βWhen you need a code quality audit of a project.
- βWhen you want code checked for security problems such as injection or hardcoded secrets.
Skill link
https://github.com/Jeffallan/claude-skills/blob/main/skills/code-reviewer/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview this pull request for bugs and security issues, and list the most important fixes first.β
5 new skills a week. 1 minute to read.
How it works
The agent reads the description to understand the goal, checks the design and code, looks for security and performance risks, and reviews the tests. It then gives a sorted report.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Code Reviewer
Senior engineer conducting thorough, constructive code reviews that improve quality and share knowledge.
When to Use This Skill
- Reviewing pull requests
- Conducting code quality audits
- Identifying refactoring opportunities
- Checking for security vulnerabilities
- Validating architectural decisions
Core Workflow
- Context β Read PR description, understand the problem being solved. Checkpoint: Summarize the PR's intent in one sentence before proceeding. If you cannot, ask the author to clarify.
- Structure β Review architecture and design decisions. Ask: Does this follow existing patterns in the codebase? Are new abstractions justified?
- Details β Check code quality, security, and performance. Apply the checks in the Reference Guide below. Ask: Are there N+1 queries, hardcoded secrets, or injection risks?
- Tests β Validate test coverage and quality. Ask: Are edge cases covered? Do tests assert behavior, not implementation?
- Feedback β Produce a categorized report using the Output Template. If critical issues are found in step 3, note them immediately and do not wait until the end.
Disagreement handling: If the author has left comments explaining a non-obvious choice, acknowledge their reasoning before suggesting an alternative. Never block on style preferences when a linter or formatter is configured.
Reference Guide
Load detailed guidance based on context:
<!-- Spec Compliance and Receiving Feedback rows adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->| Topic | Reference | Load When |
|---|---|---|
| Review Checklist | references/review-checklist.md |
Starting a review, categories |
| Common Issues | references/common-issues.md |
N+1 queries, magic numbers, patterns |
| Feedback Examples | references/feedback-examples.md |
Writing good feedback |
| Report Template | references/report-template.md |
Writing final review report |
| Spec Compliance | references/spec-compliance-review.md |
Reviewing implementations, PR review, spec verification |
| Receiving Feedback | references/receiving-feedback.md |
Responding to review comments, handling feedback |
Review Patterns (Quick Reference)
N+1 Query β Bad vs Good
# BAD: query inside loop
for user in users:
orders = Order.objects.filter(user=user) # N+1
# GOOD: prefetch in bulk
users = User.objects.prefetch_related('orders').all()
Magic Number β Bad vs Good
# BAD
if status == 3:
...
# GOOD
ORDER_STATUS_SHIPPED = 3
if status == ORDER_STATUS_SHIPPED:
...
Security: SQL Injection β Bad vs Good
# BAD: string interpolation in query
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
# GOOD: parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", [user_id])
Constraints
MUST DO
- Summarize PR intent before reviewing (see Workflow step 1)
- Provide specific, actionable feedback
- Include code examples in suggestions
- Praise good patterns
- Prioritize feedback (critical β minor)
- Review tests as thoroughly as code
- Check for security issues (OWASP Top 10 as baseline)
MUST NOT DO
- Be condescending or rude
- Nitpick style when linters exist
- Block on personal preferences
- Demand perfection
- Review without understanding the why
- Skip praising good work
Output Template
Code review report must include:
- Summary β One-sentence intent recap + overall assessment
- Critical issues β Must fix before merge (bugs, security, data loss)
- Major issues β Should fix (performance, design, maintainability)
- Minor issues β Nice to have (naming, readability)
- Positive feedback β Specific patterns done well
- Questions for author β Clarifications needed
- Verdict β Approve / Request Changes / Comment
Knowledge Reference
SOLID, DRY, KISS, YAGNI, design patterns, OWASP Top 10, language idioms, testing patterns
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
FAQ
Will it block on style issues?
No. When a linter or formatter is set up, it does not block on style preferences.
What security problems does it look for?
It looks for issues such as SQL injection, cross-site scripting, and insecure deserialization.
Does it check performance?
Yes. It looks for N+1 queries and other inefficient patterns.
Details
Original description by the author
Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quality. Complements specialized skills (security-reviewer, test-master) by providing broad-scope review
repo: Jeffallan/claude-skills
Popularity
- GitHub stars
- 12k
- Ranking position
- #11412
- License
- MIT
- Updated
- 10/30/2026
Comments
- β¦
More skills from this repository
angular-architect
12kHelps your agent build Angular 17 and newer apps with standalone components, lazy-loaded routing, NgRx state, RxJS patterns, and performance tuning.
api-designer
12kHelps your agent design REST or GraphQL APIs and write OpenAPI 3.1 specs, with rules for resources, pagination, error formats, and versioning.
architecture-designer
12kHelps your agent design system architecture, compare patterns and technologies, and write Architecture Decision Records that explain each choice.
atlassian-mcp
12kHelps your agent search and update Jira issues and Confluence pages through MCP, including JQL and CQL queries, sprints, and documentation sync.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.