oyi77

code-reviewer

Professional code review skill. Review local changes or PRs for correctness, maintainability, and best practices. Based on playbooks.com community skill.

oyi77 0 Updated 3mo ago
GitHub

Install

npx skillscat add oyi77/1ai-skills/code-reviewer

Install via the SkillsCat registry.

SKILL.md

Code Reviewer Skill

Overview

Perform professional code reviews targeting local changes or remote PRs to improve correctness and maintainability. This skill is based on the popular code-reviewer skill from playbooks.com.

Purpose: Professional code reviews
Scope: Any codebase
Output: Actionable feedback


When to Use

  • Review PRs before merging
  • Review local changes before committing
  • Improve code quality
  • Catch bugs early
  • Ensure best practices

Review Process

1. Gather Context

1. Identify the scope of changes
2. Understand the codebase structure
3. Check related tests
4. Look at dependency changes

2. Analyze Changes

1. Check for correctness
2. Look for edge cases
3. Verify error handling
4. Check security issues
5. Assess performance impact

3. Provide Feedback

1. Categorize issues (blocking, suggested, optional)
2. Provide specific examples
3. Suggest alternatives
4. Acknowledge good patterns

Review Checklist

Correctness

  • Does the code do what it's supposed to?
  • Are edge cases handled?
  • Are there potential runtime errors?
  • Does it handle null/undefined?

Security

  • Input validation
  • SQL injection prevention
  • XSS prevention
  • Authentication/authorization
  • Secrets management

Performance

  • Database queries optimization
  • Memory usage
  • Algorithmic complexity
  • Caching opportunities

Maintainability

  • Code organization
  • Naming conventions
  • Comment quality
  • Function complexity
  • Test coverage

Best Practices

  • Language idioms
  • Framework conventions
  • Design patterns
  • Error handling
  • Logging

Output Format

Summary

## Code Review Summary

### Overall
- **Verdict**: [Approve / Request Changes / Approve with Comments]
- **Issues Found**: X blocking, Y suggested, Z optional

### Files Changed
- [file1.ts] - X changes
- [file2.js] - Y changes

Detailed Feedback

## Issues

### ๐Ÿ”ด Blocking (Must Fix)
1. [File:Line] - Issue description
   - Why it's a problem
   - Suggested fix

### ๐ŸŸก Suggested (Recommended)
1. [File:Line] - Suggestion
   - Rationale
   - Example

### ๐ŸŸข Optional (Nice to Have)
1. [File:Line] - Optional improvement

Integration

With GitHub

1. Run: gh pr view <number> --json body
2. Get diff: gh pr diff <number>
3. Review and comment

With Git

1. Get changes: git diff HEAD~1
2. Analyze code
3. Generate feedback

Best Practices

Do's

โœ… Be specific and actionable
โœ… Provide code examples
โœ… Acknowledge good patterns
โœ… Consider the author's intent
โœ… Focus on important issues

Don'ts

โŒ Don't be nitpicky
โŒ Don't rewrite code without explaining
โŒ Don't ignore context
โŒ Don't forget security


Version History

  • v1.0 (2026-02-27) - Initial creation
    • Based on playbooks.com code-reviewer

Related Skills