{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.orbitspace.dev/examples/skill-bundle.schema.json",
  "title": "OrbitSpace immutable Agent Skill bundle",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "invocation_policy", "files"],
  "properties": {
    "schema_version": {"const": "orbitspace.skill/v1"},
    "invocation_policy": {"enum": ["model", "user"]},
    "files": {
      "type": "array", "minItems": 1, "maxItems": 64,
      "items": {
        "type": "object", "additionalProperties": false,
        "required": ["path", "content_base64", "sha256"],
        "properties": {
          "path": {"type": "string", "minLength": 1, "maxLength": 256},
          "content_base64": {"type": "string", "contentEncoding": "base64"},
          "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
        }
      }
    }
  }
}
