github-code-review

Analyze local git diffs and pull request changes for bugs and security issues.

247|22|Updated Dec 11, 2024
One-click install
npx skills add https://github.com/graniet/kheish --skill github-code-review-graniet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-code-review
Source: https://github.com/graniet/kheish/tree/main/skills/github/github-code-review
Command: npx skills add https://github.com/graniet/kheish --skill github-code-review-graniet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manual code reviews are slow, inconsistent, and often miss critical issues like security vulnerabilities or bugs before code is pushed or merged. This skill automates the review process by analyzing git diffs and pull request changes, providing structured, actionable feedback to ensure code quality without the overhead of full manual review for every change.

Core Features & Use Cases

  • Pre-Push Local Review: Analyze staged changes or diffs against the main branch to catch issues like debug statements, secrets, or merge conflicts before you push code.
  • GitHub PR Review: Fetch open PR details, check out PR branches locally for full context, leave inline comments on specific lines, and submit formal approve/request changes reviews via gh CLI or GitHub REST API.
  • Structured Review Checklist: Systematically validate changes against correctness, security, code quality, testing, performance, and documentation standards to catch a wide range of issues.
  • Use Case: A developer can run a pre-push review to catch a SQL injection vulnerability in their local changes before pushing, or a team lead can review an open PR and leave targeted inline feedback without manually parsing the full diff.

Quick Start

Request a pre-push code review of your current branch's changes against the main branch to get a structured list of critical issues, warnings, and improvement suggestions before pushing your code.

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 GitHub pull requests?

Automate pre-push code review by analyzing local git diffs against the main branch to catch debug statements, secrets, and bugs before pushing. The skill validates staged changes using structured checklists for correctness, security, and code quality.

Can I leave inline comments on a GitHub PR diff automatically?

Yes, you can leave inline comments on specific lines of a GitHub PR diff automatically. The skill checks out PR branches locally for full context and submits targeted inline feedback using the gh CLI or GitHub REST API.

Do I need the gh CLI to review pull requests from the command line?

The gh CLI is optional for reviewing pull requests. The skill supports both gh CLI and GitHub REST API for PR interactions and review submission, requiring only authenticated GitHub access and a local git repository to function.

What issues does an automated code review checklist look for?

An automated code review checklist looks for bugs, security vulnerabilities, and code quality issues in git diffs. It systematically validates changes against standards for correctness, security, testing, performance, and documentation.