compile-apm-package

compile-apm-package is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 74 tokens per session (427 once invoked), scanned A, original, MIT.

A compilation tool that combines APM package parts into a single context document such as AGENTS.md, CLAUDE.md, or GEMINI.md. These documents give an AI coding tool instructions about a project.

In plain words
What is it for?
Use it to validate an APM package and generate the context document required by a particular coding-agent host.
Why use it?
It supplies one generated instruction file for hosts that do not load separate skill directories directly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the agent-scaffolders plugin — 33 skills shipped together

Good fit Use it to validate an APM package and generate the context document required by a particular coding-agent host.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/compile-apm-package
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richfrem/agent-plugins-skills --skill compile-apm-package
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install agent-scaffolders, the plugin that ships this one along with the rest of its 33 skills.

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 compile-apm-package

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/compile-apm-package.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/compile-apm-package)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/compile-apm-package"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/compile-apm-package.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 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.00074 $0.00427
Opus 5 $0.00037 $0.00214
Sonnet 5 $0.00015 $0.00085
Haiku 4.5 $0.00007 $0.00043

Measured 4d ago against content hash f08c30626270, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

compile-apm-package 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 4d 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.

plugins/agent-scaffolders/skills/compile-apm-package/SKILL.md · 36 lines

What it actually says

compile-apm-package Skill 📄

Overview

This skill generates merged context documents from APM primitives. This is primarily required for harnesses that consume a single authoritative file (like Gemini's GEMINI.md) rather than distributed skill directories.

🚫 Non-Negotiables

  1. Artifact Status — Compiled files (AGENTS.md, etc.) are generated artifacts. NEVER edit them directly if a .apm/ source tree exists.
  2. Conditional Use — Do not run compile if the user's harness (e.g., Claude Code, Copilot Chat) supports native directory-based skills.
  3. Validation First — Ensure the package is valid before merging primitives.

Decision Tree

  1. Target supports directory-based skills? -> Use install-apm-package.
  2. Target needs top-level context? (e.g., Gemini, Codex) -> Run apm compile.
  3. Authoring shared context? -> Use apm compile to verify how fragments merge into the final doc.

Workflow

  1. Verify apm.yml existence.
  2. Execute python scripts/validate_apm_package.py.
  3. Identify target requirements.
  4. Run apm compile [--target <slug>].
  5. Report the location of generated context files.

Anti-Patterns

  • Unnecessary Compilation: Running apm compile for a Claude Code project (redundant work).
  • Direct Artifact Editing: Fixing a typo in GEMINI.md instead of the source .prompt.md.
Files

What ships with it

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

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. 4d ago First seen · 36 lines · 74 tokens per session scan A f08c30626270

Subscribe to this mod's changes

compile-apm-package is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 427 once invoked, about $0.0004 per session on Opus 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-03.