Skip to content
Back to skills

Code Reviewer 18

ASecurity

Comprehensive code review for pull requests and local branch changes. Use when the user requests a code review, asks to review changes, provides a PR URL, or wants feedback on branch modifications. Focuses on logic errors, bugs, error handling, performance, complexity, and project guideline adherence while avoiding formatting nits.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityrustgocode-reviewgitsecurityperformance

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-reviewer-18 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Reviewer 18?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Reviewer 18
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-reviewer-18/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-reviewer-18)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-reviewer
description: Comprehensive code review for pull requests and local branch changes. Use when the user requests a code review, asks to review changes, provides a PR URL, or wants feedback on branch modifications. Focuses on logic errors, bugs, error handling, performance, complexity, and project guideline adherence while avoiding formatting nits.
---

# Code Reviewer

Perform thorough code reviews focused on substantive issues that impact correctness, safety, performance, and maintainability.

## Review Workflow

### 1. Determine Review Scope

**For PR URL:**
- Extract owner, repo, and PR number from URL
- Use GitHub tools to fetch PR details, files, and diff
- Check for project guidelines (AGENTS.md, CLAUDE.md, CONTRIBUTING.md, etc.)

**For Local Branch:**
- Run `git rev-parse --abbrev-ref HEAD` to confirm current branch
- Run `git --no-pager diff main...HEAD` (or master if main doesn't exist) to get changes
- Check for project guidelines in repository root and .github/

### 2. Load Project Context

Check for project-specific guidelines in priority order:
1. `AGENTS.md` or `CLAUDE.md` - AI agent/development guidelines
2. `CONTRIBUTING.md` - Contribution standards
3. `.github/PULL_REQUEST_TEMPLATE.md` - PR requirements
4. Language-specific configs (.eslintrc, .pylintrc, etc.) for critical rules only

Only load guidelines that exist. Use `gh repo view <owner>/<repo> --json name` or local file checks.

### 3. Analyze Changes

Review each changed file against these criteria:

**IN SCOPE - Must/Should Fix:**
- Logic errors and bugs
- Missing error handling for realistic/likely failures
- Performance regressions or inefficiencies
- Unnecessary complexity without justification
- Egregious code duplication (not minor repetition)
- Incomplete implementations
- Violations of project guidelines (AGENTS.md/CLAUDE.md)
- Security vulnerabilities
- Race conditions or concurrency issues
- Resource leaks or improper cleanup

**OUT OF SCOPE - Ignore:**
- Formatting and style (spaces, indentation, line length)
- Import order
- Naming conventions (unless severely misleading)
- Minor nits and preferences
- Subjective improvements without clear benefit

### 4. Structure Feedback

Categorize findings:

**🚨 MUST FIX** - Critical issues:
- Bugs that will cause failures
- Security vulnerabilities
- Data loss/corruption risks
- Breaking changes without migration

**⚠️ SHOULD FIX** - Important issues:
- Missing error handling for likely errors
- Performance problems
- Unjustified complexity
- Guideline violations

**πŸ’‘ CONSIDER** - Suggestions (use sparingly):
- Significant architectural improvements
- Major duplication reduction opportunities

For each issue, provide:
- File and line number
- Clear explanation of the problem
- Concrete fix or approach (not vague suggestions)

### 5. Deliver Review

Format as concise, actionable feedback:

```
## Code Review Summary

**Scope:** [PR #123 | Branch: feature/xyz vs main]
**Files Changed:** X files, Y insertions, Z deletions

### 🚨 MUST FIX (N issues)

**file.js:42**
Issue: [Description]
Fix: [Specific solution]

### ⚠️ SHOULD FIX (N issues)

**file.py:100-105**
Issue: [Description]
Fix: [Specific solution]

### βœ… Overall Assessment
[Brief summary - avoid if no significant issues]
```

## Example Usage

**User:** "Review PR https://github.com/owner/repo/pull/123"
**Action:** Fetch PR β†’ Load guidelines β†’ Analyze diff β†’ Provide categorized feedback

**User:** "Review my current branch"
**Action:** Check branch name β†’ Diff against main β†’ Check local guidelines β†’ Provide feedback

## Guidelines

- Be direct and specific - no hedging or over-politeness
- Provide fixes, not just problem descriptions
- Skip "Overall Assessment" if there are no significant issues
- Don't manufacture issues to fill categories
- Trust the developer's existing style choices
- Focus review time on substantive problems
- Ignore cosmetic issues even if they stand out

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…