{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xadocs.com/ai/catalog.schema.json",
  "title": "XA Docs machine-readable catalog",
  "type": "object",
  "required": ["schemaVersion", "published", "canonicalBase", "site", "entryPoints", "interpretation", "collections", "skills", "software", "documents"],
  "properties": {
    "schemaVersion": { "const": "xadocs.catalog/1.0" },
    "published": { "type": "string", "format": "date" },
    "canonicalBase": { "type": "string", "format": "uri" },
    "site": { "type": "object" },
    "entryPoints": { "type": "object" },
    "interpretation": { "type": "object" },
    "collections": { "type": "object" },
    "skills": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "slug", "title", "summary", "publishedFileCount", "rawInstructionsUrl", "archiveUrl", "archiveSha256"]
      }
    },
    "software": { "type": "array" },
    "documents": { "type": "array" }
  }
}

