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/fallback-tree.md
View on GitHub# Fallback Tree: packaging-with-apm
Merged verbatim from the five retired APM skills; one section per mode.
## Mode: create-apm-package
| Event | Action |
|-------|--------|
| Missing package name | Stop. Ask user for a name. |
| Invalid name (not kebab-case) | Explain naming rule. Suggest valid alternative. |
| Target directory exists | Warn user. Refuse to overwrite. Offer a different path. |
| Path inside existing plugin | Recommend `/convert-plugin-to-apm` overlay instead. |
| Script fails | Capture error. Suggest manual repair or retry. |
| Validation fails | Point to specific failures in the report. Suggest fixes. |
## Mode: convert-plugin-to-apm
| Event | Action |
|-------|--------|
| Source plugin not found | Stop. Verify path. |
| Missing plugin.json | Use folder name for metadata. Warn user about missing context. |
| Full mode requested but no output path | Stop. Ask for an output destination. |
| Output path exists | Refuse to overwrite. Suggest new output folder. |
| Migration partially fails | Roll back changes if possible. Report partial success. |
| Dual-manifest conflict | Explain the risk. Suggest removing legacy `plugin.json` or documenting hybrid intent. |
| Validation fails | Point to specific failures in the report. |
## Mode: compile-apm-package
- **Primary**: `apm compile`
- **Secondary**: `apm compile --target <detected_harness>`
- **Manual**: Manually merge context fragments from `.apm/context/` if CLI fails
- **Emergency**: Check `.apm/prompts/` for malformed param placeholders
## Mode: install-apm-package
- **Primary**: `apm install` (auto-target)
- **Secondary**: `apm install --target <detected_harness>`
- **Manual**: Direct primitive authoring in `.apm/` and retry install
- **Emergency**: Run `apm audit` to check for corrupted materialization
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 |