Ai Pr Review banner
snarktank snarktank

Ai Pr Review

AI community

Description

A robust GitHub Actions workflow that provides AI-powered code reviews using Amp or Claude Code

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

AI PR Review Workflow

A robust GitHub Actions workflow that provides AI-powered code reviews using [Amp](https://ampcode.com) or [Claude Code](https://docs.anthropic.com/en/docs/claude-code). Get intelligent, context-aware feedback on your pull requests automatically.

Table of Contents

Features

  • Smart Reviews: Advanced AI analysis with context-aware feedback
  • Robust Error Handling: Multiple JSON extraction methods, timeouts, and fallback mechanisms
  • Secure: Proper secret masking, minimal permissions, and configurable security options
  • Flexible: Configurable review behavior (comment, approve, request changes)
  • Reliable: Handles non-deterministic AI responses with multiple parsing strategies

Prerequisites

Before setting up the workflow, you need:

  1. A GitHub repository with Actions enabled (free for public repositories)
  2. An AI API key from one of these providers:
  3. GitHub CLI (optional but recommended): Install from cli.github.com

Quick Start

1. Add the Workflow

Copy [`.github/workflows/ai-pr-review.yml`](.github/workflows/ai-pr-review.yml) to your repository's `.github/workflows/` directory.

**Important:** You must commit this workflow file to your main branch first before it will be able to run on pull requests.

2. Get Your API Key

For Amp (Recommended)

  1. Visit ampcode.com and create a free account (includes $10 free credit)
  2. Sign up or log in to your account
  3. Navigate to [ampcode.com/settings](ht