GitHub 1
Skip to content

Manifest schema

Every field of .fleetrc/manifest.json, with its type and default, and the validation errors fleetrc prints when a manifest is wrong.

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"
}
.fleetrc/manifest.json

Any other key is an error.

FieldTypeDefaultWhat it does
$schemastringnoneThe schema URL, for editors.
extendsarray 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.
sourcesarray of source[]Where skills come from. The first source with a skill name wins.
forksobject{}Skills copied from upstream, by skill name.
hooksarray[]Commands run after a sync that changed matching files.
fleetarray of strings[]SSH hosts, and tag:<name> entries for Tailscale tags.
hubstringnoneURL each sync POSTs its report to.
reportobjectnone{ "run": "<command>" }: gets the report JSON on stdin after each sync.
timerobjectsee belowThe 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).

A source names its location with exactly one of git, index, npm or local:

FieldTypeKindWhat it does
gitstringgitowner/repo, github:owner/repo, or a git URL.
refstringgitBranch, tag or commit.
pathstringgitA working clone on this machine, such as ~/code/skills.
followLinksbooleangitFollow links that lead out of the working clone. Needs path. Root manifest only.
npmstringnpmname, name@version or name@tag.
registryURLnpmThe registry to fetch from.
indexURLindexA site that serves /.well-known/agent-skills/index.json or /.well-known/skills/index.json.
localstringlocalA folder on this machine, linked in place.
adoptbooleangit, localHand-made skills move into this source. A git source needs path.

An index takes only id, include, exclude and update from this table.

FieldTypeDefaultWhat it does
idstringfrom the locationNames the source in reports and its state folder.
skillsstringdiscoveryGlob of skill folders inside the source, such as skills/*.
includearray of stringsallOnly these skill names.
excludearray of stringsnoneNever these skill names.
update"auto" or "review""auto"review holds updates until fleetrc update <source>.
instructionsstring or objectnoneThe user-level instruction file. The glob must match one file.
subagentsstring or objectnoneSubagent files for each agent's subagents folder.
commandsstring or objectnoneCommand files for each agent's commands folder.
mcpstringnoneA file holding {"mcpServers": {...}}. Root manifest only.
agentHooksstring or objectnoneHook 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.

Each forks entry, by skill name:

FieldTypeDefaultWhat it does
fromstringrequiredThe repository the skill came from.
pathstringrequiredThe skill folder in that repository.
upstream"git" or "index"nonegit lets a full online sync check a repository whose origin is ambiguous.
basestringnoneThe upstream commit you last merged.

Each hooks entry:

FieldTypeDefaultWhat it does
runstringrequiredShell command. It gets the report on stdin, plus FLEETRC_HOOK and FLEETRC_CHANGED.
namestringthe run valueNames the hook in the report.
onarray of strings["*:**"]<source id>:<glob> patterns, such as personal:pstack/**.

The timer object:

FieldTypeDefaultWhat it does
cronstring"*/30 * * * *"Five fields: minute, hour, day of month, month, day of week.
timeZonestring"local"An IANA zone such as "Europe/Madrid", or "local".

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
txt
Message after the file nameFix
<key> is not a manifest fieldCheck the spelling of the top-level key.
sources[0] needs exactly one of git, index, npm or localKeep one location field.
sources[0].ref only applies to git sourcesRemove the field, or use the kind that takes it.
sources[0].adopt only applies to git sources with a path, and localAdd path, or remove adopt. followLinks needs path too.
sources declare "x" twice; give one an idSet id on one of the two.
sources[0].skills "../x" must not leave the sourceUse a relative glob with no ...
hooks[0].run is requiredAdd the command. forks.<name>.from and extends[0].manifest say the same.