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.
-
Pick the agents you use.
Terminal window apm init -y --target copilot,claudeThis writes
apm.yml, the manifest that lists what your agents load.--targetnames the agent tools (harnesses) APM writes for:.github/for GitHub Copilot,.claude/for Claude Code. -
Install a skill, the same way
npx skills adddoes.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 theresolved commit; to track releases on update, add a semver range in apm.ymlsuch 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
mainbranch, so APM points out that the lockfile records the exact commit you got,1a2c79d4. Teammates get that commit until you runapm update. Add a semver range such as#^1.0.0to follow tagged releases; a fixed tag like#v1.0.0stays on that release. -
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.328apm 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.jsonand.github/copilot/settings.json, so both harnesses load the publisher’s plugin as is (Install plugins).apm.ymlrecords where the plugin’s files actually live, so the lockfile can pin them. -
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 serverOne line in
apm.yml, and APM writes the configuration each harness reads. No hand-edited JSON, and the same server on every machine. -
Commit the manifest, the lockfile and the plugin.
apm.yml dependencies:apm:- git: vercel-labs/agent-skillsskills:- deploy-to-vercel- git: https://github.com/anthropics/claude-plugins-officialpath: plugins/commit-commandsref: mainmcp:- name: io.github.github/github-mcp-servertransport: httpTerminal window git add apm.yml apm.lock.yaml .gitignoregit add .agents/plugins .claude/settings.json .github/copilot/settings.jsongit commit -m "Add agent dependencies"apm.ymlsays what you asked for.apm.lock.yamlrecords 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: 1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62deployed_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?). -
Be your teammate. Clone the repository into a second folder and install from the lockfile.
Terminal window git clone . ../teammate && cd ../teammateapm 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.--frozeninstalls exactly what the lockfile records and fails ifapm.ymldisagrees. 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
-
Check the files against the lockfile.
Terminal window apm audit[+] Replayed 2 package(s)[+] No drift detected[*] 2 file(s) scanned -- no issues foundapm auditrebuilds 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.
What you just did
Section titled “What you just did”- 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.