Skip to content
Back to search

code-review

Google's Code Review extension for the Gemini CLI that reviews your code changes

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/gemini-cli-extensions--code-review/badge.svg)](/listings/gemini-cli-extensions--code-review)

HTML

<a href="/listings/gemini-cli-extensions--code-review"><img src="/api/listings/gemini-cli-extensions--code-review/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Install the Code Review extension by running the following command from your terminal *(requires Gemini CLI v0.4.0 or newer)*:

gemini extensions install https://github.com/gemini-cli-extensions/code-review

If you do not yet have Gemini CLI installed, or if the installed version is older than 0.4.0, see [Gemini CLI installation instructions](https://github.com/google-gemini/gemini-cli?tab=readme-ov-file#-installation).

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 41 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Gemini CLI Code Review Extension
  2. The Code Review extension is an open-source Gemini CLI extension, built to enhance your repository's code quality. The extension adds a new command to Gemini CLI that analyzes code changes to identify a variety of code quality issues.
  3. This extension is brought to you by the authors of the [Gemini Code Assist GitHub App](https://github.com/apps/gemini-code-assist), which provides code reviews directly in your GitHub pull requests.
  4. ## Installation
  5. Install the Code Review extension by running the following command from your terminal *(requires Gemini CLI v0.4.0 or newer)*:
  6. ```bash
  7. gemini extensions install https://github.com/gemini-cli-extensions/code-review
  8. ```
  9. If you do not yet have Gemini CLI installed, or if the installed version is older than 0.4.0, see
  10. [Gemini CLI installation instructions](https://github.com/google-gemini/gemini-cli?tab=readme-ov-file#-installation).
  11. ## Use the extension
  12. ### Reviewing code changes
  13. The Code Review extension adds the `/code-review` command to Gemini CLI which analyzes code changes on your current branch for quality issues.
  14. ### Reviewing a pull request
  15. The Code Review extension adds the `/pr-code-review` command to Gemini CLI which analyzes code changes on your pull request for quality issues.
  16. To use this extension for a pull request, you need to [enable](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md) the [github mcp server](https://github.com/github/github-mcp-server), and provide pull request information. You can either provide through `/pr-code-review link/to/pull/request` or by [configuring](https://github.com/google-gemini/gemini-cli/blob/main/docs/reference/configuration.md#environment-variables-and-env-files) the following environment variables:
  17. - `REPOSITORY`: The github repository which contains the pull request.
  18. - `PULL_REQUEST_NUMBER`: The pull request number that need the code review.
  19. - `ADDITIONAL_CONTEXT`: Additional context or specific area that should focus on.
  20. ## Resources
  21. - [Gemini CLI extensions](https://github.com/google-gemini/gemini-cli/blob/main/docs/extensions/index.md): Documentation about using extensions in Gemini CLI
  22. - [Blog post](https://blog.google/technology/developers/gemini-cli-extensions/): Announcement of Gemini CLI Extensions
  23. - [GitHub issues](https://github.com/gemini-cli-extensions/code-review/issues): Report bugs or request features
  24. ## Legal
  25. - License: [Apache License 2.0](https://github.com/gemini-cli-extensions/code-review/blob/main/LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.