My Skills Live in Git. sm Puts Them Where Claude Looks. Developer Greg Herlein published a field report on `sm` (skills-mapper), a tool he wrote that maps 29 hand-written agent skills from a single git repository at `~/src/gherlein-bare-skills` into the directories each AI agent reads, such as `~/.claude/skills`, `~/.copilot/skills`, and the folders used by pi, omp (oh-my-pi) and his own Go fork pi-go. Herlein configures the mapping in one file, `~/.config/skills-mapper/agents.toml`, which declares the skill store and each agent's target path, so the agent folders hold only symlinks back to the repo. Herlein said the setup is "very much a work in progress" and has changed substantially since he first wrote about it in August. My skills don’t live in ~/.claude/skills . Not one of them. They live in a plain folder in a git repo that I own, and a little tool I wrote, sm skills-mapper https://github.com/gherlein/sm , maps them into wherever Claude Code or any other agent expects to find them. Here’s exactly how I run it, day to day, with real commands. skills-mapper: one central burrow, tunnels out to every agent. I’ve written about sm twice already: the original “why” https://blog.herlein.com/post/skills-mapper-sm/ back in August, and the standards argument https://blog.herlein.com/post/skills-are-the-new-man-pages/ behind it in October. This post isn’t either of those. This is the boring, practical one: how my skills are actually laid out on disk, what I type, and what comes back. One big caveat up front: all of this is very much a work in progress. It’s how I’m doing it today . It has already changed a lot since August, and it’ll keep changing as I get more experience with it. Take it as a field report, not a recommendation carved in stone. Why Not Just Put Them in ~/.claude/skills? Because ~/.claude/skills is Claude’s folder, not mine. Think about what a skill actually is. It’s a directory with a SKILL.md in it. It’s code , near enough: instructions an agent will follow with my permissions, on my machine, in my repos. I’ve got 29 of them that I wrote or adapted by hand, and they change every week as I learn what works and what doesn’t. Code goes in git. Full stop. I want history. I want to diff what I changed when a skill suddenly started misbehaving. I want to clone the whole library onto a new laptop in one command. I want to be able to say “that edit last Tuesday made it worse” and roll it back. None of that happens if the canonical copy lives in a dot-folder owned by one vendor’s tool. And the minute I run a second agent, the “one vendor’s folder” approach falls apart entirely. And I run a lot of second agents. Claude Code is my daily driver, but I’m constantly playing with others: pi https://github.com/badlogic/pi-mono , omp oh-my-pi https://github.com/can1357/oh-my-pi I raced omp against hax https://blog.herlein.com/post/ai-agents-in-trenchcoats/ back in August , and agents I’ve been writing myself, like pi-go https://github.com/gherlein/pi-go , my Go fork that I wrote about back in May https://blog.herlein.com/post/how-agents-work/ . There are a couple more homegrown ones I haven’t blogged about yet. Soon. Claude reads ~/.claude/skills . Copilot reads ~/.copilot/skills . pi and omp each read their own. My homegrown ones read wherever I told them to that week. Each of them has an opinion, and none of those opinions is “the repo Greg keeps his stuff in.” If I want my go-via-make skill in all of them, the naive answer is five copies. Then I fix a bug in one, forget the other four, and spend an afternoon wondering why omp keeps running go test directly. That’s exactly the thing DRY Don’t Repeat Yourself is supposed to prevent. We’d never tolerate five copy-pasted copies of a function in a codebase. Why tolerate it for skills? So: the repo is the truth. The agent folders are just views onto it. The Layout Here’s what’s on my disk. ~/src/gherlein-bare-skills/ <- git repo, the skills I write by hand ├── api-canary/SKILL.md ├── build-autonomous/SKILL.md ├── engineering-principles/SKILL.md ├── go-via-make/SKILL.md ├── test-as-guardrails/SKILL.md └── ... 29 in all ~/.claude/skills/ <- Claude's folder: nothing but symlinks ├── api-canary - ~/src/gherlein-bare-skills/api-canary ├── build-autonomous - ~/src/gherlein-bare-skills/build-autonomous └── ... One repo, one target. That’s the whole system. The whole thing is wired up in one small file, ~/.config/skills-mapper/agents.toml . This is mine, verbatim: store personal = "/home/gherlein/src/gherlein-bare-skills" agents claude-code = "~/.claude/skills" copilot = "~/.copilot/skills" hax = "~/.config/hax/skills" pi = "~/.pi-go/skills" oh-my-pi = "~/.config/agents/skills" kit = "~/.config/kit/skills" store lists extra folders sm reads skills from . The key personal is just a label. agents lists the folders it maps skills into . This snapshot happens to have only Claude Code switched on. When I pull pi, omp, or one of my own agents into an experiment, I uncomment its line or add one; for my homegrown agents it’s just a name and a path and sync. Every agent gets the exact same skills, linked to the exact same files. One copy, many agents. That’s the whole DRY payoff, and it’s the single most useful thing sm does for me. Day to Day The loop is three commands, and honestly I mostly run one of them: sm sync --dry-run what would change? sm sync do it sm status is everything healthy? Here’s what sm status says on my machine right now: bash $ sm status store: 0 skills /home/gherlein/.local/share/skills store: 29 skills /home/gherlein/src/gherlein-bare-skills claude-code owned=29 missing=0 unmanaged=0 dangling=0 /home/gherlein/.claude/skills That last line is the one I care about. owned=29 means sm placed all 29 links. missing=0 means nothing in the stores failed to make it into Claude’s folder. unmanaged=0 means there’s nothing in there that sm didn’t put there. dangling=0 means no links point at something I deleted. All zeros is healthy. Anything else is worth a look. The first line is sm ’s built-in default store, ~/.local/share/skills . I don’t use it, so it sits there empty. Everything I care about lives in the repo. And because every entry in ~/.claude/skills is a symlink back into the repo, edits show up instantly . I open ~/src/gherlein-bare-skills/go-via-make/SKILL.md , change it, save it, and the next Claude session sees the new version. No sync needed for an edit. A sync is only needed when the set of skills changes: something added, removed, or renamed. Example: Writing a New Skill Say I keep fighting the same problem with how an agent writes commit messages, and I want to bottle the fix. I write the skill directly in the repo: cd ~/src/gherlein-bare-skills mkdir commit-msg $EDITOR commit-msg/SKILL.md --- name: commit-msg description: Write a conventional commit message for the staged changes. --- Read git diff --staged and write a one-line conventional commit subject... One rule matters here: the directory name has to match the name in the frontmatter. sm is strict about that, on purpose. Then: bash $ sm sync sync: claude-code +1 -0 $ git add commit-msg && git commit -m "add commit-msg skill" && git push Claude has it now. So does every other machine I own, the next time I pull there. And if the skill turns out to be a bad idea, git log commit-msg/ tells me exactly what I was thinking when I wrote it. Usually something optimistic. Example: A New Machine This is where keeping skills in git pays for itself. Fresh box, nothing on it: 1. get my skills git clone git@github.com:gherlein/gherlein-bare-skills.git ~/src/gherlein-bare-skills 2. get sm Debian/Ubuntu; there's also Homebrew and go install arch=$ dpkg --print-architecture ver=$ curl -fsSLI -o /dev/null -w '%{url effective}' https://github.com/gherlein/sm/releases/latest | sed 's|. /v||' curl -fLO https://github.com/gherlein/sm/releases/download/v${ver}/skills-mapper ${ver} linux ${arch}.deb sudo apt install ./skills-mapper ${ver} linux ${arch}.deb 3. tell sm which agents I use it asks y/N for each one it finds sm probe 4. point it at the repo: add a store line to agents.toml $EDITOR ~/.config/skills-mapper/agents.toml 5. go sm sync sm status Five steps, and Claude on the new box knows everything Claude on my old box knew. Pulling updates later is just: git -C ~/src/gherlein-bare-skills pull && sm sync If someone deleted a skill upstream ok, if I deleted it upstream , the sync unlinks it from every agent. No stale copies hanging around in some folder I forgot about. Example: Tools That Write Their Own Skills Here’s the part I’m most excited about. My newer command-line tools carry their own skill inside the binary . That’s the Skill Self-Installation idea https://blog.herlein.com/post/skills-are-the-new-man-pages/ : the tool embeds a SKILL.md with //go:embed and answers two subcommands. print-skill dumps it to stdout. install-skill writes it to a folder as a proper skill directory. sm does it. So do gogl https://github.com/gherlein/gogl GL.iNet travel routers and gofi https://github.com/gherlein/gofi UniFi controllers . The neat thing is that the skill always matches the binary. Upgrade the tool, re-run install-skill , and the docs your agent reads are the docs for the version you actually have. No more agent confidently using a flag that went away two releases ago. Where does it write? By default, the XDG store at ~/.local/share/skills . But every one of these tools honors SM DEFAULT STORE DIR , and that can be any folder you want, including your git-backed skills repo: export SM DEFAULT STORE DIR=~/src/gherlein-bare-skills gogl install-skill writes ~/src/gherlein-bare-skills/gogl-cli/ gofi install-skill writes ~/src/gherlein-bare-skills/gofi-cli/ sm install-skill writes ~/src/gherlein-bare-skills/sm-cli/ sm sync and now every agent has them Point it at the repo and the tool skills land right next to the ones I write by hand, under version control, mapped out to every agent by the same sm sync . sm notices that the store entry and the default store are the same folder and reads it once. No double-counting. Or don’t. If you’d rather not commit generated skills into git and there’s a decent argument that you shouldn’t, the same way you don’t commit build output , leave SM DEFAULT STORE DIR alone and let them land in ~/.local/share/skills . sm reads both and treats them as one library either way. I go back and forth on which I prefer. Today I lean toward keeping them out of the repo, since the binary is the real source of truth. Ask me again in a month. Two safety rails worth knowing. If a different skill with the same name is already there, install-skill refuses and exits 3 instead of clobbering it --force overrides . And if the same skill name ends up in two stores, sm sync refuses to guess: skill "