code-reviewer

Reviews local git changes and remote GitHub pull requests for correctness and maintainability.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/bkrsna/gemini-cli --skill code-reviewer-bkrsna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-reviewer
Source: https://github.com/bkrsna/gemini-cli/tree/main/.gemini/skills/code-reviewer
Command: npx skills add https://github.com/bkrsna/gemini-cli --skill code-reviewer-bkrsna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing code changes consistently is time-consuming, and feedback quality varies across reviewers. This Skill provides a structured, repeatable review workflow for both local uncommitted changes and remote GitHub Pull Requests, covering correctness, security, performance, and test coverage. ## Core Features & Use Cases - Dual Review Targets: Reviews local staged or working-tree changes via git diff, or remote Pull Requests by number or URL using the GitHub CLI. - Structured Feedback: Produces findings categorized as Critical, Improvements, and Nitpicks, ending with a clear Approved or Request Changes recommendation. - Preflight Integration: Runs the project's npm preflight verification suite before reviewing remote PRs to catch automated failures early. - Use Case: A teammate asks you to review PR #123. The Skill checks out the PR with gh, runs preflight checks, analyzes the diff across seven quality pillars, and returns structured, constructive feedback. ## Quick Start Review my current local changes and give me structured feedback on correctness, security, and test coverage.

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 GitHub pull request from the command line?

Provide the PR number or URL, and the Skill checks it out using gh pr checkout, runs the project's npm preflight suite, then analyzes the diff. Feedback is returned as Critical issues, Improvements, and Nitpicks with a final recommendation.

How to review local uncommitted git changes before pushing?

Ask to review your changes without mentioning a PR. The Skill inspects git status, git diff for the working tree, and git diff --staged for staged changes, then evaluates them against correctness, security, and testability criteria.

Does the code review check for security vulnerabilities?

Yes, security is one of the seven analysis pillars. The review examines changes for potential vulnerabilities and insecure coding practices, alongside correctness, efficiency, edge cases, and error handling.

What happens after a remote pull request review finishes?

After delivering feedback, the Skill asks whether you want to switch back to the default branch such as main or master, since the PR was checked out locally during the review process.

When should I run preflight checks during a code review?

Preflight runs automatically for remote PR reviews to catch automated failures early. For local changes, it is optional and only suggested when the changes are substantial, with your confirmation first.