Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)40k Β· #7128

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/copilot-pr-autopilot/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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

  • gh CLI 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.ps1 uses GraphQL requestReviewsByLogin to trigger Copilot). It is NOT a hard requirement β€” if 01-request-review.ps1 fails 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 returns Converged: true; only then run step 10 once and call task_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.

  1. Request review (parent) β€” see 01-request-review.md
  2. 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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa