code-reviewer

Review local changes and remote pull requests using git and npm scripts.

106k|14.4k|Updated Apr 17, 2025
One-click install
npx skills add https://github.com/google-gemini/gemini-cli --skill code-reviewer-google-gemini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-reviewer
Source: https://github.com/google-gemini/gemini-cli/tree/main/.gemini/skills/code-reviewer
Command: npx skills add https://github.com/google-gemini/gemini-cli --skill code-reviewer-google-gemini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers and AI agents through professional, thorough code reviews for both local changes and remote pull requests, reducing oversights and inconsistencies.

Core Features & Use Cases

  • Target determination: Automatically identify whether to review local changes or a PR by ID or URL.
  • Structured analysis: Evaluate correctness, maintainability, readability, efficiency, security, edge cases, and testability.
  • Feedback generation: Provide actionable, reviewer-style feedback and suggested improvements.

Quick Start

To review your current changes, describe the changes you want evaluated, for example: "Review my staged changes." To review a remote PR, provide the PR URL or number, e.g., "Review PR #123" or "Review https://github.com/org/repo/pull/123".

Frequently Asked Questions about code-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a pull request by URL or ID?

Review a pull request by providing its URL or ID number, like PR #123. The skill checks out the remote PR using gh, inspects the git diff, and generates structured feedback across standardized review pillars.

What is the best way to evaluate staged local changes for correctness and security?

To evaluate local changes, the review analyzes your staged git diff to assess correctness, security, maintainability, readability, efficiency, edge cases, and testability, providing actionable reviewer-style feedback and suggested improvements.

Does this code review skill work with standard git and npm workflows?

Yes, the skill integrates with standard git workflows, using git state inspection and optional gh pr checkout for remote PRs, alongside npm scripts to automate and structure the preflight review process.

Can I use this to review code before submitting a pull request?

Yes, you can review local staged changes before submitting a pull request. The skill performs a preflight evaluation on your git diff, identifying potential issues in testability and edge cases prior to PR creation.

What aspects of a code diff are analyzed during the review?

The review analyzes your code diff across seven standardized pillars: correctness, maintainability, readability, efficiency, security, edge cases, and testability, ensuring comprehensive feedback generation.