Manifest Reference
JSON manifest shape and validation rules.
Manifest Reference
The sync protocol uses JSON manifest uploads, not ZIP files.
1{2 "version": 1,3 "source": {4 "id": "main-docs",5 "commit": "abc123",6 "branch": "main",7 "repository": "valkyrianlabs/payload-markdown-docs"8 },9 "mode": "sync",10 "deleteBehavior": "archive",11 "publish": false,12 "files": [13 {14 "path": "getting-started/installation.md",15 "sha256": "...",16 "content": "# Installation\n\n..."17 }18 ],19 "assets": [20 {21 "kind": "skill",22 "path": "skills/main-docs/codex/SKILL.md",23 "route": "/plugins/main-docs/skills/codex/SKILL.md",24 "contentType": "text/markdown; charset=utf-8",25 "sha256": "...",26 "content": "# Skill\n\n..."27 }28 ]29}
Validation Rules
versionmust be1source.idis required- only
.mdfiles are accepted - paths must be relative and cannot contain traversal
- duplicate normalized paths are rejected
- declared SHA-256 must match content
- frontmatter must use the supported subset
- file count and size limits are enforced
Static Assets
files are docs records and use frontmatter, title resolution, and route
derivation. assets are native skill artifacts and optional static fallback
artifacts stored separately. They do not require frontmatter and are not parsed
as docs pages.
Supported asset kinds:
llmsllms-fullskillstatic
llms and llms-full assets are optional custom static fallback files. By
default, /llms.txt, /llms-full.txt, and docs-set llms files are generated
by the plugin from synced docs, docs set metadata, dependencies, and skills.
Skill routes are derived from the computed docs set route, so
skills/main-docs/codex/SKILL.md serves under a public route such as
/plugins/main-docs/skills/codex/SKILL.md. The agent root route, for example
/plugins/main-docs/skills/codex, is generated as a Markdown directory index,
and /plugins/main-docs/skills/codex.zip is generated from the synced text
artifacts rather than stored as a static ZIP asset.
The manifest does not include target collection, target fields, route identity, publish authority, or hard-delete authority.
See frontmatter.
Agent Artifacts
The sync manifest is not the AI workflow artifact. AI-first support is delivered
through native skill directories under skills/payload-markdown-docs/<agent>/.
Those files can be installed by the CLI, packaged with the npm build, or served
by a docs website for direct download.
Keep /docs focused on human documentation and /skills focused on
agent-native workflow instructions.