How to share Claude Code skills, commands and MCP servers with your team

How to share Claude Code skills, slash commands and MCP servers with your team so Codex and Cursor get them too: one skills folder, one MCP entry per tool, and a check that fails on drift. Tested Nov 2026.

By Scott Strang

Last updated

The short answer. Commit your skills to .agents/skills/ and make .claude/skills a symlink to it: Codex and Cursor read that folder, Claude Code reads only its own, and in a test we ran at SageOx (Claude Code 2.1.283, Codex CLI 0.146.0, Nov 24, 2026) both tools then loaded the same skills. Slash commands are skills now in all three tools, so move them in too. MCP servers have no shared file, so declare each one in .mcp.json, .codex/config.toml and .cursor/mcp.json, keep secrets in environment variables, and add a CI check that fails when the lists differ.

Each coding agent reads its own skills folder and its own MCP file

A skill is a folder with a SKILL.md: a name, a description that tells the agent when to use it, and the steps. Claude Code, Codex and Cursor all use the same Agent Skills format. What they don't share is where they look.

Claude CodeCodexCursor

Tested rows: Claude Code 2.1.283 and Codex CLI 0.146.0 on Nov 24, 2026. Cursor rows: Cursor's docs, read the same day (not tested). Each tool changes often, so check the date before you rely on a row.

So a skill in .claude/skills/ never reaches a Codex user, and an MCP server in .mcp.json never reaches Codex or Cursor.

Three ways to share, from one repo to every repo

WayReachesEach teammate doesBreaks when

Start with way 1, and move to way 2 when the same skills are needed in a second repo. Ways 1 and 2 are below in full; way 3 is in "Where SageOx helps" near the end.

In our test, Claude Code listed only the skill in .claude/skills, and Codex listed only the skills in .agents/skills and .codex/skills. Neither saw the other's. With the skill in .agents/skills and .claude/skills as a symlink to that folder, both tools listed it.

Move what Claude Code has into the shared folder, then link it. From the repo root:

mkdir -p .agents/skills
for d in .claude/skills/*/; do
  [ -d "$d" ] && git mv "${d%/}" .agents/skills/
done
rmdir .claude/skills 2>/dev/null
mkdir -p .claude
[ -e .claude/skills ] || ln -s ../.agents/skills .claude/skills
if [ -L .claude/skills ]; then
  git add .agents/skills .claude/skills && git commit -m "One skills folder for every coding agent"
else
  echo ".claude/skills still has files in it: see the next step"
fi

If a skill already exists in both folders, git mv refuses to overwrite it: keep one (the check below tells you whether the two differ). If it prints that .claude/skills still has files, something untracked is in it, often skills another tool writes there. Move those too, or link each skill on its own instead of the folder:

mkdir -p .claude/skills
for d in .agents/skills/*/; do
  [ -d "$d" ] || continue
  n=$(basename "$d")
  [ -e ".claude/skills/$n" ] || ln -s "../../.agents/skills/$n" ".claude/skills/$n"
done

Both shapes worked in both tools, and so did the reverse (the skill in .claude/skills, a symlink in .agents/skills). Codex's docs say it follows symlinked skill folders, and Claude Code's say a skill entry can be a symlink.

On Windows, Git for Windows turns symlink support off by default, and with core.symlinks off Git checks a committed symlink out as a small text file holding the link's path. Creating one needs Administrator rights or Developer Mode. If anyone on your team uses Windows, turn it on, or keep real copies in both folders and let the check below fail when they differ.

In a monorepo, put a skill next to the code it's for: packages/api/.agents/skills/, with the same link under packages/api/.claude/. Started in packages/api, both tools listed the root skill and the package skill. Started at the root, neither listed the package skill. Claude Code loads it the first time it reads a file in that folder; Codex scans only from where it starts up to the repo root.

Slash commands are skills now, in all three tools

Claude Code merged custom commands into skills: a .claude/commands/deploy.md still works as /deploy, and .claude/skills/deploy/SKILL.md gives you the same command with room for scripts. Codex deprecated custom prompts, and they live only in each person's ~/.codex/prompts/. Cursor's commands page now points to Skills.

So move team commands into the shared folder as skills. Each one needs a description in its frontmatter. Claude Code loaded a bare SKILL.md with no frontmatter; Codex skipped it.

