Skip to content

Give every teammate the same skills, plugins and MCP servers

You share a repository with teammates who use coding agents, and everyone’s setup is a little different. In five minutes you will add a skill, a plugin from a marketplace and an MCP server, commit the result, and watch a fresh clone get the same setup, checked against a lockfile.

You need: APM (install it), a git repository, and GitHub Copilot or Claude Code.

  1. Pick the agents you use.

    Terminal window
    apm init -y --target copilot,claude

    This writes apm.yml, the manifest that lists what your agents load. --target names the agent tools (harnesses) APM writes for: .github/ for GitHub Copilot, .claude/ for Claude Code.

  2. Install a skill, the same way npx skills add does.

    Terminal window
    apm install vercel-labs/agent-skills --skill deploy-to-vercel
    [i] Targets: claude, copilot (source: apm.yml)
    [+] vercel-labs/agent-skills #main @1a2c79d4
    |-- 1 skill(s) integrated -> .agents/skills/, .claude/skills/
    [!] 1 dependency unpinned: vercel-labs/agent-skills -- apm.lock.yaml pins the
    resolved commit; to track releases on update, add a semver range in apm.yml
    such as #^1.0.0 (a tag like #v1.0.0 stays put)
    [*] Installed 1 APM dependency in 6.5s.

    This skill follows the repository’s main branch, so APM points out that the lockfile records the exact commit you got, 1a2c79d4. Teammates get that commit until you run apm update. Add a semver range such as #^1.0.0 to follow tagged releases; a fixed tag like #v1.0.0 stays on that release.

  3. Install a plugin from a marketplace. A marketplace is a published list of plugins; this is Anthropic’s.

    Terminal window
    apm marketplace add anthropics/claude-code --ref v2.1.328
    apm install commit-commands@claude-code-plugins
    [+] anthropics/claude-plugins-official/plugins/commit-commands#main
    ...
    1 native plugin(s) deployed to .agents/plugins/ and declared in
    .claude/settings.json (Claude Code) and .github/copilot/settings.json
    (GitHub Copilot). Start a new session, or run /reload-plugins in Claude,
    to load them.
    [*] Installed 1 APM dependency in 2.3s.

    APM copies the plugin whole to .agents/plugins/commit-commands/ and declares it in .claude/settings.json and .github/copilot/settings.json, so both harnesses load the publisher’s plugin as is (Install plugins). apm.yml records where the plugin’s files actually live, so the lockfile can pin them.

  4. Add an MCP server.

    Terminal window
    apm install --mcp io.github.github/github-mcp-server --transport http
    [i] Targets: claude, copilot (source: apm.yml)
    | [+] io.github.github/github-mcp-server -> Claude Code, Copilot CLI (configured)
    [*] Configured 1 server

    One line in apm.yml, and APM writes the configuration each harness reads. No hand-edited JSON, and the same server on every machine.

  5. Commit the manifest, the lockfile and the plugin.

    apm.yml
    dependencies:
    apm:
    - git: vercel-labs/agent-skills
    skills:
    - deploy-to-vercel
    - git: https://github.com/anthropics/claude-plugins-official
    path: plugins/commit-commands
    ref: main
    mcp:
    - name: io.github.github/github-mcp-server
    transport: http
    Terminal window
    git add apm.yml apm.lock.yaml .gitignore
    git add .agents/plugins .claude/settings.json .github/copilot/settings.json
    git commit -m "Add agent dependencies"

    apm.yml says what you asked for. apm.lock.yaml records what you got: the exact commit of each source and a SHA-256 hash of every file APM wrote.

    apm.lock.yaml
    - repo_url: vercel-labs/agent-skills
    ...
    resolved_commit: 1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62
    deployed_file_hashes:
    .agents/skills/deploy-to-vercel/SKILL.md: sha256:418ca2a60d35...
    .claude/skills/deploy-to-vercel/SKILL.md: sha256:418ca2a60d35...

    APM added its download cache, apm_modules/, to .gitignore. The plugin and the two settings files let a clone load the plugin without APM. Committing the other files APM wrote is optional: any clone rebuilds them from the lockfile (should I commit them?).

  6. Be your teammate. Clone the repository into a second folder and install from the lockfile.

    Terminal window
    git clone . ../teammate && cd ../teammate
    apm install --frozen
    | [+] io.github.github/github-mcp-server -> Claude Code, Copilot CLI (configured)
    ...
    [*] Installed 2 APM dependencies and 1 MCP server in 1.5s.
    [i] Deployed files verified against apm.lock.yaml.

    --frozen installs exactly what the lockfile records and fails if apm.yml disagrees. Use it in CI. Your teammate now has:

    • Directory.agents/
      • Directoryplugins/commit-commands/ committed
        • …
      • skills/deploy-to-vercel/SKILL.md
    • Directory.claude/
      • settings.json committed
      • skills/deploy-to-vercel/SKILL.md
    • .github/copilot/settings.json committed
    • .mcp.json
  7. Check the files against the lockfile.

    Terminal window
    apm audit
    [+] Replayed 2 package(s)
    [+] No drift detected
    [*] 2 file(s) scanned -- no issues found

    apm audit rebuilds what the lockfile describes and compares it with the files on disk. It also flags hidden Unicode characters that can carry instructions a reviewer cannot see.

  • Declared a skill, a plugin and an MCP server in apm.yml, once, for two harnesses.
  • Locked them in apm.lock.yaml: exact commits and per-file hashes.
  • Verified a fresh clone against the lockfile. A file that changes shows up as drift.

Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.