code-review

Analyze GitHub pull request diffs and generate review comments.

45|6|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/ZhangHanDong/cowork-skills --skill code-review-zhanghandong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/ZhangHanDong/cowork-skills/tree/main/cli/builtin-skills/code-review
Command: npx skills add https://github.com/ZhangHanDong/cowork-skills --skill code-review-zhanghandong

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides AI-assisted code reviews by analyzing GitHub PRs and diffs, reducing review time and improving consistency.

Core Features & Use Cases

  • Fetch PR details and file changes using the GitHub API
  • Analyze diffs to surface quality, security, and performance issues
  • Generate actionable feedback comments and summaries for maintainers
  • Trigger reviews from natural language prompts like "review PR #123" or "code review this PR"
  • Use cases: automate pre-merge checks, mentor junior developers, enforce coding standards

Quick Start

Use the code-review skill to review PR #123 in user/repo. Example: review PR #123 in user/repo

Frequently Asked Questions about code-review

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

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

Automating code reviews for GitHub pull requests involves using the GitHub API to fetch PR data and diffs, then applying AI to analyze file changes and generate actionable feedback comments. This Skill automates that entire process to accelerate pre-merge checks.

What is AI-assisted code review and how does it work with diffs?

AI-assisted code review works by analyzing GitHub PR diffs to surface quality, security, and performance issues. It fetches file changes via the GitHub API, evaluates the code modifications, and generates actionable feedback comments and summaries for maintainers.

Do I need a GitHub token to run AI code reviews on pull requests?

Yes, you need a GitHub token or the gh CLI to run AI code reviews. This Skill requires these credentials to authenticate with and integrate alongside the GitHub API to fetch the pull request data, file diffs, and existing reviews.

Can I trigger a GitHub PR code review using natural language prompts?

Yes, you can trigger a GitHub PR code review using natural language prompts. This Skill processes commands like "review PR #123" or "code review this PR" to automatically fetch the specified pull request details and generate AI-assisted feedback.

What are the best use cases for automating GitHub PR reviews?

The best use cases for automating GitHub PR reviews include automating pre-merge checks, mentoring junior developers, and enforcing coding standards. AI-assisted review analyzes diffs to consistently surface quality, security, and performance issues.

What limitations should I expect when using AI for GitHub code reviews?

When using AI for GitHub code reviews, limitations include reliance on GitHub API access and the quality of the generated diffs. The process requires either the gh CLI or a GitHub token, and AI feedback should be treated as supportive rather than a complete replacement for human maintainers.