for f in .claude/commands/*.md; do
  [ -f "$f" ] || continue
  n=$(basename "$f" .md)
  mkdir -p ".agents/skills/$n"
  git mv "$f" ".agents/skills/$n/SKILL.md"
done

Then open each moved file and make sure it starts like this, with name matching the folder:

---
name: deploy
description: Deploy the current branch to staging. Use when someone asks to deploy, ship to staging or test on staging.
---

Write skills every tool can run

  • Stick to the standard fields when you can. The Agent Skills spec has name (lowercase, hyphens, the folder's name), description, license, compatibility, metadata and an experimental allowed-tools. Claude Code adds its own, such as argument-hint and context: fork. Codex still loaded our test skill that used them; its docs don't describe those fields. Claude Code's docs say an upload to claude.ai or the Skills API fails on any field outside the spec.
  • Put the trigger in the first words of the description. Both tools pick a skill by its description, and Codex shortens descriptions when many skills are installed: by default its skills list gets at most 2% of the model's context window.
  • Don't call one tool's own commands in a shared skill, or say in the description that it only works in one tool.
  • Keep scripts beside the skill (scripts/, references/), and refer to them by relative path.

Declare each MCP server once per tool, with no secrets in the file

No tool reads another's MCP file, so a shared server needs one entry in each. Here is the same stdio server for all three. The token comes from each person's environment, never the file.

.mcp.json (Claude Code):

{
  "mcpServers": {
    "docs": {
      "command": "node",
      "args": ["tools/docs-mcp.mjs"],
      "env": { "DOCS_TOKEN": "${DOCS_TOKEN}" }
    }
  }
}

.codex/config.toml (Codex):

[mcp_servers.docs]
command = "node"
args = ["tools/docs-mcp.mjs"]
env_vars = ["DOCS_TOKEN"]

.cursor/mcp.json (Cursor, from its docs):

{
  "mcpServers": {
    "docs": {
      "command": "node",
      "args": ["${workspaceFolder}/tools/docs-mcp.mjs"],
      "env": { "DOCS_TOKEN": "${env:DOCS_TOKEN}" }
    }
  }
}

In our test, a variable set in the shell reached the server through ${VAR:-default} in Claude Code and through env_vars in Codex. For a remote server, Codex uses url and bearer_token_env_var instead.

Each teammate still does one step per tool

The repo can declare a server, but it can't switch it on for someone else. In an interactive session, each tool makes each person say yes once on their own machine, and a committed setting doesn't stand in for that yes until the person has trusted the folder.

Claude CodeCodex

Tested: Claude Code 2.1.283 and Codex CLI 0.146.0, Nov 24, 2026.

Put the step in the README next to the setup commands, so a new teammate does it on day one.

Add a check that fails when the tools drift

A shared folder drifts back the first time someone adds a skill to the wrong place or a server to one file. This script checks the repo and changes nothing. It fails when a skill is only in one tool's folder, when two copies of a skill differ, when a shared skill has no description (Codex would skip it), or when an MCP server is declared for one tool and not another.

#!/usr/bin/env bash
# check-agent-setup.sh: fail when Claude Code and Codex would get different skills or MCP servers.
# Run from the repo root. Changes nothing. Exit 1 on any difference.
#   ./check-agent-setup.sh
#   MCP_PARITY_SKIP="honeycomb" ./check-agent-setup.sh   (servers you keep in one tool on purpose)
# Checks the repo-root folders only. Needs bash 3.2+, and node only if the repo has a .mcp.json or .cursor/mcp.json.
set -euo pipefail
export LC_ALL=C
problems=0
say() { echo "$1"; problems=1; }
 
skills_in() { # names of skill folders (real or symlinked) that hold a SKILL.md
  [ -d "$1" ] || return 0
  for d in "$1"/*/; do if [ -f "$d/SKILL.md" ]; then basename "$d"; fi; done | sort
}
claude=$(skills_in .claude/skills)
codex=$(skills_in .agents/skills)
for n in $(comm -23 <(echo "$claude") <(echo "$codex")); do say "skill only Claude Code sees: .claude/skills/$n"; done
for n in $(comm -13 <(echo "$claude") <(echo "$codex")); do say "skill only Codex sees: .agents/skills/$n"; done
for n in $(comm -12 <(echo "$claude") <(echo "$codex")); do
  a=$(cd ".claude/skills/$n" && pwd -P); b=$(cd ".agents/skills/$n" && pwd -P)
  if [ "$a" != "$b" ] && ! diff -rq "$a" "$b" >/dev/null; then say "skill copies differ: $n (make one a symlink to the other)"; fi
done
for n in $codex; do # Codex skips a SKILL.md with no frontmatter
  f=".agents/skills/$n/SKILL.md"
  head -1 "$f" | grep -q '^---$' && awk 'NR==1{next} /^---$/{exit} {print}' "$f" | grep -q '^description:' || say "no description in frontmatter, Codex skips it: $f"
done
 
