github-code-review

Review local git diffs and GitHub pull requests with inline commenting.

228k|44.7k|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/NousResearch/hermes-agent --skill github-code-review-nousresearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-code-review
Source: https://github.com/NousResearch/hermes-agent/tree/main/skills/github/github-code-review
Command: npx skills add https://github.com/NousResearch/hermes-agent --skill github-code-review-nousresearch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of reviewing code changes, both locally before pushing and for open pull requests on GitHub, ensuring code quality and catching potential issues early.

Core Features & Use Cases

  • Local Code Review: Analyze staged or unstaged changes against a base branch (e.g., main) to identify common issues like debug statements, secrets, or merge conflicts.
  • Pull Request Review: Fetch and analyze PR details, diffs, and comments directly from GitHub.
  • Inline Commenting: Leave specific feedback directly on lines of code within a PR.
  • Formal Review Submission: Submit full reviews (Approve, Request Changes, Comment) to GitHub.
  • Use Case: Before merging a feature branch, use this Skill to perform a thorough pre-push review of your local changes, identifying potential bugs and style inconsistencies. Then, use it again to review a colleague's pull request, providing detailed inline feedback.

Quick Start

Use the github-code-review skill to review the current local changes against the main branch.

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 review for a GitHub pull request?

Automate code review for a GitHub pull request by fetching PR details and diffs via GitHub CLI or REST API, identifying issues, and submitting structured feedback or formal reviews. It supports inline commenting directly on specific lines of code.

Can I review local git changes before pushing to a remote repository?

You can review local git changes before pushing by running standard git commands to analyze staged or unstaged diffs against a base branch. This identifies common issues like debug statements, secrets, or merge conflicts early.

Does this code review tool support submitting formal review statuses like Approve or Request Changes?

This code review tool supports submitting formal review statuses directly to GitHub. You can submit Approve, Request Changes, or Comment outcomes alongside inline comments after analyzing the pull request diff.

What is the best way to add inline comments to specific lines of code in a GitHub PR?

The best way to add inline comments to specific lines of code in a GitHub PR is by integrating with the GitHub CLI or REST API. This allows you to fetch PR details and leave targeted feedback directly on the diff.

Do I need the GitHub CLI installed to review pull requests locally?

You do not strictly need the GitHub CLI to review pull requests, as the tool integrates with both the GitHub CLI and the REST API for PR interactions. Standard git commands are used independently for local diff analysis.