All skills
github avatar

/copilot-pr-autopilot

@d47a6c9 official
by githubgithub/awesome-copilot40k stars
5,040

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 build/test/lint conventions, commits per iteration, replies+resolves citing the pushed SHA, then re-triggers until HEAD is reviewed with zero threads awaiting the agent's reply (remaining open threads are explicit hand-offs to the human — escalated declines, design tradeoffs). You merge a clean PR; the bot runs it. Trigger phrases: "address copilot comments", "run a copilot review loop", "fix this PR", "iterate on copilot feedback". Repo-agnostic, gh CLI + PowerShell. Full autopilot needs repo Triage/Write; external PR authors get single-iteration mode plus manual re-trigger (UI 🔄 or substantive-commit push).

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/copilot-pr-autopilot

This session only. Nothing lands on disk.

references03-list-threads.md

≈441 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Step 3: List + categorize open threads

Sub-agent type: explore; budget: 5 min.

Inputs

  • PrNumber.

Return contract

Table of rows, one per open thread:

{ thread_id, file, line, author, author_class, severity, summary }

Where author_class ∈ copilot | human-or-bot, derived from the raw author.login (see Gotchas).

Procedure

Run the listing script:

pwsh ./scripts/03-list-open-threads.ps1 -PrNumber <n>

This returns every unresolved review thread from all reviewers (Copilot, humans, github-advanced-security, other bots). The script emits Path as <file>:<line> when the comment is anchored to a specific line (e.g. src/foo.js:42); when the comment has no line anchor (file-level / PR-level comments), Path is just <file> with no :<line> suffix. Callers should split on the last : only when the suffix parses as an integer, and treat Path as the file alone otherwise. For each row, classify the author:

  • copilot-pull-request-reviewer or copilot-pull-request-reviewer[bot] → author_class: copilot
  • everything else → author_class: human-or-bot

Pass the classified table to step 4 — the triage rubric depends on it.

Gotchas

  • The [bot] suffix appears on some surfaces. Match BOTH copilot-pull-request-reviewer AND copilot-pull-request-reviewer[bot] — they're the same actor.
  • Default human / advanced-security threads to escalate-to-user in step 4. Classification here just flags them; triage applies the policy. See 04-triage.md.
  • Unresolved is the source of truth. Outdated-but-unresolved threads still show up — that's correct. Don't filter them out; they're handled like any other open thread in step 8.

Source: SKILL.md on GitHub

2 warnings3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a structured autopilot workflow for addressing GitHub pull request review comments. It uses the GitHub CLI and PowerShell to trigger reviews, triage feedback, apply code changes, and verify them via repository-specific build and test commands.

  • Socket3mo

    1 alert: gptAnomaly

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at d47a6c9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago

README badge

README badge for github/awesome-copilot/copilot-pr-autopilot