copilot-pr-autopilot
What it does
This tool automates the code review process on GitHub, especially when Copilot leaves many comments. It repeatedly reviews the code, responds to comments, and fixes issues until everything is resolved or human intervention is needed.
When to use it
- βWhen Copilot leaves many comments on a code review.
- βTo perform a final quality check on code before approving it.
- βWhen previous Copilot comments need to be reviewed and fixed.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/copilot-pr-autopilot/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlease review and fix Copilot's comments on this pull request.β
5 new skills a week. 1 minute to read.
How it works
The tool interacts with GitHub to request Copilot reviews. It analyzes the comments, decides whether to fix, decline, or ask for help, and then performs the necessary fixes in cycles until the code is ready.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Copilot PR Autopilot
Drive any GitHub pull request through repeated rounds of Copilot code
review until the agent has done its job β every Copilot finding has
a reply from the agent (fix-acknowledgement, decline-with-rationale,
or explicit escalate-to-user hand-off). Remaining open threads, if
any, are deliberate hand-offs to the human merge owner β they're
not loop failures. Repository-agnostic β works on any repo that has
Copilot Code Review enabled, run from a machine with gh CLI
installed and authenticated (see Prerequisites).
When to Use This Skill
- The user asks to "request Copilot review" or "run a Copilot review loop" on a PR.
- A PR is functionally complete and the user wants a final correctness pass via repeated automated review rounds.
- A previous Copilot review on the PR has left open threads that need triage, fixing, replying, and resolving.
When NOT to Use This Skill
- The PR is still under active design β wait until the structure is stable; otherwise findings churn round-over-round.
- The user wants human reviewer feedback, not Copilot's.
Prerequisites
ghCLI installed and authenticated against the target repository.- PowerShell on PATH β Windows PowerShell 5.1+ (
powershell.exe) or PowerShell 7+ (pwsh). Both are tested. - Copilot Code Review is the primary use case (
01-request-review.ps1uses GraphQLrequestReviewsByLoginto trigger Copilot). It is NOT a hard requirement β if01-request-review.ps1fails because Copilot isn't enabled on the repo / account, the agent can still drive existing review threads (human, advanced-security, etc.) to completion by running steps 3β8 once as a single iteration; just skip the trigger + wait. There is no auto-detect for "Copilot unavailable" β the agent makes that decision after the trigger fails (the script can't reliably tell "Copilot disabled" from "Copilot enabled but not yet triggered" from API state alone).
Permissions: who can run the full loop
The full multi-round autopilot (steps 1 β 9 β 1) needs Triage or Write permission on the target repo, because GitHub's only public API for adding the Copilot bot as a reviewer (requestReviewsByLogin) is gated on that permission. Verified against the public REST + GraphQL surface in this PR's commit history β there is no public-API path for bot reviewers without write permission.
| You are⦠| What works |
|---|---|
| Repo collaborator with Triage / Write | Full loop: 01 triggers Copilot, 02 waits, 04β08 triage / fix / reply, loop back to 01. Hands-off. |
| External PR author (no write permission) | 01 will throw a clear actionable error. Use -SingleIteration mode: address all current findings in one pass, then either click the UI π next to Copilot, or push a substantive commit (the synchronize event auto-triggers Copilot on most repos). Then re-run 02 to verify. |
In single-iteration mode the loop's convergence boolean is Converged: true iff OpenThreadsAwaitingReply == 0 (the agent's side is done). The maintainer-side re-trigger then drives any additional rounds.
Every script dot-sources scripts/_lib.ps1 which
runs Assert-GhReady on load: if gh is missing OR gh auth status
fails, the script halts before any work with a single actionable
error message naming the install command and gh auth login. The
agent should surface that message to the user verbatim and stop the
loop β do not retry or work around it.
Step-by-Step Workflow
The loop: steps 1 β 2 β 3 β 4 β 5 β 6 β 7 β 8 β 9, then back to step 1 if
Converged: false. Repeat the 1β9 round until step 9 returnsConverged: true; only then run step 10 once and calltask_complete. At every 10th round, the parent runs the round-cap recap gate before looping back β recap all prior rounds and stop if the loop has drifted out of the PR's original scope.
Each round runs steps 1β9; step 10 is a one-time cleanup after convergence. The parent agent coordinates; every sub-agent step runs in a fresh context with a bounded budget. Cross-cutting protocol (time-boxing, extension, single-iteration fallback): orchestration.md.
- Request review (parent) β see 01-request-review.md
- Wait for review (sub-agent, 20-min cap) β see 02-wait.md
β¦
FAQ
Do I need specific permissions to run this tool?
Yes, to run the full cycle of automatic reviews, you need 'Triage' or 'Write' permission on the repository. If you don't have it, you can use a single-iteration mode.
What happens if Copilot is not enabled on the repository?
The tool can still help resolve other types of comments (from humans or security), but it won't be able to trigger new Copilot reviews.
How do I know when the process is finished?
The process finishes when all open comments have been responded to and Copilot has no new suggestions, or when it's decided that a human needs to intervene.
Details
Original description by the author
Copilot left 14 review comments on your PR β half are nits. Hours of fix β reply β resolve β re-request, and each round lands MORE comments. This skill runs loop engineering: auto-triggers Copilot Code Review via GraphQL (no @copilot mention), triages every open thread (Copilot, humans, advanced-security) with a fix / decline / escalate rubric, dispatches parallel fix sub-agents that obey the repo
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7128
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.