review-branch

Reviews branch changes and PR discussions to produce summaries and code review points.

1|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/void2610/dotfiles --skill review-branch-void2610
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: review-branch
Source: https://github.com/void2610/dotfiles/tree/main/.claude/skills/review-branch
Command: npx skills add https://github.com/void2610/dotfiles --skill review-branch-void2610

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually reviewing a branch's commits, diffs, and associated pull request discussions is time-consuming and error-prone. This Skill automates the collection of branch and PR context and produces a structured Japanese-language review report with prioritized findings. ## Core Features & Use Cases - Branch Analysis: Collects commits, changed files, and diffs against main using git commands, then summarizes the purpose and scope of changes. - PR Context Integration: Fetches PR title, description, review status, review comments, and issue-style discussions via the GitHub CLI (gh). - Structured Review Output: Produces review points covering bugs, performance, design, security, and tests, each with file/line references, severity, and suggested fixes. - Use Case: Before merging a feature branch, run this Skill to get a complete overview of the changes, unresolved PR discussions, and a severity-ranked list of code review findings. ## Quick Start Ask the assistant to review the current branch or a named branch, for example: review the feature/login branch and summarize its PR discussions and code review points.

Frequently Asked Questions about review-branch

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

FAQPage Schema
How do I review a git branch before merging a pull request?▼

Run this Skill with an optional branch name argument to check out the branch, collect commits and diffs against main, and fetch linked PR details. It outputs a summary plus severity-ranked review points covering bugs, performance, design, security, and tests.

How to fetch PR review comments using the GitHub CLI?▼

The Skill uses gh pr view for PR metadata and gh api calls to repos/{owner}/{repo}/pulls/{number}/comments for review comments and issues/{number}/comments for discussions. Results include author, body, file path, and line number.

Does this code review skill work without an existing pull request?▼

Yes. If no PR is linked to the branch, the PR information step is skipped and the review is based solely on git data: branch name, commit list, changed files, and the diff against main.

What tools are required to run this branch review workflow?▼

It requires git for branch and diff operations and the GitHub CLI (gh) for PR data. The allowed tools are restricted to git commands and specific gh pr view and gh api endpoints.

What aspects does the automated code review cover?▼

The review covers potential bugs, performance issues like N+1 queries, architecture and naming, security risks such as missing input validation, and test coverage. Each finding includes file and line references, severity, and suggested fixes.