The first time a second person points Claude Code at your repository, you find out how much of your setup lived only on your machine. The good news is that almost everything a team wants to share in Claude Code is a file you can commit. Permissions, hooks and plugins go in .claude/settings.json, skills in .claude/skills/, MCP servers in .mcp.json, and instructions in CLAUDE.md. After pulling, each developer still has to trust the folder, install the project's plugins and approve its MCP servers, once per clone.
The details below come from Claude Code's documentation as of November 26, 2026, and the links are at the end.
What lives where
| What you share | Where it lives | How a teammate gets it |
|---|---|---|
| Instructions | CLAUDE.md | Pull |
| Permissions and hooks | .claude/settings.json | Pull, then trust the folder |
| Skills | .claude/skills/<name>/SKILL.md | Pull |
| MCP servers | .mcp.json | Pull, then approve each server |
| Plugins | enabledPlugins in .claude/settings.json | Pull, then install in each clone |
| Rules nobody can change | Managed settings | Sign in |
Each person's own choices go in .claude/settings.local.json, which Claude Code keeps out of git when it creates the file, or in ~/.claude/settings.json.
A team settings file to copy
Save this as .claude/settings.json at the top of the repository and commit it. It's cut down from Anthropic's own example of a team file.
{ "permissions": { "allow": ["Bash(npm run *)"], "ask": ["Bash(git push *)"], "deny": [ "Read(./.env)", "Read(./.env.*)", "Read(./secrets/**)" ] }, "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-rm.sh" } ] } ] }, "extraKnownMarketplaces": { "acme-tools": { "source": { "source": "github", "repo": "acme-corp/claude-plugins" } } }, "enabledPlugins": { "code-formatter@acme-tools": true } } The permissions block lets Claude run the project's npm scripts without asking, makes it ask before a push, and stops its file tools, and commands like cat .env, from reading secrets. That deny rule doesn't stop a grep -r over the whole folder. Anthropic's full example adds a sandbox block for that, since sandboxed commands can't read the paths you deny. The hooks block runs a script from the repository before every shell command, and that script can block the command. extraKnownMarketplaces tells Claude Code where the team's plugin catalog is, and enabledPlugins turns one plugin from it on for the project.
One detail worth knowing: deny and ask rules apply in every session, but allow rules and the marketplace entry wait until each person trusts the folder.
Skills
A skill is a folder with a SKILL.md file in it. Claude uses it when it fits the task, or you run it by name. Put it in .claude/skills/ and commit it, and everyone has it. Put it in ~/.claude/skills/ and it's yours alone.
This one, saved as .claude/skills/summarize-changes/SKILL.md, runs as /summarize-changes:
--- description: Summarizes uncommitted changes and flags anything risky. Use when the user asks what changed or wants a commit message. --- Summarize the uncommitted changes in two or three bullet points. Then list any risks, such as missing error handling or tests that need updating. There are five more to copy, and a way to check that a skill actually helps, in Claude Code skills for a team.
On a Team or Enterprise plan there's a second route: skills turned on in a person's Claude account, including ones an owner published for the organization, also load in Claude Code (version 2.1.273 or later).
Hooks are how a rule becomes a guarantee
Claude treats CLAUDE.md as context, so an instruction there is usually followed, not always. A hook is a command Claude Code runs itself at a set moment. A PreToolUse hook runs before a tool is used and can stop it. Keep the script in the repository under .claude/hooks/ and point to it from the settings file, like the example above, and every teammate runs the same check. Here's the script that example points to, saved as .claude/hooks/block-rm.sh:
#!/bin/bash command=$(jq -r '.tool_input.command') if [[ "$command" == *"rm -rf"* ]]; then echo "Blocked: rm -rf isn't allowed in this repository" >&2 exit 2 fi exit 0 Claude Code hands the script the tool call as JSON. Exit code 2 blocks the command, and whatever the script printed to stderr goes back to Claude as the reason. Make it executable with chmod +x, and note that it needs jq.
If your team uses more than one coding tool, git hooks are worth a look too. Our own must-hold checks are git hooks rather than Claude Code hooks, so they run whichever tool makes the commit, whether that's Claude Code, Codex or a person. Each clone has to point git at the hooks folder first (our pnpm install does that), and --no-verify skips them, so they catch mistakes rather than stop someone determined. One makes sure a change to a package.json comes with the matching lockfile change, and another refuses a commit that changes the app unless its message says whether anyone saw the change working.
MCP servers
To share an MCP server, add it at project scope. Claude Code writes it to .mcp.json at the top of the repository and you commit that file. You can also write it by hand:
{ "mcpServers": { "example": { "command": "npx", "args": ["-y", "@example/mcp-server"] } } } Each teammate sees it as "Pending approval" until they start Claude Code in the repository and approve it. To approve it for everyone, list it under enabledMcpjsonServers in .claude/settings.json. Like allow rules, that only takes effect once each person trusts the folder.
Plugins and a team marketplace
A plugin bundles skills, hooks and MCP servers into one thing you install. Our own plugin for Jackdaw is a fair example of why you'd bother: it's four hooks and one MCP server. The hooks load relevant context when a session starts, when you send a prompt and when a subagent starts, and save each finished turn when Claude stops. The server lets Claude look things up on its own. Shipped as loose settings, that would be a lot to get right on every machine. As a plugin it's one install.
A marketplace is a catalog of plugins. It can be a git repository, private if you like, that holds the plugins and one file listing them, .claude-plugin/marketplace.json:
{ "name": "acme-tools", "description": "Plugins for my team", "owner": { "name": "Acme" }, "plugins": [ { "name": "code-formatter", "source": "./plugins/code-formatter", "description": "Formats code the way we do" } ] } Whoever sets it up adds the catalog and installs from it:
claude plugin marketplace add acme-corp/claude-plugins claude plugin install code-formatter@acme-tools --scope project For a private repository, Claude Code uses the git credentials already on the machine and never prompts for them.
Installing at project scope writes the enabledPlugins line into .claude/settings.json. Committing that line turns the plugin on for everyone, but it doesn't download it, so each teammate runs the same install command once in each clone. The extraKnownMarketplaces entry tells their Claude Code where to find the catalog.
Managed settings, for rules nobody can turn off
A file in the repository is a file on each developer's disk, and they can change it or override much of it locally. Managed settings are the ones a developer can't change, and there are two ways to deliver them. On a Team or Enterprise plan, an owner saves JSON under Organization settings, then Claude Code, then Managed settings, and each member's Claude Code fetches it at startup and refreshes it every hour, with no device management needed. Or IT places a managed-settings.json file, or a device-management policy, on each machine.
Managed settings take almost all the same keys as the team file. Put extraKnownMarketplaces and enabledPlugins there and a plugin is installed and switched on for the whole organization.
What each developer still does once
Each developer signs in to Claude Code with the team's account. Then, once in each clone:
- Start Claude Code in the repository and trust the folder.
- Run the install command for each plugin the project enables.
- Approve the MCP servers in
.mcp.json.
What this doesn't share
Everything above shares what the team wrote down ahead of time. It doesn't share what a session learned while working. Claude Code's auto memory, the notes Claude writes for itself, stays on one machine. The free way around that is to add the lesson to CLAUDE.md and commit it, which CLAUDE.md for a team goes into. The Stop hook in the Jackdaw plugin above is our answer to the same problem: each finished turn is saved, with secrets removed, where teammates' sessions can find it. For seats and prices, see Is the Claude Team plan worth it for a small team?
Sources
Claude Code's documentation, read on November 26, 2026: settings files and precedence, the example settings files, skills, hooks, MCP servers, installing plugins, creating a marketplace, server-managed settings and memory.
This post first appeared on the Jackdaw blog.


