Skip to content

richfrem/agent-plugins-skills / plugins/agent-extension-authoring/.apm/skills/packaging-with-apm

packaging-with-apm

Flagged

Packages, 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).

FileKindSize
SKILL.mdskill md5.3 KB
evals/evals.jsonconfig2.7 KB
examples/marketplace.jsonconfig45 B
references/acceptance-criteria.mdmarkdown4.6 KB
references/agent-package-manager-overview.mdmarkdown28.7 KB
references/apm-alignment-fixes.mdmarkdown5.3 KB
references/diagrams/packaging-with-apm-flow.mmdother590 B
references/fallback-tree.mdmarkdown1.8 KB
references/legacy-plugin-conversion-guide.mdmarkdown15.4 KB
references/marketplace-architecture.mdmarkdown1.5 KB
references/marketplace-schema.mdmarkdown2.5 KB
references/marketplace.mdmarkdown11.5 KB
references/modes/compile-apm-package.mdmarkdown1.7 KB
references/modes/convert-plugin-to-apm.mdmarkdown7.3 KB
references/modes/create-apm-package.mdmarkdown1.7 KB
references/modes/install-apm-package.mdmarkdown4.3 KB
references/modes/manage-marketplace.mdmarkdown2.1 KB
requirements-dev.inother657 B
requirements-dev.txtmarkdown3.3 KB
requirements.inother148 B
requirements.txtmanifest171 B
scripts/apm_build_pipeline.pyscript35.1 KB
scripts/apm_consumer.pyscript11.3 KB
scripts/apply_symlink_repairs.pyscript1.7 KB
scripts/apply_symlink_repairs.shscript40 B
scripts/audit_marketplace_sources.pyscript2.5 KB
scripts/check_for_broken_symlinks.pyexecutablescript6.6 KB
scripts/convert_symlinks_to_manifest.pyscript6.7 KB
scripts/decouple_agent_paths.pyscript9.1 KB
scripts/fix_inside_plugin_symlinks.pyscript11.3 KB
scripts/materialize_copies.pyscript5.3 KB
scripts/migrate_to_apm.pyscript16.4 KB
scripts/scaffold_apm.pyscript8.6 KB
scripts/validate_apm_package.pyscript5.7 KB
tests/test_apm_build_pipeline.pyscript10.2 KB
tests/test_apm_consumer.pyscript4.8 KB
tests/test_audit_decoupled_state.pyscript8.6 KB
tests/test_convert_symlinks_to_manifest.pyscript5.3 KB
tests/test_decouple_agent_paths.pyscript4.8 KB
tests/test_scaffold_apm.pyscript1.7 KB

references/marketplace-schema.md

View on GitHub
# Marketplace Schema Reference

A `.claude-plugin/marketplace.json` defines a catalog of distributable plugins.

## Schema Structure

```json
{
  "name": "marketplace-name",
  "owner": {
    "name": "Owner Name"
  },
  "plugins": [
    {
      "name": "plugin-name",
      "source": "source-definition",
      "strict": true,
      "category": "category-name",
      "tags": ["tag1", "tag2"]
    }
  ]
}
```

### Plugin Source Types

| Source Type | Format | Example |
|-------------|--------|---------|
| Relative Path | String | `"./plugins/my-plugin"` |
| GitHub | Object | `{"source": "github", "repo": "owner/repo", "ref": "main", "sha": "commit-sha"}` |

### Field Details

- **`name`**: Marketplace identifier (**must be kebab-case**).
- **`owner`**: Object containing a `name` field describing the maintainer.
- **`strict`**: Boolean (default `true`, **always set explicitly** — do not rely on the default).

    | Value | Requires | Behavior |
    |-------|----------|----------|
    | `true` *(default)* | Plugin **must** have its own `plugin.json` | `plugin.json` is authoritative; marketplace entry supplements |
    | `false` | Plugin **must NOT** have a `plugin.json` declaring components | Marketplace entry IS the entire definition |

    **Both mismatches silently prevent the entire plugin from loading:**
    - `strict: true` (or omitted) + **no** `plugin.json` → load failure (authority source missing)
    - `strict: false` + plugin **has** a `plugin.json` with components → conflict = load failure

    **Rule of thumb:** Monorepo plugins with their own `plugin.json` must always use `"strict": true`.
- **`category`**: Groups plugins by category for UI filtering.
- **`tags`**: Filtering support.

---

## Installation Scopes

When installing plugins, you can specify one of these scopes with `--scope`:
- **`user`** (Default): Global access across all projects (`~/.claude/settings.json`).
- **`project`**: Checked into repository for team sharing (`.claude/settings.json`).
- **`local`**: Specific to current machine but git-ignored (`.claude/settings.local.json`).

---

## Distribution Modes

### Independent Hosting
1. Create a GitHub/Git repository.
2. Commit `marketplace.json` inside a `.claude-plugin/` directory at the root.
3. Share the Absolute HTTPS Git URL with consumers.


---

## Consumer Lifecycle (2-Step Process)

To use your marketplace, consumers run:
1. **Add Marketplace**: `/plugin marketplace add <repo-or-path>` (Registers the catalog).
2. **Install Plugin**: `/plugin install <plugin-name>` (Installs individual items cached from sources).
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall