{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cashmatch.app/.well-known/agent-skills/schema.json",
  "title": "CashMatch Agent Skills Discovery Index",
  "description": "Draft format for CashMatch's /.well-known/agent-skills/index.json. Entries are DISCOVERY descriptors for existing public capabilities, not downloadable executable skill bundles. `sha256` is the lowercase hex SHA-256 of the UTF-8 bytes of the entry's `description`, provided as a stable integrity/identity digest for the descriptor; when real executable skill bundles exist it will instead hash the bundle.",
  "type": "object",
  "required": ["$schema", "skills"],
  "properties": {
    "$schema": { "type": "string", "format": "uri" },
    "version": { "type": "string" },
    "skills": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "type", "description", "url", "sha256"],
        "properties": {
          "name": { "type": "string" },
          "type": { "type": "string", "enum": ["discovery", "executable"] },
          "description": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
        }
      }
    }
  }
}
