Shape#
skills init writes this file. skills pin and skills install update the top-level skills array.
{
"version": "1.0",
"agents": ["cursor", "claude"],
"skills": [
{
"namespace": "@payments",
"name": "deploy",
"version": "2.3.1",
"pinned": true
},
{
"namespace": "@payments",
"name": "review",
"channel": "prod"
}
]
}Fields#
| Field | Meaning |
|---|---|
version | Manifest version string. skills init writes 1.0. |
skills | The list skills sync installs. |
skills[].namespace | Owner, including the @. |
skills[].name | Skill name. |
skills[].version | Exact version. Used when channel is absent. |
skills[].channel | Follow dev, staging, prod, or another channel name. Sync ignores version when this is set. |
skills[].pinned | Recorded on the entry. Sync still follows channel when that field is set. |
skills[].tier | Optional always-on, core, or domain. |
agents | claude, cursor, and/or codex. Sync uses this when you do not pass --agent. |
What sync does#
For each entry, sync calls install. A channel entry follows that channel. An entry without a channel installs version. Failures are printed and sync continues. If a skill was deleted or made private, remove it from the file.
Layers#
skills sync reads layers and merges them with the top-level skills array. A layer is an object with scope and skills, or a path to a JSON file of that shape. Paths resolve relative to the skills.json file. A missing file is a warning. Sync continues with the rest.
{
"version": "1.0",
"layers": [
"../org.json",
{ "scope": "team", "skills": [{ "namespace": "@payments", "name": "review", "channel": "prod" }] }
],
"skills": [
{ "namespace": "@payments", "name": "deploy", "version": "2.3.1", "pinned": true }
]
}Scope order, low to high, is local, user, dir, repo, team, org. A higher scope overrides the same skill from a lower scope. An explicit entry in the top-level skills array wins over every layer. Unknown scopes are ignored.