{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/microsoft/hve-core/schemas/instruction-frontmatter.schema.json",
  "title": "Instruction File Frontmatter Schema",
  "description": "Frontmatter schema for .instructions.md files per VS Code Copilot specification",
  "type": "object",
  "required": ["description"],
  "properties": {
    "description": {
      "type": "string",
      "minLength": 1,
      "description": "A short description of the instructions file"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "The name of the instructions file, used in the UI. If not specified, the file name is used."
    },
    "applyTo": {
      "type": "string",
      "description": "Optional glob pattern that defines which files the instructions should be applied to automatically, relative to the workspace root. Use ** to apply to all files. If not specified, instructions are not applied automatically."
    }
  },
  "additionalProperties": false
}