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). 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 starts from a shared skills directory wired up with symlinks.
-
--add-dirloads the.claude/skills/of an added directory, but theadditionalDirectoriessetting did not, as several bug reports in 2026 describe. A feature request asks for askillsDirectoriessetting for exactly this case (anthropics/claude-code#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:
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.
A team skill and a personal one
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
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 ORIGIN
pr-description How this team writes pull request descriptions hall
scratch-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.
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:
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:
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.json
api--review/
migrations -> ../../api/.claude/skills/migrations
web--pr-description/
web--review/
The <repo>-- prefix applies only on a collision:
-
migrationsexists in one repo and nowhere else, so it keeps its name and is a symlink into the repo. -
reviewships in both repos, so both get the prefix:api--reviewandweb--review. Neither repo wins. -
web'spr-descriptionwould shadow the hall skill of the same name, so it becomesweb--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:
---
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:
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 pullin 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 syncdo 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 addneeds a GitHub token fromgh auth token,$GITHUB_TOKENor$GH_TOKEN. - Three harnesses: Claude Code, OpenCode and OMP. macOS and Linux.
Related
-
ivar skill: the full reference for roots,
add,update,detachanddoctor. - One MCP config for Claude Code, OpenCode and OMP: the same declare-once approach for MCP servers.
- Quickstart: mount the first repo in a hall.
Top comments (0)