Skip to content
Back to skills

Convert Plugin To Apm

ASecurity

Activate when the user wants to add APM governance, lockfile/audit readiness, or multi-runtime package management to an existing Claude/Copilot/agent plugin, or explicitly convert a plugin into an APM-native package.

  • 7 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 2, 2026
ai-agentspythongobash

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill convert-plugin-to-apm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert Plugin To Apm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Convert Plugin To Apm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-convert-plugin-to-apm/badge)](https://www.skillsdirectory.com/skills/richfrem-convert-plugin-to-apm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: convert-plugin-to-apm
description: >-
  Activate when the user wants to add APM governance, lockfile/audit readiness, 
  or multi-runtime package management to an existing Claude/Copilot/agent plugin, 
  or explicitly convert a plugin into an APM-native package.
allowed-tools: Bash, Read, Write, Glob
---

# Convert Plugin to APM (`convert-plugin-to-apm`)

Applies overlay-first APM governance, lockfile reproducibility, and multi-runtime packaging to existing agent plugins without disruptive refactors.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Overlay-First Directive**: Never force `.apm/` as the source of truth or move existing files unless explicitly requested by the user.
2. **Preserve Original Layout**: Default to Overlay Mode, adding `apm.yml` and `docs/governance.md` at root without disrupting active workflows.
3. **Lossless Mapping**: When Full Conversion is requested, keep the original plugin untouched and map primitives accurately.

## Quick start

Analyze a plugin directory to determine the appropriate conversion mode:

```bash
python3 scripts/validate_apm_package.py --analyze <path-to-plugin>
```

## Workflow

1. **Select Migration Mode**:
   - **Overlay Mode (Default)**: Add `apm.yml` and `docs/governance.md` to root; zero file relocations.
   - **Hybrid Mode**: Add `.apm/` for new governance assets while keeping existing primitives in place.
   - **Full Conversion**: Migrate primitives into `.apm/` structure (`commands/*` -> `.apm/prompts/*`).
2. **Generate Manifest**: Scaffold compliant `apm.yml` capturing plugin metadata and dependencies.
3. **Compile Lockfile**: Run `apm install --dry-run` to generate initial lockfile state.

## Verification

Audit the converted plugin package for schema and lockfile validity:

```bash
python3 scripts/validate_apm_package.py --path <path-to-plugin>
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria for overlay, hybrid, and full conversion modes.
- [fallback-tree.md](references/fallback-tree.md) — Fallback resolution for mapping errors and validation rejections.

Files in this skill

  • SKILL.md1.7 KB
  • acceptance-criteria.md842 B
  • evals/evals.json543 B
  • evals/results.tsv34 B
  • fallback-tree.md638 B
  • scripts/migrate_to_apm.py34 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.