# Share Claude Code skills across repos without name clashes
> Claude Code has personal and project skills but no shared folder for a set of repos. Share Claude Code skills across projects from one committed source, and see what happens when two repos ship the same name.
Source: https://ivar.run/blog/share-claude-code-skills-across-repos
Published: 2026-12-01 · By Gabriel Menezes

![A dithered sea chest with amber planks and cream iron bands, over a band of blue sea.](https://ivar.run/blog/covers/share-claude-code-skills-across-repos.webp)

## Five copies of one skill

To share Claude Code skills across projects, the default is to copy the folder. Claude Code reads skills from two places: personal skills in `~/.claude/skills/`, which follow you into every project, and project skills in a repo's `.claude/skills/` ([Claude Code docs](https://code.claude.com/docs/en/skills)). There is no third place for "the skills of these five repos".

So the `pr-description` skill gets copied into five repos. A month later there are five versions, and nobody knows which one is current. The other workarounds have their own costs:

- A symlink into each repo depends on the shared folder sitting at the same path on every machine. The [Xebia post on DRY Claude Code plugins](https://xebia.com/blog/dry-principle-claude-code-plugins/) starts from a shared skills directory wired up with symlinks.
- `--add-dir` loads the `.claude/skills/` of an added directory, but the `additionalDirectories` setting did not, as [several bug reports in 2026](https://claudeissues.com/issue/37553-bug-skills-are-not-loaded-from-additionaldirectories-but-are-from-add-dir) describe. A feature request asks for a `skillsDirectories` setting for exactly this case ([anthropics/claude-code#39403](https://github.com/anthropics/claude-code/issues/39403)).
- A plugin packages skills for any repo that installs it, at the cost of a marketplace and a release step.

Then there is the clash. The `api` repo ships a `review` skill for its checklist, and the `web` repo ships a `review` skill for its own. Open both in one session and one of them has to give way.

## Skills in the hall

`ivar` answers this with the hall: one git repo that mounts the other repos and keeps the skills for all of them. Skills live in two roots inside it:

```
<hall>/.ivar/skills/          committed, shared with the team
<hall>/.ivar/skills-local/    personal, gitignored
```

A skill sync writes both roots into each harness's skills directory: `.claude/skills/` for Claude Code, `.opencode/skills/` for OpenCode and `.omp/skills/` for OMP. Those directories are derived and gitignored; only the source under `.ivar/` is committed.

The reader types one command, the install:

```sh
curl -fsSL 'https://ivar.run/install?ref=share-skills' | sh
```

The walkthrough below starts from a hall at `/tmp/demo/team-hall` with two repos, `api` and `web`, and two providers, Claude Code and OpenCode, set up once as in the [quickstart](/docs/quickstart). It runs with ivar v0.21.0. From here on the reader asks the agent in plain words, and the agent runs the `ivar` commands.

If part of the team uses OMP, asking the agent to add it as a provider is enough: a provider added later gets the hall's skills on the spot, without another sync.

### A team skill and a personal one

```text
  > Add a team skill for how we write pull request descriptions, and a personal one for my own note-taking habits.
  ● The team skill goes in the committed root with `--hall`; the personal one stays in yours.
  <Tool name="Bash" arg='ivar skill create pr-description --description "How this team writes pull request descriptions" --hall'>Created skill `pr-description` at /tmp/demo/team-hall/.ivar/skills/pr-description/SKILL.md</Tool>
  <Tool name="Bash" arg='ivar skill create scratch-notes --description "My own note-taking habits"'>Created skill `scratch-notes` at /tmp/demo/team-hall/.ivar/skills-local/scratch-notes/SKILL.md</Tool>
```

Without `--hall` a skill lands in the personal root. Publishing to the team is the step that takes a flag, because it becomes a commit everyone inherits.

A skill someone else maintains comes in with `ivar skill add`, from a GitHub shorthand or URL:

```text
  > Install the rust-review skill from acme/skills for the whole team.
  ● Bash(ivar skill add acme/skills --path skills/rust-review --hall)
```

`--path` narrows the source to one skill's folder. Since v0.20.0 it also accepts a folder of skills, and `add` then lists only the skills under it. `--ref` pins a branch, tag or sha, and the skill moves forward only when someone asks the agent to update it (`ivar skill update`).

### Sync

```text
  > Sync the skills and show me what the hall has.
  ● Bash(ivar skill sync)
  ⎿ Synced 4 steps.
  ● Bash(ivar skill list)
  ● Two skills times two harnesses: four steps. `pr-description` comes from the hall, `scratch-notes` from your personal root.
```

`ivar skill list` printed:

```text
Skills in /tmp/demo/team-hall:
SKILL           DESCRIPTION                                     ORIGIN
pr-description  How this team writes pull request descriptions  hall
scratch-notes   My own note-taking habits                       local
```

The result in the hall:

```text
.claude/skills/
├── pr-description -> /tmp/demo/team-hall/.ivar/skills/pr-description
└── scratch-notes -> /tmp/demo/team-hall/.ivar/skills-local/scratch-notes
.opencode/skills/
├── pr-description -> /tmp/demo/team-hall/.ivar/skills/pr-description
└── scratch-notes -> /tmp/demo/team-hall/.ivar/skills-local/scratch-notes
```

Skills written in the hall are symlinks to their source. Skills pulled in with `skill add` are copies. Both directories also hold the `ivar-*` skills that ship with ivar, left out of the tree above.

Since v0.20.0, `skill sync` also commits the hall when something changed, first as `chore(skills): Sync hall skills` and then the rest as `chore(hall): Sync pending hall changes`, and pushes the branch. `.ivar/skills-local/` is never committed. `auto_commit: false` in `ivar.json` turns this off, and `auto_push: false` turns off only the push.

## When two skills share a name

There are two kinds of clash, and ivar treats them differently.

### The same id in both roots

If `pr-description` exists in `.ivar/skills/` and in `.ivar/skills-local/`, neither is materialised, and the sync warns:

```text
warning: pr-description: declared in both roots — /tmp/demo/team-hall/.ivar/skills/pr-description and /tmp/demo/team-hall/.ivar/skills-local/pr-description. Neither was materialised; rename one to resolve.
```

A harness has one slot per name. Picking a winner would leave the agent following the wrong skill without anyone knowing it, so ivar refuses the pair and names both paths.

### Repo skills in a session

The repos keep their own skills too. Here `api` ships `.claude/skills/review` and `.claude/skills/migrations`, and `web` ships `.claude/skills/review` and `.claude/skills/pr-description`. Hall sync does not read them; a session does. Each session projects the skills of the repos it mounts into its own view directory:

```text
  > Open a session over api and web and tell me which repo skills it picks up.
  ● A detached session builds the view directory without launching another harness.
  ● Bash(ivar session start --detached)
  ⎿ Discovery session `eb9c41a4-06ce-45d4-b935-f8243e8c1b09` started detached (no provider launched). View dir: /tmp/demo/team-hall/.ivar/sessions/eb9c41a4-06ce-45d4-b935-f8243e8c1b09
  ● Bash(ivar skill doctor)
  ● Three repo skills were renamed because their names were already taken.
```

The session's `.claude/skills/`:

```text
.ivar-repo-skills.json
api--review/
migrations -> ../../api/.claude/skills/migrations
web--pr-description/
web--review/
```

The `<repo>--` prefix applies only on a collision:

- `migrations` exists in one repo and nowhere else, so it keeps its name and is a symlink into the repo.
- `review` ships in both repos, so both get the prefix: `api--review` and `web--review`. Neither repo wins.
- `web`'s `pr-description` would shadow the hall skill of the same name, so it becomes `web--pr-description`. A repo skill never shadows a hall skill or one of your personal skills in `~/.claude/skills/`.

A prefixed skill is a copy with its frontmatter `name` rewritten, so the harness lists it under the new name:

```md
---
name: api--review
description: Review checklist for the api repo
---
```

`.ivar-repo-skills.json` records what ivar put in the directory, and only those entries are removed when a repo stops shipping a skill. `ivar skill doctor` lists every rename:

```text
3 problems found:
  1. `pr-description` is already in use; available as `web--pr-description` (skill.repo_prefixed)
     fix: Rename the repo skill or the hall/user skill so each name is unique.
  2. `review` is already in use; available as `api--review` (skill.repo_prefixed)
     fix: Rename the repo skill or the hall/user skill so each name is unique.
  3. `review` is already in use; available as `web--review` (skill.repo_prefixed)
     fix: Rename the repo skill or the hall/user skill so each name is unique.
```

If both `review` and the prefixed name are already taken, the repo skill is skipped and doctor reports it as `skill.repo_skipped`.

## What the team has now

- One committed source for team skills in `.ivar/skills/`, reviewed like any other change to the hall.
- A target per harness, written by the skill sync: Claude Code, OpenCode and OMP read the same skills.
- Repo skills that keep their bare names until two of them meet, and get `<repo>--` only then.
- A teammate gets new skills with `git pull` in the hall, then asks their agent to sync skills.

## Limits

- Edit the source under `.ivar/skills/` or `.ivar/skills-local/`, never a target. Authored skills are symlinks, so an edit through the target lands in the source, but a copied target belongs to ivar: when its provider leaves the hall the copy is removed, edits included. A prefixed session copy that is edited is left in place and ivar stops managing it.
- Repo skills appear only in sessions. The hall root and `ivar skill sync` do not see them.
- Hall skills apply to every repo in a session. That fits "how this team works" and not "how this one repo builds"; repo-specific instructions belong in the repo.
- The hall shares skills with the people who clone it. To ship skills to repos and teams outside one hall, a Claude Code plugin is the better route.
- `ivar skill add` needs a GitHub token from `gh auth token`, `$GITHUB_TOKEN` or `$GH_TOKEN`.
- Three harnesses: Claude Code, OpenCode and OMP. macOS and Linux.

## Related

- [ivar skill](/docs/reference/skill): the full reference for roots, `add`, `update`, `detach` and `doctor`.
- [One MCP config for Claude Code, OpenCode and OMP](/blog/one-mcp-config-claude-code-opencode-omp): the same declare-once approach for MCP servers.
- [Quickstart](/docs/quickstart): mount the first repo in a hall.
