{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-operational-skill.v1.json",
  "title": "Workspai Workspace Operational Skill",
  "type": "object",
  "required": [
    "schemaVersion",
    "skillId",
    "canonicalPath",
    "title",
    "triggers",
    "requiredReports",
    "scopedProjects",
    "verificationCommands",
    "answerContractSections",
    "markdown"
  ],
  "properties": {
    "schemaVersion": { "const": "workspace-operational-skill.v1" },
    "skillId": { "type": "string", "minLength": 1 },
    "canonicalPath": { "type": "string", "pattern": "^\\.workspai/skills/[^/]+\\.md$" },
    "title": { "type": "string" },
    "triggers": { "type": "array", "items": { "type": "string" } },
    "requiredReports": { "type": "array", "items": { "type": "string" } },
    "scopedProjects": { "type": "array", "items": { "type": "string" } },
    "verificationCommands": { "type": "array", "items": { "type": "string" } },
    "answerContractSections": {
      "type": "array",
      "items": {
        "enum": ["Scope", "Evidence", "Diagnosis", "Fix Plan", "Run", "Verify", "Assumptions"]
      }
    },
    "promptStem": { "type": "string" },
    "markdown": { "type": "string" }
  },
  "additionalProperties": false
}
