{"slug": "share-claude-code-skills-across-repos-without-name-clashes", "title": "Share Claude Code skills across repos without name clashes", "summary": "Ivar v0.21.0 introduces a \"hall\" — a single git repo that mounts multiple project repos and holds their Claude Code skills in two roots, a committed .ivar/skills/ shared with the team and a gitignored .ivar/skills-local/ for personal skills — to stop skills like pr-description from being copied into five repos and drifting into five versions. A skill sync writes both roots into each harness's skills directory (.claude/skills/ for Claude Code, .opencode/skills/ for OpenCode, .omp/skills/ for OMP), and skills added with ivar skill add from a GitHub shorthand or URL are pinned with --ref and only move forward on ivar skill update. Skills written in the hall are symlinks to their source, while skills pulled in with skill add are copies.", "body_md": "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\".\n\nSo 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:\n\nThen 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.\n\nivar 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:\n\n```\n<hall>/.ivar/skills/          committed, shared with the team<hall>/.ivar/skills-local/    personal, gitignored\n```\n\nA 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.\n\nThe reader types one command, the install:\n\n```\ncurl -fsSL 'https://ivar.run/install?ref=share-skills' | sh\n```\n\nThe 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](https://ivar.run/docs/quickstart?utm_source=medium&utm_medium=syndication&utm_campaign=share-claude-code-skills-across-repos). 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.\n\nIf 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.\n\nAdd a team skill for how we write pull request descriptions, and a personal one for my own note-taking habits.\n\nThe team skill goes in the committed root with --hall; the personal one stays in yours.\n\nCreated skill pr-description at /tmp/demo/team-hall/.ivar/skills/pr-description/SKILL.md\n\nCreated skill scratch-notes at /tmp/demo/team-hall/.ivar/skills-local/scratch-notes/SKILL.md\n\nWithout --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.\n\nA skill someone else maintains comes in with ivar skill add, from a GitHub shorthand or URL:\n\nInstall the rust-review skill from acme/skills for the whole team.\n\n--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).\n\nSync the skills and show me what the hall has.\n\nSynced 4 steps.\n\nTwo skills times two harnesses: four steps. pr-description comes from the hall, scratch-notes from your personal root.\n\nivar skill list printed:\n\n```\nSkills in /tmp/demo/team-hall:SKILL           DESCRIPTION                                     ORIGINpr-description  How this team writes pull request descriptions  hallscratch-notes   My own note-taking habits                       local\n```\n\nThe result in the hall:\n\n``` php\n.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\n```\n\nSkills 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.\n\nSince 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.\n\nThere are two kinds of clash, and ivar treats them differently.\n\nIf pr-description exists in .ivar/skills/ and in .ivar/skills-local/, neither is materialised, and the sync warns:\n\n```\nwarning: 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.\n```\n\nA 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.\n\nThe 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:\n\nOpen a session over api and web and tell me which repo skills it picks up.\n\nA detached session builds the view directory without launching another harness.\n\nDiscovery session eb9c41a4-06ce-45d4-b935-f8243e8c1b09 started detached (no provider launched). View dir: /tmp/demo/team-hall/.ivar/sessions/eb9c41a4-06ce-45d4-b935-f8243e8c1b09\n\nThree repo skills were renamed because their names were already taken.\n\nThe session’s .claude/skills/:\n\n``` php\n.ivar-repo-skills.jsonapi--review/migrations -> ../../api/.claude/skills/migrationsweb--pr-description/web--review/\n```\n\nThe <repo>-- prefix applies only on a collision:\n\nA prefixed skill is a copy with its frontmatter name rewritten, so the harness lists it under the new name:\n\n```\n---name: api--reviewdescription: Review checklist for the api repo---\n```\n\n.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:\n\n```\n3 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.\n```\n\nIf both review and the prefixed name are already taken, the repo skill is skipped and doctor reports it as skill.repo_skipped.\n\n[Share Claude Code skills across repos without name clashes](https://blog.devgenius.io/share-claude-code-skills-across-repos-without-name-clashes-8a009e09fdb0) was originally published in [Dev Genius](https://blog.devgenius.io) on Medium, where people are continuing the conversation by highlighting and responding to this story.", "url": "https://wpnews.pro/news/share-claude-code-skills-across-repos-without-name-clashes", "canonical_source": "https://blog.devgenius.io/share-claude-code-skills-across-repos-without-name-clashes-8a009e09fdb0?source=rss----4e2c1156667e---4", "published_at": "2026-12-04 14:37:19+00:00", "updated_at": "2026-12-04 14:45:53.956612+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools"], "entities": ["ivar", "Claude Code", "OpenCode", "OMP", "GitHub"], "also_reported_by": [], "takeaway": "Store shared Claude Code skills in a hall's committed .ivar/skills/ root and personal ones in gitignored .ivar/skills-local/, then let skill sync symlink them into .claude/skills/, .opencode/skills/ and .omp/skills/ instead of copying folders per repo.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/share-claude-code-skills-across-repos-without-name-clashes", "markdown": "https://wpnews.pro/news/share-claude-code-skills-across-repos-without-name-clashes.md", "text": "https://wpnews.pro/news/share-claude-code-skills-across-repos-without-name-clashes.txt", "jsonld": "https://wpnews.pro/news/share-claude-code-skills-across-repos-without-name-clashes.jsonld"}}