microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/chatmode-frontmatter.schema.json
41lines · modecode
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/chatmode-frontmatter.schema.json", |
| 4 | "title": "ChatMode File Frontmatter Schema", |
| 5 | "description": "Frontmatter schema for .chatmode.md files (legacy/deprecated format)", |
| 6 | "type": "object", |
| 7 | "required": ["description"], |
| 8 | "properties": { |
| 9 | "description": { |
| 10 | "type": "string", |
| 11 | "minLength": 1, |
| 12 | "description": "Concise explanation of chatmode functionality (10-200 characters)" |
| 13 | }, |
| 14 | "tools": { |
| 15 | "type": "array", |
| 16 | "items": { |
| 17 | "type": "string" |
| 18 | }, |
| 19 | "description": "List of GitHub Copilot tools available to this agent (e.g., codebase, search, editFiles, runCommands)" |
| 20 | }, |
| 21 | "mode": { |
| 22 | "type": "string", |
| 23 | "enum": ["agent", "assistant", "copilot"], |
| 24 | "description": "Defines agent interaction pattern" |
| 25 | }, |
| 26 | "model": { |
| 27 | "type": "string", |
| 28 | "description": "The language model to use (e.g., 'Claude Sonnet 4')" |
| 29 | }, |
| 30 | "version": { |
| 31 | "type": "string", |
| 32 | "pattern": "^\\d+\\.\\d+\\.\\d+$", |
| 33 | "description": "Semantic version number (e.g., '1.0.0')" |
| 34 | }, |
| 35 | "author": { |
| 36 | "type": "string", |
| 37 | "description": "Attribution for chatmode creator (e.g., 'microsoft/hve-core')" |
| 38 | } |
| 39 | }, |
| 40 | "additionalProperties": true |
| 41 | } |