{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popnow-ai/json-schema/popnow-ai-agent-skill-schema.json",
  "title": "AgentSkill",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popnow-ai-openapi.yml#/components/schemas/AgentSkill",
  "type": "object",
  "required": [
    "slug",
    "name",
    "summary",
    "bestFor",
    "type",
    "tasks",
    "popnow",
    "popnowRequired",
    "requires",
    "version",
    "updated",
    "url",
    "preview",
    "distribution"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "bestFor": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "type": {
      "type": "string",
      "enum": [
        "video",
        "image",
        "slides",
        "web"
      ]
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "popnow": {
      "type": "array",
      "description": "Media the skill can generate through PopNow (each run is quoted first).",
      "items": {
        "type": "string",
        "enum": [
          "image",
          "video",
          "audio"
        ]
      }
    },
    "popnowRequired": {
      "type": "boolean",
      "description": "True when the skill can't finish without PopNow generation; false when those steps are optional."
    },
    "requires": {
      "type": "array",
      "description": "Tools the skill runs on the user's machine, for example python3, node, ffmpeg or chrome.",
      "items": {
        "type": "string"
      }
    },
    "version": {
      "type": "string"
    },
    "updated": {
      "type": "string",
      "format": "date"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The skill's page on popnow.ai."
    },
    "preview": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "video": {
          "type": "string",
          "format": "uri"
        },
        "image": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "distribution": {
      "type": "string",
      "enum": [
        "popnow",
        "github"
      ],
      "description": "`popnow` packages download from this API; `github` ones are open source (see `repo`)."
    },
    "repo": {
      "type": "string",
      "format": "uri"
    }
  }
}