json_servers() { # server names under mcpServers in a JSON file
  [ -f "$1" ] || return 0
  node -e 'const s=JSON.parse(require("fs").readFileSync(process.argv[1],"utf8")).mcpServers||{};console.log(Object.keys(s).join("\n"))' "$1" | sort
}
toml_servers() { # [mcp_servers.<name>] tables in a TOML file
  [ -f "$1" ] || return 0
  sed -n 's/^\[mcp_servers\."\{0,1\}\([A-Za-z0-9_-]*\)"\{0,1\}\][[:space:]]*\(#.*\)\{0,1\}$/\1/p' "$1" | sort -u
}
skip() { for s in ${MCP_PARITY_SKIP:-}; do [ "$s" = "$1" ] && return 0; done; return 1; }
compare() { # compare <list A> <label A> <list B> <label B>
  for n in $(comm -23 <(echo "$1") <(echo "$3")); do skip "$n" || say "MCP server in $2 but not $4: $n"; done
}
mcp_claude=$(json_servers .mcp.json)
mcp_codex=$(toml_servers .codex/config.toml)
compare "$mcp_claude" .mcp.json "$mcp_codex" .codex/config.toml
compare "$mcp_codex" .codex/config.toml "$mcp_claude" .mcp.json
if [ -f .cursor/mcp.json ]; then
  mcp_cursor=$(json_servers .cursor/mcp.json)
  compare "$mcp_claude" .mcp.json "$mcp_cursor" .cursor/mcp.json
  compare "$mcp_cursor" .cursor/mcp.json "$mcp_claude" .mcp.json
fi
 
[ "$problems" -eq 0 ] && echo "ok: Claude Code and Codex get the same skills and MCP servers"
exit "$problems"

We ran it on sixteen small test cases with bash 3.2 (macOS) and 5.3: it passes a linked folder, per-skill links and identical copies, and a folder with no SKILL.md in it, and fails on a skill in one folder only (including an empty .claude/skills), copies that differ, a skill with no frontmatter or an empty one, a server missing from .codex/config.toml (quoted and commented headers count) or .cursor/mcp.json, and passes again once that server is listed in MCP_PARITY_SKIP.

Save it as scripts/check-agent-setup.sh, make it executable (chmod +x), and run it in CI and in a pre-commit hook. To keep a server out of one tool on purpose, list it in MCP_PARITY_SKIP and write down why in the config file.

What the check found in our own repos

Nov 24, 2026: in gtm-data, our go-to-market repo, Codex couldn't see 10 of the 15 committed skills. They include the skills that draft and review these guides and publish our blog posts, so a teammate on Codex in that repo couldn't run any of them. The 5 it could see were identical hand copies, kept with no check.

Our monorepo passed on skills: every skill we write lives once in .claude/skills, with a symlink to it in .agents/skills, and a parity check in CI fails on drift. The script flagged one MCP server that is in .mcp.json and not .codex/config.toml; the config file says that's on purpose, and with it in MCP_PARITY_SKIP the check passed.

One repo's folder can't reach the team's other repos

The steps above fix one repo. A skill the whole team uses, like "write the release notes" or "draft the weekly customer update", ends up copied into each repo that needs it, and the copies drift.

RepoClaude Code getsCodex gets

Illustration: one team skill across five repos and two tools, each repo keeping its own copies.

Share skills across repos with a private plugin marketplace

A plugin bundles skills (and, if you want, MCP servers) and installs into every repo a person works in. Both Claude Code and Codex read a marketplace file from a git repo, and the same plugin folder can carry both tools' manifests.

team-plugins/                          (its own git repo)
├── .claude-plugin/marketplace.json    Claude Code's catalog
├── .agents/plugins/marketplace.json   Codex's catalog
└── plugins/team-tools/
    ├── .claude-plugin/plugin.json
    ├── .codex-plugin/plugin.json
    └── skills/release-notes/SKILL.md

.claude-plugin/marketplace.json:

{
  "name": "acme-team",
  "owner": { "name": "Acme" },
  "plugins": [
    { "name": "team-tools", "source": "./plugins/team-tools", "description": "Our team's skills" }
  ]
}

.agents/plugins/marketplace.json:

{
  "name": "acme-team",
  "interface": { "displayName": "Acme" },
  "plugins": [
    {
      "name": "team-tools",
      "source": { "source": "local", "path": "./plugins/team-tools" },
      "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
      "category": "Productivity"
    }
  ]
}

plugins/team-tools/.claude-plugin/plugin.json:

{ "name": "team-tools", "version": "1.0.0", "description": "Our team's skills" }

plugins/team-tools/.codex-plugin/plugin.json:

{ "name": "team-tools", "version": "1.0.0", "description": "Our team's skills", "skills": "./skills/" }

Codex's docs now prefer a portable plugin.json at the plugin root and keep .codex-plugin/plugin.json as a supported fallback. We tested the fallback.

