{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://kendr.org/sdk/skill-pack/catalog-entry.schema.json",
  "title": "KendrWeb Skill Catalog Entry",
  "type": "object",
  "required": ["id", "slug", "label", "version", "install_source"],
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
    },
    "label": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string"
    },
    "author": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "minLength": 1
    },
    "homepage": {
      "type": "string"
    },
    "source_kind": {
      "type": "string",
      "const": "kendrweb"
    },
    "install_source": {
      "type": "string",
      "description": "Archive URL consumed by Kendr Desktop."
    },
    "archive_sha256": {
      "type": "string",
      "pattern": "^[a-fA-F0-9]{64}$"
    },
    "skill_count": {
      "type": "integer",
      "minimum": 0
    },
    "mcp_server_names": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tool_count": {
      "type": "integer",
      "minimum": 0
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
