{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popnow-ai/json-schema/popnow-ai-agent-skill-detail-schema.json",
  "title": "AgentSkillDetail",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popnow-ai-openapi.yml#/components/schemas/AgentSkillDetail",
  "allOf": [
    {
      "$ref": "#/$defs/AgentSkill"
    },
    {
      "type": "object",
      "required": [
        "install"
      ],
      "properties": {
        "install": {
          "type": "object",
          "required": [
            "folder",
            "prompt",
            "guide",
            "agents"
          ],
          "properties": {
            "folder": {
              "type": "string",
              "description": "The single folder inside the package, popnow-<slug>."
            },
            "downloadPath": {
              "type": "string",
              "description": "Path of the download endpoint (absent for open-source skills)."
            },
            "downloadUrl": {
              "type": "string",
              "format": "uri"
            },
            "prompt": {
              "type": "string",
              "description": "A sentence to paste into an agent so it installs the skill itself."
            },
            "guide": {
              "type": "string",
              "format": "uri",
              "description": "Install steps written for agents."
            },
            "agents": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "personalDir",
                  "projectDir",
                  "invoke",
                  "docs",
                  "command"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "enum": [
                      "claude-code",
                      "codex",
                      "cursor",
                      "gemini-cli",
                      "github-copilot",
                      "windsurf",
                      "openclaw",
                      "antigravity",
                      "opencode",
                      "hermes-agent",
                      "kimi-code",
                      "kiro",
                      "trae",
                      "qoder",
                      "qwen-code",
                      "cline",
                      "roo-code",
                      "kilo-code",
                      "amp",
                      "zed",
                      "warp",
                      "goose",
                      "junie",
                      "codebuddy",
                      "openhands",
                      "devin",
                      "minimax-code",
                      "mistral-vibe"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "personalDir": {
                    "type": "string",
                    "description": "Skills folder for every project."
                  },
                  "projectDir": {
                    "type": "string",
                    "description": "Skills folder for the current repository only."
                  },
                  "invoke": {
                    "type": "string",
                    "description": "How to call the skill in a chat with that agent."
                  },
                  "docs": {
                    "type": "string",
                    "format": "uri"
                  },
                  "command": {
                    "type": "string",
                    "description": "Shell command that installs the skill into personalDir."
                  }
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "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"
        }
      }
    }
  }
}