Then each teammate runs two commands per tool, once. Swap acme/team-plugins for your repo:

claude plugin marketplace add acme/team-plugins
claude plugin install team-tools@acme-team
 
codex plugin marketplace add acme/team-plugins
codex plugin add team-tools@acme-team

In our test, with the marketplace added from a local folder, both tools listed the plugin's skill under the team-tools: prefix. With the example above, you run it in Claude Code as /team-tools:release-notes.

Two things that look like they install it for everyone, and don't:

  • enabledPlugins in a committed .claude/settings.json turns the plugin on for the repo but downloads nothing. In our test the skill didn't load until it was installed. A marketplace declared there with extraKnownMarketplaces applies only after each teammate trusts the folder.
  • A repo's .agents/plugins/marketplace.json wasn't picked up by the Codex CLI on its own: codex plugin add said the plugin wasn't found until the marketplace was added. Codex's docs say the ChatGPT desktop app does read it (not tested).

To publish an update, bump version and merge. Claude Code updates installed plugins itself when auto-update is on for that marketplace, or with claude plugin update team-tools@acme-team; in Codex, codex plugin marketplace upgrade refreshes the marketplace. Cursor has its own team marketplace for skills (its docs; not tested).

Done means: a new skill is one pull request to the plugin repo, every teammate has the plugin in both tools, and each project repo's check passes.

Where SageOx helps

SageOx is a context layer for a team's people and agents. Its team skills are way 3, a team layer with no marketplace for anyone to add.

  • Publish a skill once with ox skills publish, and it goes to the whole team, with explicit approve and revoke before a team skill can run.
  • Add-ons install curated bundles of skills, rules and context once for every teammate.

The 10 skills Codex missed in gtm-data are repo-only skills we never published to the team. For the ones we do publish, ox skills status lists both .agents/skills and .claude/skills as the repo's targets, and git ignores the team skills it writes there, so nobody keeps a hand copy. Checked Nov 24, 2026.

See how team skills reach every teammate →

Have your agent do it

Paste this into Claude Code, Codex or Cursor at the root of a repo. It changes nothing until you approve the diff.

Set this repo up so every coding agent gets the same skills and MCP servers.
1. List every skill and command: .claude/skills, .claude/commands, .agents/skills, .codex/skills,
   .cursor/skills, at any depth (skip node_modules). Show which tool reads each one today.
2. Move the skills into .agents/skills and make .claude/skills a symlink to ../.agents/skills.
   If something untracked stays in .claude/skills, stop and tell me instead of deleting it.
3. Turn each .claude/commands/*.md into .agents/skills/<name>/SKILL.md. Make sure every SKILL.md
   starts with frontmatter that has name (matching its folder) and description.
4. List every MCP server in .mcp.json, .codex/config.toml and .cursor/mcp.json. Show which are
   missing from which file and draft the missing entries. Move any secret in them into an
   environment variable and tell me which variables each teammate needs.
5. Add scripts/check-agent-setup.sh from https://sageox.ai/guides/claude-code-skills-team.md and
   run it. Show me what it reports.
6. Draft a "First day" note for the README: which MCP servers to approve in Claude Code, and
   that Codex users need to trust the project.
Show me the diff before committing anything.

Questions

How do I share Claude Code skills with my team? Commit them to the repo: .claude/skills/<name>/SKILL.md reaches everyone on Claude Code who clones it. To reach Codex and Cursor users too, keep them in .agents/skills/ and make .claude/skills a symlink to it.

Does Codex read Claude Code skills? Not from .claude/skills: in our test Codex listed only skills in .agents/skills and .codex/skills. Both tools use the same SKILL.md format, so a symlink is enough, as long as each SKILL.md has a description.

Can I share slash commands with my team? Yes, as skills. Claude Code merged commands into skills, Codex's custom prompts are deprecated and can't live in the repo, and Cursor's commands are skills now. Move each command into .agents/skills/<name>/SKILL.md with a description.

How do I share MCP servers with my team? Commit a config for each tool: .mcp.json for Claude Code, .codex/config.toml for Codex, .cursor/mcp.json for Cursor. Keep tokens in environment variables, and tell each teammate to approve the servers (Claude Code) or trust the project (Codex) once.

How do I distribute Claude Code skills to every repo? With a private plugin marketplace: one git repo holds the plugin, and each teammate adds the marketplace and installs the plugin once per tool.

Should we use a private plugin marketplace or skills in the repo? Skills in the repo, until the same skills are needed in more than one repo. A marketplace reaches every repo, but each teammate has to add it and install the plugin in each tool.

Sources

SourceWhat it backsChecked

More on agent context for teams