{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-skill-response-dto-success-response-schema.json",
  "title": "SkillResponseDtoSuccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-skills-api-openapi.yml#/components/schemas/SkillResponseDtoSuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "instructions": {
          "type": "string"
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": "string",
          "enum": [
            "custom",
            "registry",
            "platform"
          ]
        },
        "registryMeta": {
          "type": [
            "object",
            "null"
          ]
        },
        "presets": {
          "type": [
            "object",
            "null"
          ]
        },
        "isPublic": {
          "type": "boolean"
        },
        "version": {
          "type": "string"
        },
        "activeStatus": {
          "type": "boolean"
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "description": "Path relative to skill root, e.g. scripts/run.py"
              },
              "sizeBytes": {
                "type": "number"
              },
              "contentType": {
                "type": "string"
              }
            },
            "required": [
              "path",
              "sizeBytes",
              "contentType"
            ]
          }
        },
        "packageFileCount": {
          "type": "number",
          "description": "Companion package file count (excludes SKILL.md, which lives on the skill row)."
        },
        "sourceUrl": {
          "type": "string"
        },
        "skillsShUrl": {
          "type": "string"
        },
        "isCreator": {
          "type": "boolean",
          "description": "True when the current user authored this skill."
        },
        "installCount": {
          "type": "number",
          "description": "Total memberships (installs) across all users."
        },
        "changed": {
          "type": "boolean",
          "description": "True when a registry sync overwrote the shared catalog copy."
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "description",
        "instructions",
        "source",
        "isPublic",
        "version"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}