code-reviewer
A technology-agnostic tool for systematic code reviews, using project-specific constraints and severity levels.
Install
mkdir -p .claude/skills/code-reviewer-diegosouzapw && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17059" && unzip -o skill.zip -d .claude/skills/code-reviewer-diegosouzapw && rm skill.zipInstalls to .claude/skills/code-reviewer-diegosouzapw
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.
Code review methodology, severity classification, and quality assessment patternsKey capabilities
- →Perform multi-pass code reviews for correctness
- →Assess security vulnerabilities in code
- →Evaluate code maintainability and organization
- →Identify performance concerns and optimizations
- →Classify issues by severity (critical, major, minor, info)
- →Provide constructive feedback using a structured template
How it works
This skill conducts systematic code reviews through multiple passes focusing on correctness, security, maintainability, and performance. It loads project-specific constraints, classifies identified issues by severity, and provides structured feedback.
Inputs & outputs
When to use code-reviewer
- →Identify logic errors and edge cases
- →Perform security vulnerability assessment
- →Review code for maintainability and complexity
- →Optimize performance and resource usage
About this skill
Code Reviewer
A technology-agnostic skill for systematic code review and quality assessment.
Configuration
Review constraints are loaded from .claude/config.yaml → .constraints section.
Project-specific rules should be defined as natural language constraints.
Review Methodology
Systematic Review Process
process: structured_review
description: "Multi-pass review for comprehensive coverage"
passes:
1_correctness:
focus: "Does the code do what it's supposed to?"
checks:
- Logic errors
- Edge cases
- Error handling
- Business rule compliance
2_security:
focus: "Are there security vulnerabilities?"
checks:
- Input validation
- Authentication/authorization
- Data exposure
- Injection vulnerabilities
3_maintainability:
focus: "Is the code maintainable?"
checks:
- Naming clarity
- Code organization
- Documentation
- Complexity (cyclomatic)
4_performance:
focus: "Are there performance concerns?"
checks:
- Algorithm efficiency
- Resource usage
- Query optimization
- Caching opportunities
Severity Classification
Issue Severity Levels
severity_levels:
critical:
description: "Must fix before merge"
examples:
- Security vulnerabilities
- Data loss risk
- Production-breaking bugs
action: "BLOCK merge"
major:
description: "Should fix before merge"
examples:
- Logic errors
- Missing error handling
- Performance issues
action: "Request changes"
minor:
description: "Should fix, but can merge"
examples:
- Code style violations
- Minor inefficiencies
- Documentation gaps
action: "Suggest improvement"
info:
description: "Suggestions for improvement"
examples:
- Alternative approaches
- Refactoring opportunities
- Best practices
action: "Comment only"
Review Checklists
Security Review Checklist
security_checklist:
input_validation:
- "All user inputs validated?"
- "SQL injection prevention?"
- "XSS prevention?"
- "Path traversal prevention?"
authentication:
- "Auth checks on all protected routes?"
- "Session management secure?"
- "Password handling correct?"
data_protection:
- "Sensitive data encrypted?"
- "PII handling compliant?"
- "Logs sanitized?"
authorization:
- "Role-based access enforced?"
- "Resource ownership verified?"
- "Privilege escalation prevented?"
Code Quality Checklist
quality_checklist:
readability:
- "Variable names descriptive?"
- "Functions single-purpose?"
- "Comments explain why, not what?"
- "Magic numbers replaced with constants?"
structure:
- "DRY principle followed?"
- "Appropriate abstraction level?"
- "Dependencies minimized?"
- "Cyclomatic complexity acceptable?"
error_handling:
- "All error cases handled?"
- "Errors logged appropriately?"
- "User-facing errors clear?"
- "No silent failures?"
testing:
- "New code has tests?"
- "Edge cases covered?"
- "Tests are meaningful (not just coverage)?"
Review Feedback Patterns
Constructive Feedback Template
feedback_structure:
what: "Describe the issue clearly"
why: "Explain why it's a problem"
how: "Suggest a solution or alternative"
severity: "Classify the severity"
example:
what: "This function catches all exceptions silently"
why: "Silent failures hide bugs and make debugging difficult"
how: "Log the exception and re-throw or handle specifically"
severity: "major"
Feedback Tone Guidelines
tone_guidelines:
do:
- Ask questions rather than make accusations
- Focus on the code, not the person
- Acknowledge good patterns when seen
- Provide actionable suggestions
avoid:
- "Why would you do this?"
- "This is wrong"
- "Obviously you should..."
- Sarcasm or condescension
Review Metrics
Quality Score Calculation
quality_scoring:
categories:
correctness: 30
security: 25
maintainability: 25
performance: 20
calculation:
base_score: 100
deductions:
critical_issue: -25
major_issue: -10
minor_issue: -3
info_issue: 0
thresholds:
excellent: 90-100
good: 75-89
acceptable: 60-74
needs_work: 40-59
poor: 0-39
Integration
Used By Agents
primary_users:
- quality-reviewer: "Core review methodology"
secondary_users:
- code-developer: "Self-review before submission"
- deliverable-evaluator: "Quality assessment criteria"
When not to use it
- →When only mechanical formatting or linting issues need fixing without deeper review
Limitations
- →The skill relies on `.claude/config.yaml` for project-specific constraints.
- →The skill does not automatically fix code; it provides feedback and suggestions.
- →The skill does not cover all possible code quality metrics beyond those listed in checklists.
How it compares
This workflow offers a structured, multi-faceted code review process with predefined severity classifications and feedback templates, ensuring complete assessment and consistent communication, unlike an unstructured or ad-hoc code revi
Compared to similar skills
code-reviewer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-reviewer (this skill) | 0 | 5mo | No flags | Intermediate |
| find-bugs | 5 | 7mo | No flags | Intermediate |
| tech-debt-analyzer | 5 | 9mo | Review | Intermediate |
| static-analysis | 5 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by diegosouzapw
View all by diegosouzapw →You might also like
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.
tech-debt-analyzer
ailabs-393
This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.
static-analysis
gmh5225
Expertise in LLVM-based static analysis including dataflow analysis, pointer analysis, taint tracking, and program verification. Use this skill when implementing security scanners, bug finders, code quality tools, or performing program analysis research.
agent-code-analyzer
ruvnet
Agent skill for code-analyzer - invoke with $agent-code-analyzer
codex-code-review
tyrchen
Perform comprehensive code reviews using OpenAI Codex CLI. This skill should be used when users request code reviews, want to analyze diffs/PRs, need security audits, performance analysis, or want automated code quality feedback. Supports reviewing staged changes, specific files, entire directories, or git diffs.
review-code
catlog22
Multi-dimensional code review with structured reports. Analyzes correctness, readability, performance, security, testing, and architecture. Triggers on "review code", "code review", "审查代码", "代码审查".