APM is a package manager for AI-agent configuration, using a manifest to declare reusable instructions, skills, prompts, agents, hooks, plugins, and MCP components. Development teams use it to reproduce agent setups across projects and control their dependencies through policies and lockfiles, while the catalogue contains many of these agent components.
Borrowing it
Nothing to install: this file belongs to microsoft/apm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/autopilot-pr-merge-worker/SKILL.mdgit clone --depth 1 https://github.com/microsoft/apmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/microsoft/apm/autopilot-pr-merge-worker)<a href="https://agentmods.dev/skills/microsoft/apm/autopilot-pr-merge-worker"><img src="https://agentmods.dev/badge/skills/microsoft/apm/autopilot-pr-merge-worker/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/microsoft/apm/autopilot-pr-merge-worker"><img src="https://agentmods.dev/badge/skills/microsoft/apm/autopilot-pr-merge-worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00174 | $0.03377 |
| Opus 5.5 | $0.00070 | $0.01351 |
| Sonnet 5.5 | $0.00035 | $0.00675 |
| Haiku 4.5 | $0.00017 | $0.00338 |
Grade A, and why
autopilot-pr-merge-worker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.
autopilot-pr-merge-worker - per-PR drive-to-merge convergence loop
Writes are optional via the activation card (write: on default).
autopilot-pr-review-scheduler never spawns this skill.
The PR review scheduler never comments, labels, assigns, or
requests reviewers.
panel-review requests a review. status/accepted is the human
action flag. No accepted, no review. If status/accepted is
missing on this PR and every linked issue: remove panel-review
if present, do not comment, stop. Never assign. The scheduler
and panel stop the same way and leave no comment.
Activation card
activation_card: on. Before any PR read or GitHub write, emit
this Enter card with every field filled. Missing field -> stop.
skill: autopilot-pr-merge-worker
skill_path: <resolved directory of this SKILL.md>
mode: run
subject: microsoft/apm#<pr-number>
path: merge
intent: drive one already-selected PR
origin: unattended | actor-session
write: on | off
repo: microsoft/apm
pr: <positive integer>
invocation: agentic-workflow | actor-session
invocation_mode: composed-implementation-review
Rules:
writedefaults toonwhen the caller omitted it.write: offreturns the filled template only. Do not comment, add labels, remove labels, push, or request reviewers.- If
write: on, post the one advisory comment viaautopilot-comment(source_skill: autopilot-pr-merge-worker) and fold/push inside the PR's stated scope. Never assign. Never request the implementer as a reviewer. Do not callgh pr commentyourself. originfail-closed unknown ->unattended.- Unattended never assigns and never requests reviewers.
- One PR. Do not nest a scheduler path.
plan_firstdefaults toyes. Do not fold, push, or request reviewers until Step 0.P exists. Copilot App spawn useskickoff_mode: plan. If the session started interactive, still write that plan in-session and do not skip it. Wait for operator approval when a plan-mode gate is present.
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- apm.yml 1.2 KB
- assets/ci-recovery-checklist.md 4.4 KB
- assets/completion-schema.json 22 KB
- assets/conflict-resolution-prompt.md 8.8 KB
- assets/copilot-classification-prompt.md 3.7 KB
- assets/fold-vs-defer-rubric.md 4.8 KB
- assets/pr-comment-templates.md 5.6 KB
- assets/worker-prompt.md 35 KB
- references/mergeability-gate.md 6.9 KB
- scripts/owner_touch_gate.py 30 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +20 lines · +37 tokens per session bff587a94c92
- 1mo ago First seen · 273 lines · 137 tokens per session scan A 0f83fbf9dbcb
autopilot-pr-merge-worker is a skill published in the GitHub repository microsoft/apm (4,133 stars, last pushed yesterday), licensed MIT. It adds 174 tokens to every session and 3,377 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.
Other skills, from other repositories
pr-review
Intent-aware map-reduce PR review with CI/CD support, confidence gating, and intelligent comment deduplication.
pr-walkthrough
Generate an evidence-grounded markdown walkthrough for a pull request.
address-pr-feedback
Unified PR feedback workflow - collect, triage, and fix review comments in a single command.
code-review
Review pull requests for repository fit, meaningful value, trustworthy provenance, differentiation, and maintainability in awesome-copilot.
mcp-server-review
Review a Model Context Protocol (MCP) server implementation against the 2026-07-28 protocol revision, which removed the initialize handshake and Mcp-Session-Id and made the protocol stateless. Use when the user asks to review, audit, upgrade or migrate an MCP server, asks whether their MCP server is spec compliant…
code-review-csharp
Perform structured code reviews of C# source code covering naming conventions, performance, security, readability, and .NET best practices. Trigger phrases include "review this C# code", "check my C# for best practices", "analyze this C# class", "find issues in my C# code".