code-review

Automates GitHub pull request reviews with inline comments and summaries via GitHub Actions workflow.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/nsheaps/ai-mktpl --skill code-review-nsheaps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/nsheaps/ai-mktpl/tree/main/plugins/scm-utils/skills/code-review
Command: npx skills add https://github.com/nsheaps/ai-mktpl --skill code-review-nsheaps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automated, consistent, and structured pull request reviews are time-consuming and inconsistent when done manually; this Skill streamlines PR review by running Claude Code in GitHub Actions to produce inline feedback, summaries, and actionable verdicts so maintainers get faster, repeatable code review coverage.

Core Features & Use Cases

  • Automated GitHub Actions workflow: Triggers on PR events and labels to run an automated review agent.
  • Structured inline feedback: Posts pending reviews, inline comments, and a collapsible summary with shields.io badges for quality metrics.
  • GitHub App authentication & permissions: Uses a GitHub App for posting reviews and managing labels, and requires repository secrets for credentials and Anthropic/Claude API access.
  • Concurrency and comment management: Uses concurrency groups to avoid overlapping reviews and GraphQL/gh commands to manage previous comments and resolve threads.
  • Use Case: Add automated code review to CI so every PR receives consistent quality, security, and maintainability feedback without manual intervention.

Quick Start

Trigger the Claude Code Review GitHub Actions workflow on a pull request in your repository to generate an automated inline review and summary.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I automate pull request reviews with Claude Code in GitHub Actions?

Automated PR reviews with Claude Code run directly in GitHub Actions to evaluate pull requests and post structured feedback. The workflow triggers on pull request events and specified labels, using Claude Code to generate inline comments, summaries, and actionable verdicts automatically.

What GitHub App permissions are required to post inline PR review comments?

Posting inline PR review comments requires a GitHub App configured with contents:write, pull-requests:write, and issues:write permissions. The workflow uses these permissions to post pending reviews, manage labels, resolve threads, and handle previous comments via GraphQL and gh commands.

How does the automated code review workflow handle concurrent pull request events?

The automated code review workflow handles concurrent pull request events by using concurrency groups to avoid overlapping reviews. It also manages previous comments and resolves existing threads via GraphQL and gh commands before posting new structured feedback.

Do I need an Anthropic API key to run automated code reviews in CI?

Yes, running automated code reviews in CI requires repository secrets for GitHub App credentials and either an Anthropic API key or a CLAUDE_CODE_OAUTH_TOKEN. These secrets authenticate the Claude Code action to generate review feedback within the GitHub Actions workflow.

Can I trigger automated PR reviews on draft pull requests?

Yes, you can trigger automated PR reviews on draft pull requests by applying specific labels. The GitHub Actions workflow runs automatically on non-draft PRs and can be triggered on labeled drafts to provide structured inline feedback and summaries.

What is included in the summary output of an automated GitHub PR review?

The summary output of an automated GitHub PR review includes a collapsible summary section with shields.io badges representing quality metrics. It also posts pending reviews and inline comments directly on the pull request to provide actionable verdicts for maintainers.