create-apm-package

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

A scaffolding tool for creating a new APM package, a package format for distributing reusable agent skills, agents, commands, hooks, prompts, and related files.

In plain words
What is it for?
Use it to start a reusable package from scratch and validate its generated files.
Why use it?
It creates the required package layout and governance documents so a new package starts with the expected structure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is python scripts/validate_apm_package.py --path ./<package-name>.

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

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add richfrem/agent-plugins-skills
Claude Code
/plugin install agent-scaffolders

Made for: Claude Code.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/create-apm-package.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/create-apm-package)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/create-apm-package"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/create-apm-package.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 466 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00062 $0.00466
Opus 5 $0.00031 $0.00233
Sonnet 5 $0.00012 $0.00093
Haiku 4.5 $0.00006 $0.00047

Measured 2d ago against content hash 7dbe9d7938a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

create-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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scaffold_apm.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.

plugins/agent-scaffolders/skills/create-apm-package/SKILL.md · 60 lines

What it actually says

create-apm-package Skill 🏗️

Overview

This skill scaffolds a new APM-native package using the "Source in .apm/" pattern. It is used for greenfield projects where APM is the primary distribution format from day one.

🚫 Non-Negotiables

  1. Source in .apm/ — Primitives MUST be authored inside the .apm/ directory.
  2. Kebab-case — Package names must be lowercase with hyphens.
  3. No Overwrites — Never overwrite an existing directory without explicit confirmation.
  4. Governance Docs — Every package must include docs/governance.md.

Decision Tree

  1. New Package? -> Proceed with scripts/scaffold_apm.py.
  2. Existing Plugin? -> Route to convert-plugin-to-apm.
  3. Hybrid needed? -> Use --allow-hybrid flag in scaffold script.

Generated Structure

<package-name>/
  apm.yml
  README.md
  .gitignore
  .apm/
    skills/
    agents/
    instructions/
    prompts/
    hooks/
    mcp/
    scripts/
    tests/
  docs/
    governance.md
    attribution.md
    package-lifecycle.md
  scripts/
  tests/

Validation Steps

After scaffolding, always run:

python scripts/validate_apm_package.py --path ./<package-name>

Anti-Patterns

  • Duplicate Roots: Creating .apm/skills while also having skills/ in the same package.
  • Missing Docs: Skipping the docs/ folder in a team or enterprise lane.
  • Absolute Paths: Using machine-specific paths in apm.yml.
Files

What ships with it

5 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. 2d ago First seen · 60 lines · 62 tokens per session scan A 7dbe9d7938a1

Subscribe to this mod's changes

create-apm-package is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 466 once invoked, about $0.0003 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.