{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentex.cc/registry/schemas/capability-registry.schema.json",
  "title": "Agentex Capability Registry",
  "type": "object",
  "required": [
    "schema_version",
    "name",
    "description",
    "human_page",
    "registry_markdown",
    "entry_strategy",
    "manual_execution",
    "packs",
    "reliability"
  ],
  "properties": {
    "schema_version": { "type": "string" },
    "name": { "type": "string" },
    "description": { "type": "string" },
    "human_page": { "type": "string", "format": "uri" },
    "registry_markdown": { "type": "string", "format": "uri" },
    "entry_strategy": {
      "type": "object",
      "required": ["default", "manual", "handoff"],
      "properties": {
        "default": { "type": "string" },
        "manual": { "type": "string" },
        "handoff": { "type": "string" }
      }
    },
    "manual_execution": {
      "type": "object",
      "required": ["recommended_for", "commands"],
      "properties": {
        "recommended_for": { "type": "array", "items": { "type": "string" } },
        "commands": { "type": "array", "items": { "type": "string" } }
      }
    },
    "packs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "name", "use_when", "inputs", "outputs", "tags"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "use_when": { "type": "string" },
          "inputs": { "type": "array", "items": { "type": "string" } },
          "outputs": { "type": "array", "items": { "type": "string" } },
          "tags": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    "reliability": {
      "type": "object",
      "additionalProperties": { "type": "string" }
    }
  }
}
