PluginBench
Skill
Pass
Audit score 90

code-review-analysis

aj-geddes/useful-ai-prompts

Comprehensive code reviews covering quality, security, performance, and best practices.

What is code-review-analysis?

Perform systematic code reviews following industry standards, checking for code quality, security vulnerabilities, performance issues, and maintainability. Use when reviewing pull requests, analyzing code before merging, or mentoring developers through constructive feedback.

  • Assess code quality and adherence to coding standards
  • Identify security vulnerabilities and potential risks
  • Analyze performance implications and optimization opportunities
  • Review test coverage and testing practices
  • Evaluate maintainability and best practices compliance
  • Provide constructive, respectful feedback with explanations

How to install code-review-analysis

npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill code-review-analysis
Claude Code
Cursor
Windsurf
Cline

How to use code-review-analysis

  1. 1.Run git diff to examine changes between branches
  2. 2.Check file statistics with git diff --stat to understand scope
  3. 3.Review commit history with git log to understand intent
  4. 4.Perform initial assessment of the changes
  5. 5.Conduct code quality analysis using reference guides
  6. 6.Execute security review for vulnerabilities
  7. 7.Evaluate performance implications
  8. 8.Review test coverage and testing practices

Use cases

Good for
  • Review pull requests and merge requests before merging
  • Identify security vulnerabilities in code changes
  • Ensure coding standards and best practices compliance
  • Mentor developers through detailed code review feedback
  • Analyze code quality metrics across feature branches
Who it's for
  • Code reviewers and pull request approvers
  • Development team leads and architects
  • Security-conscious developers
  • Mentors and senior engineers
  • Teams enforcing coding standards

code-review-analysis FAQ

What should I focus on during a code review?

Focus on code quality, security vulnerabilities, performance, maintainability, and best practices. Prioritize important issues over minor style nitpicks, which should be handled by automated tools.

How many lines of code should I review at once?

Avoid reviewing more than 400 lines at once. Larger changes should be split into smaller, more manageable pull requests for thorough review.

How should I provide feedback?

Be constructive and respectful. Explain the 'why' behind suggestions, provide code examples, ask clarifying questions if needed, and acknowledge good practices.

What are the main review categories?

The skill covers initial assessment, code quality analysis, security review, performance review, testing review, and best practices compliance.

Should I block merges on subjective preferences?

No. Focus on objective issues like security, performance, and maintainability. Use automated tools for style issues and avoid blocking on subjective preferences.

Full instructions (SKILL.md)

Source of truth, from aj-geddes/useful-ai-prompts.


name: code-review-analysis description: > Perform comprehensive code reviews with best practices, security checks, and constructive feedback. Use when reviewing pull requests, analyzing code quality, checking for security vulnerabilities, or providing code improvement suggestions.

Code Review Analysis

Table of Contents

Overview

Systematic code review process covering code quality, security, performance, maintainability, and best practices following industry standards.

When to Use

  • Reviewing pull requests and merge requests
  • Analyzing code quality before merging
  • Identifying security vulnerabilities
  • Providing constructive feedback to developers
  • Ensuring coding standards compliance
  • Mentoring through code review

Quick Start

Minimal working example:

# Check the changes
git diff main...feature-branch

# Review file changes
git diff --stat main...feature-branch

# Check commit history
git log main...feature-branch --oneline

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Initial AssessmentInitial Assessment
Code Quality AnalysisCode Quality Analysis
Security ReviewSecurity Review
Performance ReviewPerformance Review
Testing ReviewTesting Review
Best PracticesBest Practices

Best Practices

✅ DO

  • Be constructive and respectful
  • Explain the "why" behind suggestions
  • Provide code examples
  • Ask questions if unclear
  • Acknowledge good practices
  • Focus on important issues
  • Consider the context
  • Offer to pair program on complex issues

❌ DON'T

  • Be overly critical or personal
  • Nitpick minor style issues (use automated tools)
  • Block on subjective preferences
  • Review too many changes at once (>400 lines)
  • Forget to check tests
  • Ignore security implications
  • Rush the review