github-code-review

Analyze diffs and post inline feedback to GitHub PRs.

1.2k|116|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/math-inc/OpenGauss --skill github-code-review-math-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-code-review
Source: https://github.com/math-inc/OpenGauss/tree/main/skills/github/github-code-review
Command: npx skills add https://github.com/math-inc/OpenGauss --skill github-code-review-math-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review code changes by analyzing diffs, leaving inline comments on PRs, and performing thorough pre-push review. Works with gh CLI or falls back to git + GitHub REST API via curl.

Core Features & Use Cases

  • Analyze diffs to identify changes and summarize impact
  • Leave inline comments on PRs using gh or REST API
  • Pre-push review workflow with local diffs and PR checks
  • Use case: Review a feature branch before merging into main to ensure quality and consistency

Quick Start

Run the skill to review your current branch against main and generate inline comments and a pre-push report.

Frequently Asked Questions about github-code-review

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

FAQPage Schema
How do I automate code reviews on GitHub pull requests?

Automated code reviews on GitHub pull requests work by analyzing branch diffs to identify changes and posting inline feedback comments directly to the PR using the gh CLI or curl-based REST API.

Can I leave inline comments on a PR using the gh CLI?

Yes, inline comments on a PR can be left using the gh CLI, with an automatic fallback to interacting with the GitHub REST API via git and curl if the CLI is unavailable.

How do I run pre-push code review checks on a local branch?

Pre-push code review checks run on a local branch by analyzing local diffs against the main branch, generating a review report and inline comments to ensure quality before pushing.

Do I need the GitHub CLI installed to automate pull request reviews?

You do not strictly need the GitHub CLI installed to automate pull request reviews, as the workflow can fall back to using git and the GitHub REST API via curl for posting comments.

What is the best way to review a feature branch before merging into main?

The best way to review a feature branch before merging into main is to analyze the diff for impact, perform pre-push checks, and post inline comments on the PR to ensure consistency.