richfrem/agent-plugins-skills / plugins/agent-extension-authoring/.apm/skills/packaging-with-apm
packaging-with-apm
FlaggedPackages, installs and distributes agent extensions with APM (Agent Package Manager). Use when the user wants to create a new APM package, convert or migrate an existing plugin to APM and check it installs cleanly, compile a package into AGENTS.md, CLAUDE.md or GEMINI.md, install, update, pin or roll back packages globally or per project, or create a plugin marketplace catalog (marketplace.json). Not for authoring a single skill, plugin, sub-agent or rule (use the authoring-* skills).
references/modes/create-apm-package.md
View on GitHub# Create APM Package (`create-apm-package`)
Scaffolds a greenfield APM-native package with source primitives isolated under `.apm/` and standard governance documentation.
## Contents
- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)
## Critical Constraints
1. **Source in .apm/**: Greenfield primitives (skills, agents, prompts, hooks, mcp) must be authored inside `.apm/`.
2. **Kebab-Case Naming**: Package names must be lowercase alphanumeric with hyphens.
3. **No Overwrites**: Never overwrite existing directories without explicit user confirmation.
4. **Mandatory Governance Docs**: Every generated package must include `docs/governance.md`.
## Quick start
Scaffold a new APM package structure:
```bash
python3 scripts/scaffold_apm.py --name <package-name>
```
## Workflow
1. **Pre-Check Qualification**: Verify this is a new package from scratch (if migrating an existing plugin, redirect to `convert-plugin-to-apm`).
2. **Scaffold Package**: Run `scaffold_apm.py` to create the standard folder hierarchy (`apm.yml`, `.apm/`, `docs/`).
3. **Author Governance**: Populate `docs/governance.md`, `README.md`, and license attribution.
4. **Compile Initial Lockfile**: Run `apm install --dry-run` to generate initial dependency lockfile.
## Verification
Validate the scaffolded package structure and manifest compliance:
```bash
python3 scripts/validate_apm_package.py --path ./<package-name>
```
## References
- [acceptance-criteria.md](../acceptance-criteria.md) — Acceptance gates and structural requirements for APM packages.
- [fallback-tree.md](../fallback-tree.md) — Fallback resolution when scaffolding or validation fails.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |