{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ECC Install Modules",
  "type": "object",
  "properties": {
    "version": {
      "type": "integer",
      "minimum": 1
    },
    "modules": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9-]+$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "rules",
              "agents",
              "commands",
              "hooks",
              "platform",
              "orchestration",
              "skills",
              "docs"
            ]
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "paths": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "targets": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "claude",
                "claude-project",
                "cursor",
                "antigravity",
                "codex",
                "gemini",
                "opencode",
                "codebuddy",
                "joycode",
                "qwen",
                "zed"
              ]
            }
          },
          "dependencies": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$"
            }
          },
          "defaultInstall": {
            "type": "boolean"
          },
          "cost": {
            "type": "string",
            "enum": [
              "light",
              "medium",
              "heavy"
            ]
          },
          "stability": {
            "type": "string",
            "enum": [
              "experimental",
              "beta",
              "stable"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "description",
          "paths",
          "targets",
          "dependencies",
          "defaultInstall",
          "cost",
          "stability"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "version",
    "modules"
  ],
  "additionalProperties": false
}
