promptctl

Copirate Code Review Agent — Git skill for Claude Code

Git community

Runs a coding agent as a read-only PR or whole-repo code reviewer.

How to install Copirate Code Review Agent

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

What Copirate Code Review Agent does

Runs a coding agent as a read-only PR or whole-repo code reviewer.

Alternatives in Git

  • Fix PR — by metabase - Fetches and fixes unresolved PR comments by automatically retrieving feedback, addressing review 46.5k ★
  • Review And Fix PR — @description Review an existing PR with parallel agents, fix findings, and push 1.6k ★
  • Read Feedback Revise — Read PR review feedback from a GitHub comment and enter plan mode to address it 387 ★

README

CoPirate Code Review

A GitHub Action that runs an AI coding agent as a **read-only** code reviewer. It reviews a pull request diff and submits an inline GitHub review — `REQUEST_CHANGES` when it finds issues, otherwise an approval (a formal `APPROVE` when `GITHUB_REVIEW_TOKEN` is set; logged-only otherwise — see [Approvals](#approvals)) (or a "⏳ Partial review" `COMMENT` when part of the change went unreviewed — a partial review never approves). It can also do an on-demand whole-repo review (`MODE: repo`).

The review engine is chosen by `PROVIDER`, which defaults to `auto` (today: Claude Code against Anthropic, billed to your **Claude Pro/Max subscription** rather than per token). You can also run Claude Code against Z.ai, or Codex against OpenAI. The engine reviews read-only — it cannot push to GitHub itself; findings flow through a private collector and are submitted by the action.

Quickstart

  1. Mint a subscription token once, locally — `claude setup-token` prints one valid for a year — and add it as a `CLAUDE_CODE_OAUTH_TOKEN` repository secret (**Settings → Secrets and variables → Actions**), or via the CLI:

    claude setup-token                    # prints the token
    gh secret set CLAUDE_CODE_OAUTH_TOKEN # paste it at the prompt

    Prefer paying per token? Set that provider's key and name it explicitly with `PROVIDER:` — see [Providers](#providers).

  2. Add `.github/workflows/code-review.yml`:

    name: AI Code Review
    
    on:
      pull_request:
        types: [opened, synchronize, reopened]
    
    permissions:
      contents: read
      issues: write
      pull-requests: write
    
    # Cancel an in-flight review when a new commit is pushed, so a rapid
    # push loop doesn't pay for reviews of commits that are already replaced.
    concurrency:
      group: ai-code-review-${{ github.event.pull_request.number }}
      cancel-in-progress: true
    
    jobs:
      review:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/c