{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/microsoft/hve-core/schemas/chatmode-frontmatter.schema.json",
  "title": "ChatMode File Frontmatter Schema",
  "description": "Frontmatter schema for .chatmode.md files (legacy/deprecated format)",
  "type": "object",
  "required": ["description"],
  "properties": {
    "description": {
      "type": "string",
      "minLength": 1,
      "description": "Concise explanation of chatmode functionality (10-200 characters)"
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of GitHub Copilot tools available to this agent (e.g., codebase, search, editFiles, runCommands)"
    },
    "mode": {
      "type": "string",
      "enum": ["agent", "assistant", "copilot"],
      "description": "Defines agent interaction pattern"
    },
    "model": {
      "type": "string",
      "description": "The language model to use (e.g., 'Claude Sonnet 4')"
    },
    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$",
      "description": "Semantic version number (e.g., '1.0.0')"
    },
    "author": {
      "type": "string",
      "description": "Attribution for chatmode creator (e.g., 'microsoft/hve-core')"
    }
  },
  "additionalProperties": true
}