apm: Skill for Claude Code

.agents/skills/autopilot-comment/SKILL.md

autopilot-comment is a skill for Claude Code, Codex from microsoft/apm. It costs 69 tokens per session (899 once invoked), scanned A, original, MIT.

A controlled workflow for posting or updating one comment on a GitHub issue or pull request. It assembles the public message and optional debugging details and requires an activation record before writing.

In plain words
What is it for?
Use it when an autopilot workflow needs to create or patch one comment in the microsoft/apm repository.
Why use it?
It prevents related automation from posting comments directly or accidentally performing unrelated GitHub actions such as labeling, assigning, reviewing, or merging.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: 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 →

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-comment/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-comment

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/apm/autopilot-comment/github.svg)](https://agentmods.dev/skills/microsoft/apm/autopilot-comment)
Your own site
<a href="https://agentmods.dev/skills/microsoft/apm/autopilot-comment"><img src="https://agentmods.dev/badge/skills/microsoft/apm/autopilot-comment/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-comment

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/apm/autopilot-comment"><img src="https://agentmods.dev/badge/skills/microsoft/apm/autopilot-comment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 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.00069 $0.00899
Opus 5.5 $0.00028 $0.00360
Sonnet 5.5 $0.00014 $0.00180
Haiku 4.5 $0.00007 $0.00090

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

Security

Grade A, and why

autopilot-comment 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.

.agents/skills/autopilot-comment/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

autopilot-comment -- Sole GitHub comment writer

Any autopilot skill that would write a GitHub comment loads this skill in the same session and stops if the card is missing. Do not spawn a nested session. Do not comment from the caller.

Activation card

activation_card: on. Before any GitHub comment write, emit this Enter card with every field filled. Missing field -> stop.

skill: autopilot-comment
skill_path: <resolved directory of this SKILL.md>
mode: run
subject: microsoft/apm#<number>
path: comment
intent: post one GitHub comment | patch one GitHub comment
origin: unattended | actor-session
write: on | off
debug: off | on
repo: microsoft/apm
target_kind: issue | pull
target: <positive integer>
source_skill: <canonical autopilot skill name>
comment_id: none | <positive integer>
invocation: agentic-workflow | actor-session
receipt: <HTML comment watermark line>
public_body: <author-facing prose, no JSON, no footer>
debug_body: <full internal template without JSON fence, or none>

Rules:

  • write defaults to on when the caller omitted it.
  • write: off returns the assembled body only. Do not post or patch.
  • write: on posts or patches exactly one comment. Never labels, assigns, requests reviewers, or merges.
  • debug defaults to off when omitted or unknown. Omitted debug is not a missing-field stop.
  • debug: off -> HTML receipt plus public_body. Do not post internal headings from debug_body.
  • debug: on -> first line [i] Skill debug is on. then receipt plus debug_body (or public_body if debug_body is none).
  • comment_id: none with intent post. A numeric comment_id with intent patch. Mismatch -> stop.
  • source_skill is the caller (for example autopilot-issue-triage-worker). Never autopilot-comment.
  • origin fail-closed unknown -> unattended.
  • Strip any JSON fence from bodies before assembly. Never post JSON on GitHub.

After the write (or dry-run), emit this Exit receipt:

skill: autopilot-comment
subject: microsoft/apm#<number>
path: comment
write: on | off
debug: off | on
posted: yes | no
patched: yes | no
comment_id: <id or none>
source_skill: <canonical autopilot skill name>
approved: n/a

Read the full file on GitHub · 113 lines

Files

What ships with it

1 file 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.

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 First seen · 113 lines · 69 tokens per session scan A 8707dbc45d83

Subscribe to this mod's changes

autopilot-comment is a skill published in the GitHub repository microsoft/apm (4,133 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 899 once invoked, about $0.0003 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-19.