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/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).
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: 472k | 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 |