{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Skill specification",
  "type": "object",
  "required": [
    "name",
    "description",
    "archetype",
    "primary_job",
    "in_scope",
    "out_of_scope",
    "handoff",
    "negative_triggers",
    "use_cases",
    "workflow",
    "output_contract",
    "tool_policy",
    "eval_plan",
    "release_gates"
  ],
  "properties": {
    "name": {"type": "string"},
    "description": {"type": "string"},
    "archetype": {"type": "string", "enum": ["router", "executor", "ops", "utility"]},
    "primary_job": {"type": "string"},
    "in_scope": {"type": "array", "items": {"type": "string"}},
    "out_of_scope": {"type": "array", "items": {"type": "string"}},
    "handoff": {"type": ["array", "object", "string"]},
    "negative_triggers": {"type": "array", "items": {"type": "string"}},
    "use_cases": {"type": "array", "minItems": 1},
    "workflow": {"type": "array", "minItems": 1},
    "output_contract": {"type": ["array", "object", "string"]},
    "tool_policy": {"type": ["array", "object", "string"]},
    "eval_plan": {"type": ["array", "object", "string"]},
    "release_gates": {"type": ["array", "object", "string"]}
  }
}
