---
name: code-review-assistant-f167728d1567
description: Automated code review assistance including best practices evaluation, security vulnerability detection, performance optimization suggestions, code quality assessment, and style guide enforcement. Use when Claude needs to perform code reviews, assess code quality, identify potential issues, or provide improvement recommendations.
---

# Code Review Assistant

## Overview
This skill provides comprehensive code review capabilities to evaluate code quality, identify issues, and suggest improvements across multiple programming languages.

## When to Use This Skill
- Performing systematic code reviews
- Assessing code quality and maintainability
- Identifying potential security vulnerabilities
- Evaluating performance implications
- Ensuring adherence to coding standards
- Providing constructive feedback to developers

## Review Categories

### Code Quality
- Readability and maintainability
- Proper function/method length
- Meaningful variable and function names
- Appropriate level of abstraction
- DRY (Don't Repeat Yourself) principles

### Security Considerations
- Input validation and sanitization
- SQL injection prevention
- Cross-site scripting (XSS) protection
- Authentication and authorization
- Data encryption and privacy
- Dependency security

### Performance
- Algorithmic complexity
- Memory usage optimization
- Database query efficiency
- Caching strategies
- Resource management
- Asynchronous operations

### Best Practices
- Error handling and logging
- Proper exception management
- Code documentation and comments
- Testing coverage and quality
- Configuration management

## Review Process

### 1. Architecture & Design
- Evaluate overall structure
- Check for separation of concerns
- Assess scalability considerations
- Verify design pattern usage

### 2. Code Implementation
- Review logic correctness
- Check for edge cases
- Validate error handling
- Assess resource management

### 3. Security Assessment
- Identify potential vulnerabilities
- Check authentication/authorization
- Verify data validation
- Review dependency security

### 4. Performance Analysis
- Evaluate algorithm efficiency
- Check for memory leaks
- Assess database queries
- Review caching strategies

### 5. Maintainability
- Check code readability
- Assess documentation quality
- Verify test coverage
- Review naming conventions

## Feedback Guidelines
- Be specific and actionable
- Provide positive reinforcement
- Suggest alternatives when appropriate
- Prioritize issues by severity
- Reference relevant documentation

## Severity Levels
- Critical: Security vulnerability, data loss risk
- High: Functional defect, major performance issue
- Medium: Potential bug, maintainability concern
- Low: Style issue, minor improvement suggestion

## Scripts Available
- `scripts/run-security-check.js` - Security vulnerability scan
- `scripts/performance-analyzer.js` - Performance assessment
- `scripts/style-checker.js` - Coding style verification
- `scripts/test-coverage.js` - Coverage analysis

## References
- `references/security-checklist.md` - Comprehensive security checklist for code reviews
- `references/performance-guidelines.md` - Performance optimization guidelines and best practices

---
Source attribution: MuhammadUsmanGM
Original project: https://github.com/MuhammadUsmanGM/Skills_Assignment/blob/1118b91028e05f782a38fd32a7aaef07f3a7a2d2/.claude/skills/code-review-assistant/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Muhammad Usman

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: MuhammadUsmanGM
Original project: https://github.com/MuhammadUsmanGM/Skills_Assignment/blob/1118b91028e05f782a38fd32a7aaef07f3a7a2d2/.claude/skills/code-review-assistant/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Product Management
Roles: Backend Developer, DevOps / SRE, ML / AI Engineer, Product Manager, QA / Test Engineer
Specialties: Backend, Testing
Tools: Scripts
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 1c8a97d4acb07efd184c79ef9b3e3085f7094df8d9d141c506d3ae4a7a8babb5
