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.

references05-fix.md

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

Step 5: Apply fixes

Sub-agent type: general-purpose, one sub-agent per finding, parallel max 5 concurrent; budget: 5 min each. If step 4 returned more than 5 fix rows, the parent runs step 5 in waves of ≤5.

Inputs

Per sub-agent (one finding per invocation):

  • thread_id, file, line from step 3.
  • The finding summary and Copilot's suggested fix (if any).
  • The triage rationale from step 4 — the agent already decided this is a fix; this sub-agent only implements it.

Return contract

{ thread_id, files_touched, summary, status }

Where status ∈ complete | partial | blocked and summary is a one-line description of the change.

Procedure

  1. Discover repo conventions for the area being edited — first. Before writing any code, read:
    • .github/instructions/*.md whose applyTo glob matches the file's path,
    • .github/skills/,
    • AGENTS.md,
    • CONTRIBUTING.md,
    • neighbor-file patterns in the same directory and recent commits touching similar files.
  2. Apply the fix in line with those conventions.
  3. Return files_touched + a one-line summary + status.

Gotchas

  • Max 5 concurrent fix sub-agents. The cap prevents fix-fanout chaos; the parent merges results and reconciles file conflicts between waves before step 6.
  • Never invent a generic answer that contradicts repo practice. That's the "elephant in school" anti-pattern — a Copilot suggestion in isolation looks right but breaks the project's lint, format, spell-check, license-header, or framework conventions. The discovery step is mandatory, not optional.
  • One finding per sub-agent. Fixes that need to touch the same file get serialized by the parent between waves — don't merge multiple findings into one sub-agent invocation.
  • Project policy beats Copilot suggestion. If discovery surfaces a documented convention (spell-check allowlist mechanism, lint suppression style, etc.) that contradicts the suggested fix, follow the convention and reflect that in the reply body drafted in step 8 (see 04-triage.md).
  • Push back with written rationale if implementing the fix would over-engineer the design for a hypothetical edge case — flip the triage to decline and return status: blocked with the rationale so step 8 drafts the right reply.

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 20 hours ago.

Activeupdated 3 months ago

README badge

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