uwe-schwarz

code-review

0
0
# Install this skill:
npx skills add uwe-schwarz/skills --skill "code-review"

Install specific skill from multi-skill repository

# Description

Comprehensive code review guidelines for ensuring code quality, security, and maintainability. Use when reviewing pull requests, refactoring code, or ensuring best practices.

# SKILL.md


name: code-review
description: Comprehensive code review guidelines for ensuring code quality, security, and maintainability. Use when reviewing pull requests, refactoring code, or ensuring best practices.
license: MIT
metadata:
author: your-name
version: "1.0.0"


Code Review Skill

Guidelines for thorough and effective code reviews.

When to Apply

Use these guidelines when:
- Reviewing pull requests
- Refactoring existing code
- Conducting code audits
- Ensuring code quality standards

Review Categories

1. Code Quality

  • Check for consistent code style
  • Ensure proper error handling
  • Verify meaningful variable and function names
  • Look for code duplication

2. Security

  • Check for SQL injection vulnerabilities
  • Verify input validation and sanitization
  • Review authentication and authorization logic
  • Check for sensitive data exposure

3. Performance

  • Identify potential performance bottlenecks
  • Check for unnecessary database queries
  • Review algorithm efficiency
  • Look for memory leaks

4. Testing

  • Verify test coverage
  • Check test quality and relevance
  • Ensure edge cases are covered
  • Review mocking and fixtures

5. Documentation

  • Check for code comments
  • Verify README updates
  • Review API documentation
  • Ensure changelog is updated

Review Process

  1. Initial Review
  2. Read through the changes
  3. Understand the purpose
  4. Identify major issues first

  5. Detailed Review

  6. Check each file
  7. Verify logic and implementation
  8. Test if necessary

  9. Final Review

  10. Summarize findings
  11. Provide actionable feedback
  12. Verify fixes if needed

Best Practices

  • Be constructive and respectful
  • Explain the "why" behind comments
  • Suggest improvements, not just problems
  • Acknowledge good work
  • Keep reviews timely

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.