github-code-review

Analyze local diffs and GitHub PRs to post inline review comments.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/matthew-johnson/hermes-agent --skill github-code-review-matthew-johnson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-code-review
Source: https://github.com/matthew-johnson/hermes-agent/tree/main/skills/github/github-code-review
Command: npx skills add https://github.com/matthew-johnson/hermes-agent --skill github-code-review-matthew-johnson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers review code changes efficiently by generating structured feedback from diffs and enabling inline comments on GitHub PRs.

Core Features & Use Cases

  • Local pre-push diff review: compare staged changes against the main branch to catch issues before pushing.
  • PR level review: fetch PR details, view diffs, and post inline comments through gh or REST APIs.
  • Standardized review outputs: follow the Hermes Agent checklist (Critical, Warnings, Suggestions) for consistent code quality feedback.

Quick Start

Review a local repo's changes or a GitHub PR end-to-end using Hermes Agent's code-review workflow.

Frequently Asked Questions about github-code-review

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

FAQPage Schema
How do I post inline comments on a GitHub pull request?

To post inline comments on a GitHub pull request, the skill fetches PR diffs and uses gh or REST APIs to submit targeted feedback directly to specific lines of code.

Can I review staged changes locally before pushing to GitHub?

Yes, you can review staged changes locally before pushing by comparing your current branch against the main branch using git to generate a diff and surface actionable feedback.

What do I need to fetch diffs and post comments on GitHub PRs?

You need a Git repository context, valid GitHub authentication, and appropriate tooling like the gh CLI or REST API access to fetch diffs and post comments.

How does code review feedback get structured from a git diff?

Code review feedback from a git diff is structured using the Hermes Agent checklist, categorizing all findings into Critical issues, Warnings, and Suggestions for consistent quality.

What is the best way to automate pull request reviews using gh?

The best way to automate pull request reviews using gh is to fetch PR details and diffs programmatically, analyze the changes, and post inline comments through the API.