Skip to content

xpepper/pr-review-agent-skill / copilot-review-loop

copilot-review-loop

Verified

Use when you want GitHub Copilot to review a PR and automatically address its feedback within the current agent session. For any reviewer (human or bot), use pr-review-loop; when an external shell loop should drive one session per comment, use ralph-wiggum-loop.

FileKindSize
README.mdmarkdown1.5 KB
SKILL.mdskill md6.9 KB
references/gh-copilot-review-guide.mdmarkdown1.7 KB

references/gh-copilot-review-guide.md

View on GitHub
# gh-copilot-review Extension Guide

## Purpose

This guide explains how to trigger a GitHub Copilot review from the CLI,
which is the key mechanism powering the Copilot Review Loop.

## Recommended: gh-copilot-review extension

Install once:
```bash
gh extension install ChrisCarini/gh-copilot-review
```

Trigger a Copilot review:
```bash
# By PR number
gh copilot-review 42

# By PR URL
gh copilot-review https://github.com/owner/repo/pull/42

# Current branch's PR (detect from git)
gh copilot-review
```

## Fallback: gh pr review --request

If the extension is not installed:
```bash
gh pr review --request copilot
```

Note: This may not work on all GitHub plans. The extension is more reliable.

## Detecting which to use

Check if the extension is installed:
```bash
gh extension list | grep copilot-review
```

If it appears in the output, use `gh copilot-review`. Otherwise fall back to `gh pr review --request copilot`.

## Waiting for Copilot to complete

After triggering, Copilot review takes 30–120 seconds. Poll until new
`copilot[bot]` review comments appear:

```bash
# Count current Copilot comments
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
  --jq '[.[] | select(.user.login == "copilot[bot]")] | length'
```

Record this count as the baseline. After triggering, poll until the count increases.

Poll every 15 seconds. After 3 minutes with no new comments, stop and report timeout.

## Identifying Copilot comments

Filter by reviewer login `copilot[bot]`:
```bash
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
  --jq '.[] | select(.user.login == "copilot[bot]")'
```

Fetch all Copilot comments. Use the count delta from polling to identify which are new in this review cycle.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall