# Autopilot PR Review Scheduler

Queue microsoft/apm pull requests labelled `panel-review` (or an explicit named list)...

- Repository: https://github.com/microsoft/apm (4171 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add microsoft/apm --skill autopilot-pr-review-scheduler -g -a claude-code -y`
Codex: `npx skills add microsoft/apm --skill autopilot-pr-review-scheduler -g -a codex -y`
Cursor: `npx skills add microsoft/apm --skill autopilot-pr-review-scheduler -g -a cursor -y`
Gemini CLI: `npx skills add microsoft/apm --skill autopilot-pr-review-scheduler -g -a gemini-cli -y`

## Description

Queue microsoft/apm pull requests labelled `panel-review` (or an explicit named list) and fan them out through an isolated pool (default 2) of autopilot-pr-review-worker sessions. Advisory only. Never implements. Never composes autopilot-pr-merge-worker. Never review every open PR. Works in a local session, Copilot App automation, Cloud Agent, Remote Agent, or Agentic Workflow. Does not triage issues or open greenfield PRs.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# autopilot-pr-review-scheduler

User-facing PR REVIEW queue. This skill SELECTS pull requests and
THROTTLES fan-out. It does not triage issues, does not implement,
and does not open greenfield PRs.

Compose [autopilot-pr-review-worker](../autopilot-pr-review-worker/SKILL.md)
one PR per slot (`INVOCATION_MODE=session-review`,
`panel-mode: full` for a first advisory). Never compose
`autopilot-pr-merge-worker`. Drive-to-merge is a different skill.

Never borrow slots from `autopilot-issue-triage-scheduler`,
`autopilot-issue-delivery-scheduler`, or
`autopilot-pr-triage-scheduler`.

## Activation card

`activation_card: on`. Before any queue read or spawn, emit
this Enter card with every field filled. Missing field -> stop.

```text
skill: autopilot-pr-review-scheduler
skill_path: <resolved directory of this SKILL.md>
mode: run
subject: microsoft/apm
path: review
intent: select accepted review PRs and fan out review workers
origin: unattended | actor-session
write: off
repo: microsoft/apm
fanout_limit: <positive integer>
invocation: agentic-workflow | actor-session
```

Rules:

- `write` is always `off`. This scheduler never comments,
  labels, assigns, or requests reviewers.
- `write: on` -> stop.
- `origin` fail-closed unknown -> `unattended`.
- `invocation` is the harness. Copilot App, local session, Cloud
  Agent, and Remote Agent are `actor-session`. `agentic-workflow`
  is only gh-aw / GitHub Actions. Do not copy `origin` into
  `invocation`.
- One queue. Do not nest another scheduler path.
- Do not compose `autopilot-pr-merge-worker`.

After the run, emit this Exit receipt:

```text
skill: autopilot-pr-review-scheduler
subject: microsoft/apm
path: review
write: off
queued: <integer>
spawned: <integer>
approved: n/a
```

## Invocation

Works in local sessions, Copilot App automations, Cloud Agent,
Remote Agent, and Agentic Workflows.

The rest: https://github.com/microsoft/apm/blob/HEAD/.agents/skills/autopilot-pr-review-scheduler/SKILL.md
