Skills uitleveren
Van map naar installatie
Elke client die skills leest, leest een map op schijf. Geen enkele installeert er een vanaf een willekeurige URL. Dat ene feit bepaalt de hele distributievraag, en het verklaart waarom zoveel installatiecommando s stil niets doen. Deze skill zet de vier manieren op een rij, met per manier wat hij kost en waar hij misgaat.
Zet hem in je eigen agent
Kies je client. Het commando staat er klaar voor.
/plugin marketplace add ASNNetworks/floh-skillseenmalig/plugin install skill-distribution@floh-skillsTyp deze twee in een Claude Code-sessie. De skill is meteen daarna beschikbaar; herstarten is niet nodig.
Wat je nodig hebt
- Een skill die af is
- Git, als je de marketplace-route neemt
Zo ziet het eruit
Een echte sessie, stap voor stap afgespeeld.
De kern
De mappen per client
Waar Claude Code, Codex en de rest kijken, in welke volgorde, en welke laag wint. Een verkeerd pad is erger dan geen pad: de skill laadt gewoon niet en er is geen fout om op te merken.
Eén plugin per skill
Met source "./" plus een gescopete skills-array plus strict:false serveer je meerdere losse plugins uit één platte skills-map, zonder per skill een eigen plugin.json.
De URL-val
marketplace add accepteert een directe URL naar een marketplace.json, maar haalt alleen dat ene bestand op. Relatieve plugin-paden lossen dan niet op. Het lijkt te werken tot iemand installeert.
Een checklist die eindigt bij bewijs
Het laatste punt is dat je de installatie zelf hebt gedraaid, op een schone machine, precies zoals hij er staat. Alles ervoor kan fout zijn zonder ook maar één foutmelding.
Wanneer je hem pakt
Je eerste skill publiceren
Je hebt iets dat werkt en wilt het delen. Deze skill zegt welke van de vier manieren bij je situatie past, in plaats van je meteen een marketplace te laten bouwen.
Een skill door je team laten gebruiken
Voor iets projectspecifieks is committen in de repo bijna altijd het antwoord: iedereen krijgt hem bij het klonen en hij versioneert mee met de code die hij beschrijft.
Een marketplace opzetten
Het volledige manifest, welke velden ertoe doen, en waarom je version moet bijwerken bij elke release. Zonder die bump krijgt niemand je update.
Uitzoeken waarom een installatie niets doet
Meestal is het de URL-val, een pad dat bij die client niet bestaat, of een skills-array die ontbreekt waardoor elke entry alles laadt.
Lees hem voordat je hem draait
Dit is precies wat er in de map komt te staan. Geen verrassingen, geen verborgen stappen.
1 bestanden
---
name: skill-distribution
description: Use when packaging, installing, publishing or sharing an Agent Skill, or when deciding how to get a SKILL.md onto someone else's machine. Covers the on-disk locations each agent client reads, plugin marketplaces for Claude Code, archive-based installs, and the mistakes that produce an install command that silently does nothing. Not for authoring the content of a skill.
---
# Distributing Agent Skills
A skill is a directory containing a `SKILL.md` file, optionally alongside `scripts/`,
`references/` and `assets/`. Every skills-compatible agent loads it the same way: **it reads a
folder on disk.** No mainstream client installs a skill from an arbitrary HTTP URL.
That single fact decides the whole distribution question. A download link is not an install
mechanism; it is a file the user still has to unpack into the right directory. Anything that
claims to be a one-command install has to put a directory somewhere the client already scans.
## Where clients look
**Claude Code** reads three locations, in precedence order (enterprise beats personal, personal
beats project):
| Scope | Path |
|-------|------|
| Personal | `~/.claude/skills/<name>/SKILL.md` |
| Project | `.claude/skills/<name>/SKILL.md` |
| Plugin | `<plugin>/skills/<name>/SKILL.md` |
Project skills also load from `.claude/skills/` in every parent directory up to the repository
root, and from nested `.claude/skills/` directories once Claude reads or edits a file inside that
subdirectory. Symlinks are followed. Changes to `SKILL.md` are picked up within the session
without a restart.
**Codex** scans, in scope order: `$CWD/.agents/skills`, `$CWD/../.agents/skills`,
`$REPO_ROOT/.agents/skills`, `$HOME/.agents/skills`, and `/etc/codex/skills`. It follows symlinks
and detects changes automatically. It also ships a built-in `$skill-installer` for fetching a
skill into one of those locations.
Other clients that adopted the format use their own directories. Verify the path against that
client's current documentation before you publish an install command for it. A wrong path is
worse than an absent one: the skill simply never loads, and there is no error to notice.
## Four ways to ship, in order of user effort
### 1. Copy into a scanned directory
The lowest-tech option, and the one that works everywhere:
```bash
mkdir -p ~/.claude/skills/my-skill
cp -r my-skill/* ~/.claude/skills/my-skill/
```
Good for a personal skill or a quick share. It does not update, and nothing tracks versions.
### 2. Commit it to the repository
Put the skill in `.claude/skills/` (Claude Code) or `.agents/skills/` (Codex) and commit. Every
contributor gets it on clone, and it versions with the code that it describes. This is the right
default for anything project-specific.
Note that a project skill can carry an `allowed-tools` frontmatter field, which grants itself tool
permissions once the user accepts the workspace trust dialog. Review project skills before
trusting a repository.
### 3. A plugin marketplace (Claude Code, one command)
This is the only true one-command install. A marketplace is a git repository containing
`.claude-plugin/marketplace.json`:
```json
{
"name": "my-marketplace",
"owner": { "name": "Your Name" },
"plugins": [
{
"name": "my-skill",
"source": "./",
"skills": ["./skills/my-skill"],
"strict": false,
"description": "What the skill does",
"version": "1.0.0"
}
]
}
```
Users then run:
```
/plugin marketplace add owner/repo
/plugin install my-skill@my-marketplace
```
Two details that are easy to get wrong:
- **`source: "./"` plus a scoped `skills` array** is how you serve several independent plugins out
of one flat `skills/` folder. Without the `skills` array, every entry loads every skill in the
folder.
- **`strict: false`** means the marketplace entry is the authority, so the plugin directory needs
no separate `.claude-plugin/plugin.json`. With the default `strict: true`, it does.
Set `version` and bump it on each release; users only receive updates when that string changes. If
you omit it in a git-hosted marketplace, every commit counts as a new version.
### 4. An archive plus a one-liner
For clients with no installer, serve a `.tar.gz` and let users pipe it straight into place:
```bash
curl -fsSL https://example.com/skills/my-skill.tar.gz | tar -xz -C ~/.claude/skills
```
Serve `.zip` as well for people who would rather click a button, and for clients whose UI takes an
uploaded archive. A zip cannot be piped into `tar -xz`, so if you offer only one format, offer the
tarball for terminals and accept that browser users get a worse experience.
## The URL trap
`/plugin marketplace add` accepts a direct URL to a `marketplace.json` file, which looks like it
lets you host a marketplace on your own website. It mostly does not work the way you expect: only
that one file is downloaded, so any plugin entry using a relative `source` path cannot resolve.
If you distribute by URL, every plugin entry must use a `github`, `url` (git) or `npm` source.
Otherwise host the marketplace in git, where relative paths resolve against the cloned copy.
## Checklist before you publish
1. `SKILL.md` has frontmatter with `name` and `description`. The description is what the agent
sees at startup, so write it as trigger conditions, not as a summary.
2. The directory name matches what users will type. In Claude Code the command comes from the
directory name for personal and project skills, and from the plugin namespace for plugin
skills.
3. Any bundled script is referenced through `${CLAUDE_SKILL_DIR}` rather than a hardcoded path, so
it resolves whether the skill is installed personally, per project, or as a plugin.
4. `marketplace.json` parses, and every path in a `skills` array exists and contains a `SKILL.md`.
5. **You ran the install yourself, on a clean machine, exactly as written.** Every step above can
be wrong in a way that produces no error at all. An install command that has only been read is
not a tested install command.
Wat er veranderd is
- v1.0.0huidig
- Eerste versie: mappen per client, vier manieren van uitleveren, de URL-val en een checklist voor publicatie.
Werkt hij voor je?
Over Skills uitleveren
Wat mensen vragen voordat ze hem installeren.
Combineert goed met
Zo een, maar dan voor jouw werk?
Elke skill hier komt uit werk dat ik echt deed. Zit er iets in jouw proces dat je telkens opnieuw uitlegt aan een agent, dan is dat precies een skill.