copilot-pr-autopilot
Fungsinya
Tool ini mengotomatiskan proses code review di GitHub, terutama saat Copilot meninggalkan banyak komentar. Tool ini berulang kali meninjau kode, membalas komentar, dan memperbaiki masalah sampai semuanya selesai atau sampai ada hal yang perlu ditangani manusia.
Kapan dipakai
- βSaat Copilot meninggalkan banyak komentar pada code review.
- βUntuk melakukan pengecekan kualitas kode terakhir sebelum menyetujuinya.
- βSaat komentar Copilot sebelumnya perlu ditinjau dan diperbaiki.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/copilot-pr-autopilot/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTolong tinjau dan perbaiki komentar Copilot pada pull request ini.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini berinteraksi dengan GitHub untuk meminta review dari Copilot. Tool ini menganalisis komentar, memutuskan apakah akan memperbaiki, menolak, atau meminta bantuan, lalu melakukan perbaikan yang diperlukan dalam beberapa siklus sampai kode siap.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
β¦
Pertanyaan umum
Apakah saya perlu izin khusus untuk menjalankan tool ini?
Ya, untuk menjalankan siklus review otomatis secara penuh, Anda memerlukan izin 'Triage' atau 'Write' pada repository. Jika tidak punya, Anda bisa menggunakan mode satu iterasi.
Apa yang terjadi jika Copilot tidak diaktifkan pada repository?
Tool ini tetap bisa membantu menyelesaikan jenis komentar lain (dari manusia atau terkait keamanan), tetapi tidak bisa memicu review Copilot yang baru.
Bagaimana saya tahu kapan prosesnya selesai?
Proses selesai ketika semua komentar terbuka sudah dibalas dan Copilot tidak punya saran baru, atau ketika diputuskan bahwa manusia perlu turun tangan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7128
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.