[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79M4XZ6Q9340PPTPV0JZ18C":3,"skill-same:01M79M4XZ6Q9340PPTPV0JZ18C":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M79M4XZ6Q9340PPTPV0JZ18C","agent-marketplace",null,"How to use the agent-marketplace CLI to install shared AI agent resources from Git, directory, or hosted Marketplace sources and materialize them into native harness layouts. Use when setting up a repo, writing `.agents\u002Fconfig.yaml`, installing\u002Fremoving skills, commands, subagents, hooks, MCP servers, or collections, checking sync drift, updating locks, preparing pre-upgrade configuration conversion, or repairing shared harness config ownership.","Adyen\u002Fagent-marketplace","Adyen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9713612?v=4","01M79KZGET744R01BG4Z41AKHA","01M79KZGFVFKFCS2KA7JQTBAWA",92,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fagent-marketplace\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-marketplace\ndescription: >\n  How to use the agent-marketplace CLI to install shared AI agent resources\n  from Git, directory, or hosted Marketplace sources and materialize them into\n  native harness layouts. Use when setting up a repo, writing\n  `.agents\u002Fconfig.yaml`, installing\u002Fremoving skills, commands, subagents,\n  hooks, MCP servers, or collections, checking sync drift, updating locks,\n  preparing pre-upgrade configuration conversion, or repairing shared harness\n  config ownership.\nmetadata:\n  tags:\n    - cli\n    - skills\n    - setup\n---\n\n# agent-marketplace\n\nThe full user documentation lives in the repository's\n[`site\u002Fdocs`](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Findex.md).\nThis skill caches what an agent needs most often; the\n[CLI reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fcli.md),\n[configuration reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fconfiguration.md),\nand `agent-marketplace \u003Ccommand> --help` own the exhaustive detail.\n\n## Quick Start\n\nFor a new setup, use the example below. For an existing installation, first\nfollow [Convert before upgrading](#convert-before-upgrading); do not overwrite\nauthored configuration or relabel legacy fields as v4.\n\n```bash\nagent-marketplace init --harnesses claude,codex   # ~\u002F.agents\u002Fconfig.yaml (v4, targets only)\n\nmkdir -p .agents\ncat > .agents\u002Fconfig.yaml \u003C\u003C 'EOF'\napiVersion: agent-marketplace\u002Fv4\nsources:\n  infra:\n    git: git@github.com:example-org\u002Finfra-skills.git\n    ref: main\n    path: skills\nresources:\n  infra:\n    include:\n      - skill\u002Fvm-lifecycle\n      - command\u002Fdeploy\nEOF\n\nagent-marketplace sync      # writes .agents\u002Flock.yaml and native harness files\nagent-marketplace status\ngit add .agents\u002Fconfig.yaml .agents\u002Flock.yaml\n```\n\nBare `agent-marketplace` on a terminal opens the TUI; on first launch it asks\nfor the target harnesses. When no user config exists, a plain `sync` creates\none with `harnesses: [factory, windsurf]`, so declare targets first.\n\n## Configuration\n\n`apiVersion: agent-marketplace\u002Fv4` is the only supported consumer schema;\n`init`, `install`, `remove`, and the TUI create v4 files. Every existing root,\nincluding organization and personal-local, requires that exact string. An\nomitted root version fails with `v4.api-version-required`; explicit unsupported\nor invalid values fail with `v4.api-version`, naming the authored file and\n`apiVersion` field. Included fragments under a validated v4 root may omit the\nfield or declare exact v4. An existing empty\u002Fversionless file is not absent.\n\nUnsupported input refuses before new acquisition, config\u002Flock staging or\npublication, or harness writes\u002Fprunes, preserving bytes and metadata and\ncreating no missing writable root or lock. Ordinary logs remain allowed. Safe\nrecovery of a pre-existing journal may finish already-admitted writes before\nfresh validation; read-only dependency modes refuse pending work without replay.\nThe v4 runtime adapter remains independent of on-disk consumer syntax.\n\n### Layers\n\n| Layer | Config | Lock |\n|---|---|---|\n| Organization | `\u002Fetc\u002Fagent-marketplace\u002Fconfig.yaml` | `\u002Fetc\u002Fagent-marketplace\u002Flock.yaml` |\n| User | `~\u002F.agents\u002Fconfig.yaml` | `~\u002F.agents\u002Flock.yaml` |\n| Repository | `\u003Crepo>\u002F.agents\u002Fconfig.yaml` | `\u003Crepo>\u002F.agents\u002Flock.yaml` |\n| Repository personal | `\u003Crepo>\u002F.agents\u002Fconfig.local.yaml` | `\u003Crepo>\u002F.agents\u002Flock.local.yaml` |\n\nLayers merge organization → user → repository → personal. Repo and personal\nselections target the first non-empty `harnesses:` list in repository, then\nuser, then organization. User and organization selections target the user list,\nthen the organization list, and use the repository list only when neither sets\none, so a repository never narrows machine output. Lists are never combined.\nRepo and personal selections install under repo roots; user and organization\nselections install under machine roots. The\npersonal file cannot set `harnesses` or allowlists, and the CLI adds it and its\nlock to `.gitignore`. Every layer supports local-file `include:` (one path or a\nlist); fragments merge below the including file, and editors refuse to edit a\nselection that lives in a fragment (`config.edit.include-owned`).\n\n### Sources and resource groups\n\n```yaml\napiVersion: agent-marketplace\u002Fv4\nharnesses: [claude, cursor, devin, codex]\nsources:\n  shared:                        # name is a label local to this file\n    git: https:\u002F\u002Fgithub.com\u002Fexample-org\u002Fagent-resources.git\n    ref: v1.4.0                  # required for git\n    path: resources              # optional subdirectory\n    source_harness: claude       # optional; omit to autodetect\n  local:\n    directory: .\u002Fagent-resources # read live, never locked\n  company:\n    marketplace: https:\u002F\u002Fmarketplace.example.com\nresources:\n  shared:\n    include: [skill\u002Fcode-review, command\u002Frelease, collection\u002Fplatform-onboarding]\n    tags: [platform]\n    exclude: [skill\u002Flegacy-review]\n    harnesses: [claude]          # narrows targets, never widens\n  local: [skill\u002Fscratch]         # plain list = include only\n  company:\n    - shared-agents\u002Fskill\u002Freview:\n        revision: sha256:\u003C64 lowercase hex>\n```\n\n- A source has exactly one of `git`, `directory`, or `marketplace`. Every\n  `resources` key must name a source declared in the same file or its includes.\n- Git\u002Fdirectory locators are `\u003Ckind>\u002F\u003Cname>`; Marketplace locators are\n  `\u003Cregistry-slug>\u002F\u003Ckind>\u002F\u003Cname>`. Kinds: `skill`, `command`, `subagent`,\n  `hook`, `mcp`, `collection`.\n- Group fields: `include`, `exclude` (`*`, `\u003Ckind>\u002F*`, `\u003Ckind>\u002F\u003Cname>`),\n  `tags`, `all: true`, `required: true` (protects selections from excludes and\n  `remove`, selects nothing itself), `harnesses`.\n- Exclusions apply after inclusions within a file. Required resources are never\n  excluded.\n- Relative `directory:` paths in `.agents\u002Fconfig.yaml`\u002F`config.local.yaml`\n  resolve from the repo root; in other files, from the declaring file.\n- Git and directory resources take their version from the source `ref`; declare\n  a second source for another ref. `revision` is Marketplace-only.\n- Other root fields: `allowed_registries`, `allowed_marketplaces` (regex\n  allowlists), `materialization` (`mode: symlink|file`, per-target `targets`),\n  plus machine-only `backup`, `logging`, `telemetry`.\n\nUnknown fields, YAML aliases\u002Fmerge keys, and duplicate keys are rejected with\n`v4.*` diagnostics; the message names the setting.\n\n## Output paths\n\n| Harness | Repo root | Machine root | Skill \u002F command |\n|---|---|---|---|\n| `claude` | `.claude` | `~\u002F.claude` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` |\n| `factory` | `.factory` | `~\u002F.factory` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` (always copied) |\n| `cursor` | `.cursor` | `~\u002F.cursor` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` |\n| `windsurf` | `\u003Crepo>` (`.windsurf\u002F…`) | `~\u002F.codeium\u002Fwindsurf` | `skills\u002F\u003Cname>\u002FSKILL.md`, `workflows\u002F` (machine: `global_workflows\u002F`) |\n| `gemini` | `.gemini` | `~\u002F.gemini` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.toml` |\n| `devin` | `.devin` | `~\u002F.config\u002Fdevin` | `skills\u002F\u003Cname>\u002FSKILL.md` for both |\n| `codex` | `.agents` + `.codex` | `~\u002F.agents` + `$CODEX_HOME` or `~\u002F.codex` | `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` for both |\n\nDevin and Codex commands are skill directories whose `SKILL.md` carries\n`x-agent-marketplace-kind: command`. Shared aggregate files hold hooks and MCP\nservers: Claude MCP goes to `\u003Crepo>\u002F.mcp.json` or `~\u002F.claude.json`; Gemini uses\n`settings.json`; Devin uses `hooks.v1.json` (machine: `config.json#hooks`) and\n`mcp_config.json`; Codex uses `.codex\u002Fhooks.json` and `.codex\u002Fconfig.toml`.\nWindsurf has no subagents. The\n[output paths reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fharnesses-and-output-paths.md)\nlists every kind per harness.\n\nDefault `symlink` mode links skills, commands, and subagents into\n`~\u002F.cache\u002Fagent-marketplace\u002Fcompiled\u002F\u003Charness>\u002F`; `materialization.mode: file`\nwrites regular trees for every harness. Commit config and locks; ignore the\ngenerated roots you use (for example `.claude\u002Fskills\u002F`,\n`.claude\u002F.claude-plugin\u002F`, `.devin\u002F`).\n\n### Shared aggregate ownership\n\nSync edits shared files entry by entry and keeps handwritten entries, comments,\nand unrelated settings.\n\n- Claude, Factory, Cursor, Windsurf, and Gemini hooks mark entries with\n  `\"_managed_by\": \"agent-marketplace\"`.\n- Devin, Codex, and Gemini MCP carry no marker. Ownership lives under\n  `$XDG_STATE_HOME\u002Fagent-marketplace` (default `~\u002F.local\u002Fstate\u002Fagent-marketplace`).\n  When that state is missing or corrupt, sync preserves every entry, refuses\n  collisions, and prunes nothing. A raw safety backup (five newest per file) is\n  taken before each mutation, even with backups disabled.\n- Codex repo changes print `materialize.codex.trust-review`; the CLI never\n  edits Codex trust or `.gitignore`. `CODEX_HOME` must be absolute and moves\n  only the `.codex` partition.\n\n## Locks\n\nEach layer's lock records the exact Git commit and inventory for the sources\nthat layer declares, plus verified Marketplace revisions. Directory sources are\nnever locked. The CLI writes `agent-marketplace-lock\u002Fv2` (read by v4.0.9+) and\nreads v1. The organization lock may be absent permanently; only\n`lock --scope organization` writes it. A current lock does not move when the\nbranch moves: use `update` or `lock --upgrade`. Never hand-edit a lock.\n\n## Daily commands\n\n```bash\nagent-marketplace list [--kind skill|command|subagent|hook|mcp|collection]\nagent-marketplace list --from \u003Cgit-or-web-url> [--ref R] [--path P]  # ad hoc, no config write\nagent-marketplace install \u003Cname> [--kind K] [--scope user|repo|local]  # default user\nagent-marketplace install \u003Ccollection>\nagent-marketplace install --tag \u003Ctag> [--kind K]       # default user\nagent-marketplace install --all [--kind K] [--registry URL]  # default user\nagent-marketplace install --from \u003Curl> [\u003Cname>] [--ref R] [--path P]\nagent-marketplace install \u003Cmarketplace-endpoint>       # registers endpoint (user scope)\nagent-marketplace install alias:registry\u002Fkind\u002Fname[@sha256:...] [--as local-name]\nagent-marketplace search [query] [--marketplace alias|url|all]\nagent-marketplace remove \u003Cname> [--kind K] [--scope repo|user|local]\nagent-marketplace remove --from \u003Curl> [\u003Cname>] [--ref R] [--path P]\nagent-marketplace sync                 # materialize; reconcile stale writable locks\nagent-marketplace sync --locked        # CI: require fresh locks, write no config\u002Flocks\nagent-marketplace sync --check         # exit 1 on lock or output drift; writes nothing\nagent-marketplace sync --offline       # trusted caches only\nagent-marketplace sync --strict -v     # missing\u002Funloadable selections become errors\nagent-marketplace status               # targets, locks, synced resources, drift\nagent-marketplace update [--scope S] [--registry URL]   # advance Git locks, then sync\nagent-marketplace lock [--check|--upgrade] [--scope S]\nagent-marketplace doctor [--repair [--yes]]\nagent-marketplace gc --dry-run         # cache cleanup sees only the current repo\nagent-marketplace backup create|list|restore --target \u003Charness>\nagent-marketplace deinit               # remove managed artifacts and cache\n```\n\n- `remove` drops an explicit selection, or records an exclusion when a\n  collection, tag, or `all` selected the resource. Required resources cannot\n  be removed. When the same resource is enabled at machine and repo scope, an\n  unscoped `remove` reports the ambiguity; pass `--scope`. An explicit scope\n  never falls back to another, and repo\u002Flocal scope cannot hide machine\n  resources.\n- `--kind` disambiguates a name used by more than one kind.\n- `update --bump` rewrites eligible refs in v4 `sources:` to newer tags that\n  differ only in the final number, then updates locks and syncs. Refs declared\n  by included fragments are reported and left unchanged.\n- Read-only commands (`sync --check\u002F--locked\u002F--offline`, `lock --check`,\n  `list`, `status`) fail with `dependency.recovery-required` after an\n  interrupted write; a plain `sync` or `lock` completes the recovery.\n\n### `doctor` and `doctor --repair`\n\n`doctor` reports repo detection, config diagnostics, harness roots, unmet\nprerequisites, and Devin CLI compatibility (3000.3 floor; it only recommends\nadding `devin`). `--repair` covers Devin and Codex aggregate ownership: it\npreviews exact adoption matches, evidence-backed orphans, and value conflicts.\n`--yes` adopts byte-identical matches only; removing an orphan or replacing a\nconflict always needs an interactive per-entry confirmation. Off a terminal,\n`--repair` without `--yes` only previews.\n\n## Hosted Marketplaces\n\nRegister an endpoint with `install \u003Curl>` (adds a `marketplace` source), then\ninstall by locator. Installation resolves and verifies the exact revision,\nrecords it in the owning layer's lock, and prompts before accepting security\nfindings (`--accept-risk`\u002F`--yes` in automation). A Marketplace group selects\nthrough explicit `include` only; `tags`, `all`, and group `harnesses` fail at\nrun time with `v4.marketplace-runtime-unsupported`. A missing or mismatched lock\nrecord fails with `v4.marketplace-lock-required`\u002F`-mismatch`; a writing `sync`\nor `lock` records selected Marketplace resources missing from an existing lock\nwhile keeping existing pins, and read-only modes (`--check`, `--locked`,\n`--offline`, `doctor`) never write. When an organization intentionally deploys\nno acquisition lock, `--locked`, `--offline`, and `lock --check` refuse\n`v4.marketplace-lock-required` with a hint naming an online `agent-marketplace\nsync` or `sync --check`, which verifies the organization's Marketplace\nrequests transiently, instead of the administrator.\n\n## Resource prerequisites\n\nResources declare advisory prerequisites in their own frontmatter\n(`metadata.requires`), never in `.agents\u002Fconfig.yaml`. A prerequisite is met\nwhen a resource of that kind and name is selected from any source or layer.\nUnmet prerequisites warn during `install`, `sync`, `sync --check`, and `doctor`,\nand appear under `UNMET REQUIREMENTS` in `status`; they never install anything,\nnever override an exclude, and never fail `sync --check`.\n\n## Convert before upgrading\n\nThe shipped CLI has no `migrate` command, startup conversion prompt, TUI\nmigration modal, or legacy reader\u002Feditor. Before replacing an older binary,\nuse an **older released migrator** to convert every writable user, repo, and\npersonal-local root and verify its entire include tree. Have the externally\nowned organization configuration converted and deployed by its administrator.\n\nConversion can refuse include trees, unrepresentable legacy input, or exact\nMarketplace pins without verified cache evidence. Resolve refusals before\nupgrading; never advise merely changing the version string, flattening away\npolicy, or fabricating evidence. See the\n[pre-upgrade guide](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Fhow-to\u002Fmigrate-configuration.md).\nKeep backups and a compatible older binary for rollback. Lock v1 reads\u002Fv2\nwrites, source-revision compatibility, Marketplace operator\n`agent-marketplace.io\u002Fmarketplace\u002Fv1`, APIs\u002Fartifacts, and native harness schemas\nare independent and remain supported.\n\n## Gotchas\n\n- **No selection, no output**: a source without an `include`, `tags`, or `all`\n  selection only contributes to `list`.\n- **No target, no output**: missing `.devin\u002F` or `.codex\u002F` output means the\n  harness is not in the effective list (`status` → `TARGET HARNESS SET`).\n- **Name collisions pick one winner**: same kind and name from different\n  sources resolves by `required`, then layer\u002Ffile precedence, then\n  alphabetical normalized origin, with a warning. Hooks are the exception: all\n  are installed. A skill and a command may share a name.\n- **Collections cannot add registries**: a member naming another registry needs\n  that registry configured as a source first.\n- **Private Git sources**: prefer SSH URLs; HTTPS fails when terminal prompts\n  are disabled.\n- **`gc` sees only the current repository**: it can delete a cache entry another\n  repo needs; run `--dry-run` first.\n- **Keep `~\u002F.local\u002Fstate\u002Fagent-marketplace`**: it is the ownership authority,\n  not a cache. Deleting it stops sync from pruning what it wrote; use\n  `doctor --repair` to re-adopt.\n","# agent-marketplace\n\nThe full user documentation lives in the repository's\n[`site\u002Fdocs`](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Findex.md).\nThis skill caches what an agent needs most often; the\n[CLI reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fcli.md),\n[configuration reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fconfiguration.md),\nand `agent-marketplace \u003Ccommand> --help` own the exhaustive detail.\n\n## Quick Start\n\nFor a new setup, use the example below. For an existing installation, first\nfollow [Convert before upgrading](#convert-before-upgrading); do not overwrite\nauthored configuration or relabel legacy fields as v4.\n\n```bash\nagent-marketplace init --harnesses claude,codex   # ~\u002F.agents\u002Fconfig.yaml (v4, targets only)\n\nmkdir -p .agents\ncat > .agents\u002Fconfig.yaml \u003C\u003C 'EOF'\napiVersion: agent-marketplace\u002Fv4\nsources:\n  infra:\n    git: git@github.com:example-org\u002Finfra-skills.git\n    ref: main\n    path: skills\nresources:\n  infra:\n    include:\n      - skill\u002Fvm-lifecycle\n      - command\u002Fdeploy\nEOF\n\nagent-marketplace sync      # writes .agents\u002Flock.yaml and native harness files\nagent-marketplace status\ngit add .agents\u002Fconfig.yaml .agents\u002Flock.yaml\n```\n\nBare `agent-marketplace` on a terminal opens the TUI; on first launch it asks\nfor the target harnesses. When no user config exists, a plain `sync` creates\none with `harnesses: [factory, windsurf]`, so declare targets first.\n\n## Configuration\n\n`apiVersion: agent-marketplace\u002Fv4` is the only supported consumer schema;\n`init`, `install`, `remove`, and the TUI create v4 files. Every existing root,\nincluding organization and personal-local, requires that exact string. An\nomitted root version fails with `v4.api-version-required`; explicit unsupported\nor invalid values fail with `v4.api-version`, naming the authored file and\n`apiVersion` field. Included fragments under a validated v4 root may omit the\nfield or declare exact v4. An existing empty\u002Fversionless file is not absent.\n\nUnsupported input refuses before new acquisition, config\u002Flock staging or\npublication, or harness writes\u002Fprunes, preserving bytes and metadata and\ncreating no missing writable root or lock. Ordinary logs remain allowed. Safe\nrecovery of a pre-existing journal may finish already-admitted writes before\nfresh validation; read-only dependency modes refuse pending work without replay.\nThe v4 runtime adapter remains independent of on-disk consumer syntax.\n\n### Layers\n\n| Layer | Config | Lock |\n|---|---|---|\n| Organization | `\u002Fetc\u002Fagent-marketplace\u002Fconfig.yaml` | `\u002Fetc\u002Fagent-marketplace\u002Flock.yaml` |\n| User | `~\u002F.agents\u002Fconfig.yaml` | `~\u002F.agents\u002Flock.yaml` |\n| Repository | `\u003Crepo>\u002F.agents\u002Fconfig.yaml` | `\u003Crepo>\u002F.agents\u002Flock.yaml` |\n| Repository personal | `\u003Crepo>\u002F.agents\u002Fconfig.local.yaml` | `\u003Crepo>\u002F.agents\u002Flock.local.yaml` |\n\nLayers merge organization → user → repository → personal. Repo and personal\nselections target the first non-empty `harnesses:` list in repository, then\nuser, then organization. User and organization selections target the user list,\nthen the organization list, and use the repository list only when neither sets\none, so a repository never narrows machine output. Lists are never combined.\nRepo and personal selections install under repo roots; user and organization\nselections install under machine roots. The\npersonal file cannot set `harnesses` or allowlists, and the CLI adds it and its\nlock to `.gitignore`. Every layer supports local-file `include:` (one path or a\nlist); fragments merge below the including file, and editors refuse to edit a\nselection that lives in a fragment (`config.edit.include-owned`).\n\n### Sources and resource groups\n\n```yaml\napiVersion: agent-marketplace\u002Fv4\nharnesses: [claude, cursor, devin, codex]\nsources:\n  shared:                        # name is a label local to this file\n    git: https:\u002F\u002Fgithub.com\u002Fexample-org\u002Fagent-resources.git\n    ref: v1.4.0                  # required for git\n    path: resources              # optional subdirectory\n    source_harness: claude       # optional; omit to autodetect\n  local:\n    directory: .\u002Fagent-resources # read live, never locked\n  company:\n    marketplace: https:\u002F\u002Fmarketplace.example.com\nresources:\n  shared:\n    include: [skill\u002Fcode-review, command\u002Frelease, collection\u002Fplatform-onboarding]\n    tags: [platform]\n    exclude: [skill\u002Flegacy-review]\n    harnesses: [claude]          # narrows targets, never widens\n  local: [skill\u002Fscratch]         # plain list = include only\n  company:\n    - shared-agents\u002Fskill\u002Freview:\n        revision: sha256:\u003C64 lowercase hex>\n```\n\n- A source has exactly one of `git`, `directory`, or `marketplace`. Every\n  `resources` key must name a source declared in the same file or its includes.\n- Git\u002Fdirectory locators are `\u003Ckind>\u002F\u003Cname>`; Marketplace locators are\n  `\u003Cregistry-slug>\u002F\u003Ckind>\u002F\u003Cname>`. Kinds: `skill`, `command`, `subagent`,\n  `hook`, `mcp`, `collection`.\n- Group fields: `include`, `exclude` (`*`, `\u003Ckind>\u002F*`, `\u003Ckind>\u002F\u003Cname>`),\n  `tags`, `all: true`, `required: true` (protects selections from excludes and\n  `remove`, selects nothing itself), `harnesses`.\n- Exclusions apply after inclusions within a file. Required resources are never\n  excluded.\n- Relative `directory:` paths in `.agents\u002Fconfig.yaml`\u002F`config.local.yaml`\n  resolve from the repo root; in other files, from the declaring file.\n- Git and directory resources take their version from the source `ref`; declare\n  a second source for another ref. `revision` is Marketplace-only.\n- Other root fields: `allowed_registries`, `allowed_marketplaces` (regex\n  allowlists), `materialization` (`mode: symlink|file`, per-target `targets`),\n  plus machine-only `backup`, `logging`, `telemetry`.\n\nUnknown fields, YAML aliases\u002Fmerge keys, and duplicate keys are rejected with\n`v4.*` diagnostics; the message names the setting.\n\n## Output paths\n\n| Harness | Repo root | Machine root | Skill \u002F command |\n|---|---|---|---|\n| `claude` | `.claude` | `~\u002F.claude` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` |\n| `factory` | `.factory` | `~\u002F.factory` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` (always copied) |\n| `cursor` | `.cursor` | `~\u002F.cursor` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.md` |\n| `windsurf` | `\u003Crepo>` (`.windsurf\u002F…`) | `~\u002F.codeium\u002Fwindsurf` | `skills\u002F\u003Cname>\u002FSKILL.md`, `workflows\u002F` (machine: `global_workflows\u002F`) |\n| `gemini` | `.gemini` | `~\u002F.gemini` | `skills\u002F\u003Cname>\u002FSKILL.md`, `commands\u002F\u003Cname>.toml` |\n| `devin` | `.devin` | `~\u002F.config\u002Fdevin` | `skills\u002F\u003Cname>\u002FSKILL.md` for both |\n| `codex` | `.agents` + `.codex` | `~\u002F.agents` + `$CODEX_HOME` or `~\u002F.codex` | `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` for both |\n\nDevin and Codex commands are skill directories whose `SKILL.md` carries\n`x-agent-marketplace-kind: command`. Shared aggregate files hold hooks and MCP\nservers: Claude MCP goes to `\u003Crepo>\u002F.mcp.json` or `~\u002F.claude.json`; Gemini uses\n`settings.json`; Devin uses `hooks.v1.json` (machine: `config.json#hooks`) and\n`mcp_config.json`; Codex uses `.codex\u002Fhooks.json` and `.codex\u002Fconfig.toml`.\nWindsurf has no subagents. The\n[output paths reference](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Freference\u002Fharnesses-and-output-paths.md)\nlists every kind per harness.\n\nDefault `symlink` mode links skills, commands, and subagents into\n`~\u002F.cache\u002Fagent-marketplace\u002Fcompiled\u002F\u003Charness>\u002F`; `materialization.mode: file`\nwrites regular trees for every harness. Commit config and locks; ignore the\ngenerated roots you use (for example `.claude\u002Fskills\u002F`,\n`.claude\u002F.claude-plugin\u002F`, `.devin\u002F`).\n\n### Shared aggregate ownership\n\nSync edits shared files entry by entry and keeps handwritten entries, comments,\nand unrelated settings.\n\n- Claude, Factory, Cursor, Windsurf, and Gemini hooks mark entries with\n  `\"_managed_by\": \"agent-marketplace\"`.\n- Devin, Codex, and Gemini MCP carry no marker. Ownership lives under\n  `$XDG_STATE_HOME\u002Fagent-marketplace` (default `~\u002F.local\u002Fstate\u002Fagent-marketplace`).\n  When that state is missing or corrupt, sync preserves every entry, refuses\n  collisions, and prunes nothing. A raw safety backup (five newest per file) is\n  taken before each mutation, even with backups disabled.\n- Codex repo changes print `materialize.codex.trust-review`; the CLI never\n  edits Codex trust or `.gitignore`. `CODEX_HOME` must be absolute and moves\n  only the `.codex` partition.\n\n## Locks\n\nEach layer's lock records the exact Git commit and inventory for the sources\nthat layer declares, plus verified Marketplace revisions. Directory sources are\nnever locked. The CLI writes `agent-marketplace-lock\u002Fv2` (read by v4.0.9+) and\nreads v1. The organization lock may be absent permanently; only\n`lock --scope organization` writes it. A current lock does not move when the\nbranch moves: use `update` or `lock --upgrade`. Never hand-edit a lock.\n\n## Daily commands\n\n```bash\nagent-marketplace list [--kind skill|command|subagent|hook|mcp|collection]\nagent-marketplace list --from \u003Cgit-or-web-url> [--ref R] [--path P]  # ad hoc, no config write\nagent-marketplace install \u003Cname> [--kind K] [--scope user|repo|local]  # default user\nagent-marketplace install \u003Ccollection>\nagent-marketplace install --tag \u003Ctag> [--kind K]       # default user\nagent-marketplace install --all [--kind K] [--registry URL]  # default user\nagent-marketplace install --from \u003Curl> [\u003Cname>] [--ref R] [--path P]\nagent-marketplace install \u003Cmarketplace-endpoint>       # registers endpoint (user scope)\nagent-marketplace install alias:registry\u002Fkind\u002Fname[@sha256:...] [--as local-name]\nagent-marketplace search [query] [--marketplace alias|url|all]\nagent-marketplace remove \u003Cname> [--kind K] [--scope repo|user|local]\nagent-marketplace remove --from \u003Curl> [\u003Cname>] [--ref R] [--path P]\nagent-marketplace sync                 # materialize; reconcile stale writable locks\nagent-marketplace sync --locked        # CI: require fresh locks, write no config\u002Flocks\nagent-marketplace sync --check         # exit 1 on lock or output drift; writes nothing\nagent-marketplace sync --offline       # trusted caches only\nagent-marketplace sync --strict -v     # missing\u002Funloadable selections become errors\nagent-marketplace status               # targets, locks, synced resources, drift\nagent-marketplace update [--scope S] [--registry URL]   # advance Git locks, then sync\nagent-marketplace lock [--check|--upgrade] [--scope S]\nagent-marketplace doctor [--repair [--yes]]\nagent-marketplace gc --dry-run         # cache cleanup sees only the current repo\nagent-marketplace backup create|list|restore --target \u003Charness>\nagent-marketplace deinit               # remove managed artifacts and cache\n```\n\n- `remove` drops an explicit selection, or records an exclusion when a\n  collection, tag, or `all` selected the resource. Required resources cannot\n  be removed. When the same resource is enabled at machine and repo scope, an\n  unscoped `remove` reports the ambiguity; pass `--scope`. An explicit scope\n  never falls back to another, and repo\u002Flocal scope cannot hide machine\n  resources.\n- `--kind` disambiguates a name used by more than one kind.\n- `update --bump` rewrites eligible refs in v4 `sources:` to newer tags that\n  differ only in the final number, then updates locks and syncs. Refs declared\n  by included fragments are reported and left unchanged.\n- Read-only commands (`sync --check\u002F--locked\u002F--offline`, `lock --check`,\n  `list`, `status`) fail with `dependency.recovery-required` after an\n  interrupted write; a plain `sync` or `lock` completes the recovery.\n\n### `doctor` and `doctor --repair`\n\n`doctor` reports repo detection, config diagnostics, harness roots, unmet\nprerequisites, and Devin CLI compatibility (3000.3 floor; it only recommends\nadding `devin`). `--repair` covers Devin and Codex aggregate ownership: it\npreviews exact adoption matches, evidence-backed orphans, and value conflicts.\n`--yes` adopts byte-identical matches only; removing an orphan or replacing a\nconflict always needs an interactive per-entry confirmation. Off a terminal,\n`--repair` without `--yes` only previews.\n\n## Hosted Marketplaces\n\nRegister an endpoint with `install \u003Curl>` (adds a `marketplace` source), then\ninstall by locator. Installation resolves and verifies the exact revision,\nrecords it in the owning layer's lock, and prompts before accepting security\nfindings (`--accept-risk`\u002F`--yes` in automation). A Marketplace group selects\nthrough explicit `include` only; `tags`, `all`, and group `harnesses` fail at\nrun time with `v4.marketplace-runtime-unsupported`. A missing or mismatched lock\nrecord fails with `v4.marketplace-lock-required`\u002F`-mismatch`; a writing `sync`\nor `lock` records selected Marketplace resources missing from an existing lock\nwhile keeping existing pins, and read-only modes (`--check`, `--locked`,\n`--offline`, `doctor`) never write. When an organization intentionally deploys\nno acquisition lock, `--locked`, `--offline`, and `lock --check` refuse\n`v4.marketplace-lock-required` with a hint naming an online `agent-marketplace\nsync` or `sync --check`, which verifies the organization's Marketplace\nrequests transiently, instead of the administrator.\n\n## Resource prerequisites\n\nResources declare advisory prerequisites in their own frontmatter\n(`metadata.requires`), never in `.agents\u002Fconfig.yaml`. A prerequisite is met\nwhen a resource of that kind and name is selected from any source or layer.\nUnmet prerequisites warn during `install`, `sync`, `sync --check`, and `doctor`,\nand appear under `UNMET REQUIREMENTS` in `status`; they never install anything,\nnever override an exclude, and never fail `sync --check`.\n\n## Convert before upgrading\n\nThe shipped CLI has no `migrate` command, startup conversion prompt, TUI\nmigration modal, or legacy reader\u002Feditor. Before replacing an older binary,\nuse an **older released migrator** to convert every writable user, repo, and\npersonal-local root and verify its entire include tree. Have the externally\nowned organization configuration converted and deployed by its administrator.\n\nConversion can refuse include trees, unrepresentable legacy input, or exact\nMarketplace pins without verified cache evidence. Resolve refusals before\nupgrading; never advise merely changing the version string, flattening away\npolicy, or fabricating evidence. See the\n[pre-upgrade guide](https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fsite\u002Fdocs\u002Fhow-to\u002Fmigrate-configuration.md).\nKeep backups and a compatible older binary for rollback. Lock v1 reads\u002Fv2\nwrites, source-revision compatibility, Marketplace operator\n`agent-marketplace.io\u002Fmarketplace\u002Fv1`, APIs\u002Fartifacts, and native harness schemas\nare independent and remain supported.\n\n## Gotchas\n\n- **No selection, no output**: a source without an `include`, `tags`, or `all`\n  selection only contributes to `list`.\n- **No target, no output**: missing `.devin\u002F` or `.codex\u002F` output means the\n  harness is not in the effective list (`status` → `TARGET HARNESS SET`).\n- **Name collisions pick one winner**: same kind and name from different\n  sources resolves by `required`, then layer\u002Ffile precedence, then\n  alphabetical normalized origin, with a warning. Hooks are the exception: all\n  are installed. A skill and a command may share a name.\n- **Collections cannot add registries**: a member naming another registry needs\n  that registry configured as a source first.\n- **Private Git sources**: prefer SSH URLs; HTTPS fails when terminal prompts\n  are disabled.\n- **`gc` sees only the current repository**: it can delete a cache entry another\n  repo needs; run `--dry-run` first.\n- **Keep `~\u002F.local\u002Fstate\u002Fagent-marketplace`**: it is the ownership authority,\n  not a cache. Deleting it stops sync from pruning what it wrote; use\n  `doctor --repair` to re-adopt.\n",{"name":5,"metadata":23,"description":28},{"tags":24},[25,26,27],"cli","skills","setup","How to use the agent-marketplace CLI to install shared AI agent resources from Git, directory, or hosted Marketplace sources and materialize them into native harness layouts. Use when setting up a repo, writing `.agents\u002Fconfig.yaml`, installing\u002Fremoving skills, commands, subagents, hooks, MCP servers, or collections, checking sync drift, updating locks, preparing pre-upgrade configuration conversion, or repairing shared harness config ownership.\n","main","75e0f3781ee8523700058c36a01961f93be5be89","skills\u002Fagent-marketplace",5,"https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace","https:\u002F\u002Fagent-marketplace.io","https:\u002F\u002Fgithub.com\u002FAdyen","adyen.com","2026-11-15 04:37:04",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Adyen\u002Fagent-marketplace --skill agent-marketplace",{"tool":44,"command":45},"bunx","bunx skills add Adyen\u002Fagent-marketplace --skill agent-marketplace",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Adyen\u002Fagent-marketplace --skill agent-marketplace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fagent-marketplace\u002FSKILL.md",true,[],[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M79M5C4NVX43MJ0VTB12P25F","greeting","A simple example skill that greets the user","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Ftestdata\u002Fexample-skills-registry\u002Fskills\u002Fgreeting\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M79M59F0JDP99KPDXJ628X9Y","code-explainer","Explains code snippets in plain language","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Ftestdata\u002Fexample-combined-registry\u002Fskills\u002Fcode-explainer\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M79M546WGNYRMDDMN06V57FS","registry-authoring","How to create and maintain a registry that agent-marketplace can discover, ingest, and sync into harness-native layouts. Use when creating a registry repo, adding skills, commands, subagents, hooks, MCP servers, or collections to one, writing registry CI validation, releasing a registry, or troubleshooting resources that are missing or malformed.","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fregistry-authoring\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M79M4ND8VP3NGSY1JMT2E9YD","agent-marketplace-development","How to develop on the agent-marketplace codebase itself: architecture tour, testing workflow, TUI (Bubble Tea) and CLI (Cobra) conventions, and the config\u002Fresolver\u002Fmaterialization invariants that every change must preserve. Use when adding features, fixing bugs, or reviewing changes to the agent-marketplace Go binary, running local TUI QA, or maintaining harness compatibility validation. Every TUI change must ship a real-terminal TUI QA journey that proves the changed flow.","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fagent-marketplace-development\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M79M4KMFK19FXXGY2SW6V5ZW","demo-skill","Demo skill for golden testing","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fpkg\u002Fharness-compilation\u002Ftestdata\u002Fresources\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[],{"skillNo":89,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M79M4GJNSKNYCYDSDRTMQX01","https:\u002F\u002Fgithub.com\u002FAdyen\u002Fagent-marketplace\u002Fblob\u002Fmain\u002Fpkg\u002Fharness-compilation\u002Ftestdata\u002Fmatrix\u002Fskill\u002Finputs\u002Fwindsurf\u002F.windsurf\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[]]