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). 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:
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.
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:
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. 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.
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.
Created skill pr-description at /tmp/demo/team-hall/.ivar/skills/pr-description/SKILL.md
Created skill scratch-notes at /tmp/demo/team-hall/.ivar/skills-local/scratch-notes/SKILL.md
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:
Install the rust-review skill from acme/skills for the whole team.
--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 the skills and show me what the hall has.
Synced 4 steps.
Two skills times two harnesses: four steps. pr-description comes from the hall, scratch-notes from your personal root.
ivar skill list printed:
Skills in /tmp/demo/team-hall:SKILL DESCRIPTION ORIGINpr-description How this team writes pull request descriptions hallscratch-notes My own note-taking habits local
The result in the hall:
.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.
There are two kinds of clash, and ivar treats them differently.
If pr-description exists in .ivar/skills/ and in .ivar/skills-local/, neither is materialised, and the sync warns:
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.
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:
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.
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
Three repo skills were renamed because their names were already taken.
The session’s .claude/skills/:
.ivar-repo-skills.jsonapi--review/migrations -> ../../api/.claude/skills/migrationsweb--pr-description/web--review/
The <repo>-- prefix applies only on a collision:
A prefixed skill is a copy with its frontmatter name rewritten, so the harness lists it under the new name:
---name: api--reviewdescription: 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:
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.
Share Claude Code skills across repos without name clashes was originally published in Dev Genius on Medium, where people are continuing the conversation by highlighting and responding to this story.