본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7128

copilot-pr-autopilot

하는 일

이 도구는 특히 Copilot이 많은 댓글을 남길 때 GitHub의 코드 리뷰 과정을 자동화합니다. 코드를 반복해서 검토하고, 댓글에 응답하며, 모든 문제가 해결되거나 사람의 개입이 필요할 때까지 문제를 고칩니다.

사용하는 경우

  • ✓Copilot이 코드 리뷰에 많은 댓글을 남겼을 때.
  • ✓코드를 승인하기 전에 최종 품질 점검을 할 때.
  • ✓이전 Copilot 댓글을 검토하고 고쳐야 할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/copilot-pr-autopilot/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/copilot-pr-autopilot/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 풀 리퀘스트에 달린 Copilot 댓글을 검토하고 고쳐 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 GitHub와 상호작용해 Copilot 리뷰를 요청합니다. 댓글을 분석해 고칠지, 거절할지, 도움을 요청할지 결정하고, 코드가 준비될 때까지 주기를 반복하며 필요한 수정을 수행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

…

자주 묻는 질문

이 도구를 실행하려면 특별한 권한이 필요한가요?

네, 자동 리뷰의 전체 주기를 실행하려면 저장소에 대한 ‘Triage’ 또는 ‘Write’ 권한이 필요합니다. 권한이 없다면 한 번만 실행하는 모드를 사용할 수 있습니다.

저장소에 Copilot이 활성화되어 있지 않으면 어떻게 되나요?

사람이나 보안 도구가 남긴 다른 종류의 댓글은 여전히 처리할 수 있지만, 새로운 Copilot 리뷰를 요청할 수는 없습니다.

처리가 끝났는지 어떻게 알 수 있나요?

열려 있는 모든 댓글에 응답했고 Copilot에 새로운 제안이 없을 때, 또는 사람이 개입해야 한다고 결정될 때 끝납니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
40k
순위
#7128
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