Skip to content

github/awesome-copilot / skills/copilot-pr-autopilot

copilot-pr-autopilot

Verified

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

references/05-fix.md

View on GitHub
# 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](04-triage.md#project-specific-policy-hooks)).
- **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.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall