apm: Skill for Claude Code

.agents/skills/autopilot-pr-merge-worker/SKILL.md

autopilot-pr-merge-worker is a skill for Claude Code, Codex from microsoft/apm. It costs 174 tokens per session (3,377 once invoked), scanned A, original, MIT.

A worker that drives one selected GitHub pull request toward being ready to merge. It can apply in-scope recommendations, update the change, and repeat review steps when the required human acceptance signal is present.

In plain words
What is it for?
Use it to process review findings, update the pull request's branch or a superseding pull request, and continue toward merge readiness.
Why use it?
It coordinates implementation and review for one pull request while stopping when human authorization is missing.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

This is microsoft/apm's own configuration. It tells Claude Code and Codex how to work on apm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apm configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is test -f ../autopilot-pr-merge-worker/assets/worker-prompt.md \.

About the project

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.

microsoft/apm · 4,133 stars · on GitHub · microsoft.github.io

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/autopilot-pr-merge-worker/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/apm

Made for: Claude Code, Codex.

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

agentmods badge for autopilot-pr-merge-worker

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/apm/autopilot-pr-merge-worker/github.svg)](https://agentmods.dev/skills/microsoft/apm/autopilot-pr-merge-worker)
Your own site
<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.

agentmods 80×15 button for autopilot-pr-merge-worker

Your own site · 80×15
<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>
Per session 174 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash bff587a94c92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/owner_touch_gate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/autopilot-pr-merge-worker/SKILL.md · 293 lines

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:

  • write defaults to on when the caller omitted it.
  • write: off returns the filled template only. Do not comment, add labels, remove labels, push, or request reviewers.
  • If write: on, post the one advisory comment via autopilot-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 call gh pr comment yourself.
  • origin fail-closed unknown -> unattended.
  • Unattended never assigns and never requests reviewers.
  • One PR. Do not nest a scheduler path.
  • plan_first defaults to yes. Do not fold, push, or request reviewers until Step 0.P exists. Copilot App spawn uses kickoff_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.

Read the full file on GitHub · 293 lines

Changes

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.

  1. 1mo ago Changed · +20 lines · +37 tokens per session bff587a94c92
  2. 1mo ago First seen · 273 lines · 137 tokens per session scan A 0f83fbf9dbcb

Subscribe to this mod's changes

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.