code-reviewer Skill (gemini-cli) for Claude: Review Local Changes or a Pull Request
Makes your agent review your local changes or a GitHub pull request and report findings by severity.
- Installs
- 9.7K
- on skills.sh
- Stars
- 108.7K
- on GitHub
- Updated
- Nov 2026
- last repo commit
This skill is a review routine from the Gemini CLI project's own .gemini/skills folder, not a general product skill. For a PR number or URL it checks out the PR with the GitHub CLI. For "review my changes" it reads git status and the staged and unstaged diffs.
It judges seven areas: correctness, maintainability, readability, efficiency, security, edge cases and testability. The report has a summary, findings grouped as Critical, Improvements and Nitpicks, and a conclusion of Approved or Request Changes. For PRs it runs npm run preflight, a script from that project, so it fits repos that define one.
Good for
- Developers who want a review of their diff before they commit
- Maintainers reviewing a pull request by number or URL
- Teams whose repo has an npm preflight script
Install code-reviewer
Claude Code
- 1
Download the skill folder from https://github.com/google-gemini/gemini-cli/tree/HEAD/.gemini/skills/code-reviewer.
- 2
Put it at ~/.claude/skills/code-reviewer/ so that SKILL.md sits directly inside.
- 3
Start a new session; the skill loads when its description matches the task.
Runs gh, git and npm on your own machine, so there is no Claude app upload tab.
Built from the package data we hold. Not yet tested by us.
What's in the skill
When it loads
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
Sections in SKILL.md
- Workflow
- 1. Determine Review Target
- 2. Preparation
- 3. In-Depth Analysis
- 4. Provide Feedback
- 5. Cleanup (Remote PRs only)
Key facts
- Installs on skills.sh
- 9,692 (Nov 2, 2026)
- Last repo commit
- Nov 1, 2026
- What it includes
- 1 file: SKILL.md (no scripts)
What it includes
A PR number or URL means a remote PR, otherwise local changes
1. Determine review targetChecks out the PR with gh, runs npm run preflight, reads the description and comments
The agent runs gh pr checkout <PR_NUMBER>, then npm run preflight, then reads the PR description and existing comments.
Runs code ·
2. Prepare a remote PRReads git status and git diff, optionally asks to run preflight
The agent checks git status and reads git diff and git diff --staged. For substantial changes it asks you before running npm run preflight.
Runs code ·
2. Prepare local changesSeven areas, from correctness to testability
The areas are correctness, maintainability, readability, efficiency, security, edge cases and testability.
3. In-depth analysisSummary, Critical / Improvements / Nitpicks, and a conclusion
SKILL.md asks for a constructive, professional tone that explains why a change is requested.
4. Provide feedbackAsks if you want to switch back to the default branch
Runs code ·
5. Cleanup (remote PRs only)
From the official docs
Permissions
Medium risk
For a pull request the agent checks out the code and runs its preflight script, which can run code you have not read. Review unfamiliar PRs in a clean clone.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It runs the PR's own scripts
For a remote PR SKILL.md checks out the PR and runs npm run preflight, which executes whatever that PR's package defines. Use a throwaway clone for PRs from people you do not know. github.com
It switches your checked-out branch
After a remote PR review it asks whether to switch back to the default branch. Commit or stash your own work before you start. github.com
Technical details
| Turning on read-only | SKILL.md has no read-only mode. |
|---|---|
| Talks to | github.com (gh pr checkout and reading the PR description and comments) |
| Scopes |
|
Questions
What does the code-reviewer skill do?
It makes your agent review code. It can review your staged and working-tree changes or a remote GitHub pull request, and it reports a summary, findings by severity and a recommendation.
Is this an official skill from the Gemini CLI project?
It sits in the Gemini CLI project's own repository, google-gemini/gemini-cli, in the .gemini/skills folder. SKILL.md does not name an author, so the page lists the repo owner. It is written around that project's workflow, such as its npm run preflight script.
What does it need?
For a remote PR it uses the GitHub CLI (gh) and runs npm run preflight. That script comes from the project you review, so the skill suits repos that define one. For local changes it reads git status and the diffs, and preflight is optional.
How do I install it?
Use the install box at the top of this page. There is no Claude app upload tab, because the skill runs gh, git and npm on your machine.
Does it change my code or post to the pull request?
SKILL.md describes the feedback as a report with findings and a recommendation, and lists no step that posts a comment or approves on GitHub. For a remote PR it does check out the PR branch locally, then asks if you want to switch back.
Is it safe to use on a pull request I do not trust?
Be careful. For a remote PR it checks out the PR and runs npm run preflight, which runs scripts from that PR's code. Review untrusted PRs in a throwaway clone or container.
Information
updated Nov 2, 2026
- Repository
- google-gemini/gemini-cli
- Folder
.gemini/skills/code-reviewer
Sources
Docs, issue trackers and discussions this page is built from.
Show all 1Hide
- .gemini/skills/code-reviewer/SKILL.md · github.com