{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-skill-schema.json",
  "title": "Skill",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-skills-api-openapi.yml#/components/schemas/Skill",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "prompt": {
      "type": "string"
    },
    "required_tools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RequiredTool"
      }
    },
    "source_kind": {
      "type": "string",
      "enum": [
        "inline",
        "upload",
        "github"
      ]
    },
    "source_ref": {
      "type": [
        "string",
        "null"
      ],
      "description": "Storage path (upload) or pinned 'owner/repo@sha:path' (github)."
    },
    "model": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "prompt",
    "source_kind",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "RequiredTool": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": true
    }
  }
}