schema.json documents the manifest for editors, and the parser enforces it. A test checks that both accept the same fields. For how the fields work together, read The manifest.
For completion and checks in your editor, put this at the top of the manifest:
{
"$schema": "https://unpkg.com/fleetrc/schema.json"
}Top-level fields
Section titled "Top-level fields"Any other key is an error.
| Field | Type | Default | What it does |
|---|---|---|---|
$schema | string | none | The schema URL, for editors. |
extends | array of string or object | [] | Team manifests whose sources you take in. |
agents | "all" or array of ids | "all" | The agents that get skills. "all" means every agent installed here. |
sources | array of source | [] | Where skills come from. The first source with a skill name wins. |
forks | object | {} | Skills copied from upstream, by skill name. |
hooks | array | [] | Commands run after a sync that changed matching files. |
fleet | array of strings | [] | SSH hosts, and tag:<name> entries for Tailscale tags. |
hub | string | none | URL each sync POSTs its report to. |
report | object | none | { "run": "<command>" }: gets the report JSON on stdin after each sync. |
timer | object | see below | The schedule for fleetrc timer install. |
Only the root manifest can set hooks, fleet, hub and report.
An extends entry is a manifest location, or an object with manifest (required: a path or <repo>//<file>), exclude (skill names left out) and excludeSources (source ids left out).
Sources
Section titled "Sources"A source names its location with exactly one of git, index, npm or local:
| Field | Type | Kind | What it does |
|---|---|---|---|
git | string | git | owner/repo, github:owner/repo, or a git URL. |
ref | string | git | Branch, tag or commit. |
path | string | git | A working clone on this machine, such as ~/code/skills. |
followLinks | boolean | git | Follow links that lead out of the working clone. Needs path. Root manifest only. |
npm | string | npm | name, name@version or name@tag. |
registry | URL | npm | The registry to fetch from. |
index | URL | index | A site that serves /.well-known/agent-skills/index.json or /.well-known/skills/index.json. |
local | string | local | A folder on this machine, linked in place. |
adopt | boolean | git, local | Hand-made skills move into this source. A git source needs path. |
An index takes only id, include, exclude and update from this table.
| Field | Type | Default | What it does |
|---|---|---|---|
id | string | from the location | Names the source in reports and its state folder. |
skills | string | discovery | Glob of skill folders inside the source, such as skills/*. |
include | array of strings | all | Only these skill names. |
exclude | array of strings | none | Never these skill names. |
update | "auto" or "review" | "auto" | review holds updates until fleetrc update <source>. |
instructions | string or object | none | The user-level instruction file. The glob must match one file. |
subagents | string or object | none | Subagent files for each agent's subagents folder. |
commands | string or object | none | Command files for each agent's commands folder. |
mcp | string | none | A file holding {"mcpServers": {...}}. Root manifest only. |
agentHooks | string or object | none | Hook definitions in each agent's format. Root manifest only. |
An id uses letters, digits, ., _ and -, starts with a letter or digit, and can't be a Windows device name such as con. Two ids that differ only in case count as one.
An object for instructions, subagents or commands maps agent ids to globs; The manifest lists the ids. Hooks and MCP covers mcp and agentHooks.
Forks, hooks and timer
Section titled "Forks, hooks and timer"Each forks entry, by skill name:
| Field | Type | Default | What it does |
|---|---|---|---|
from | string | required | The repository the skill came from. |
path | string | required | The skill folder in that repository. |
upstream | "git" or "index" | none | git lets a full online sync check a repository whose origin is ambiguous. |
base | string | none | The upstream commit you last merged. |
Each hooks entry:
| Field | Type | Default | What it does |
|---|---|---|---|
run | string | required | Shell command. It gets the report on stdin, plus FLEETRC_HOOK and FLEETRC_CHANGED. |
name | string | the run value | Names the hook in the report. |
on | array of strings | ["*:**"] | <source id>:<glob> patterns, such as personal:pstack/**. |
The timer object:
| Field | Type | Default | What it does |
|---|---|---|---|
cron | string | "*/30 * * * *" | Five fields: minute, hour, day of month, month, day of week. |
timeZone | string | "local" | An IANA zone such as "Europe/Madrid", or "local". |
Validation errors
Section titled "Validation errors"fleetrc validates the manifest whenever it reads it, and add and remove validate a change before they write it. An error is one line that names the file and the field, and the command exits 1. A bad agent id, tag, cron or time zone gets its own message that says what to write.
fleetrc: /home/me/skills/.fleetrc/manifest.json: sources[0] needs exactly one of git, index, npm or local| Message after the file name | Fix |
|---|---|
<key> is not a manifest field | Check the spelling of the top-level key. |
sources[0] needs exactly one of git, index, npm or local | Keep one location field. |
sources[0].ref only applies to git sources | Remove the field, or use the kind that takes it. |
sources[0].adopt only applies to git sources with a path, and local | Add path, or remove adopt. followLinks needs path too. |
sources declare "x" twice; give one an id | Set id on one of the two. |
sources[0].skills "../x" must not leave the source | Use a relative glob with no ... |
hooks[0].run is required | Add the command. forks.<name>.from and extends[0].manifest say the same. |