microsoft/hve-core
Publicmirrored from https://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/skill-frontmatter.schema.json
42lines · modecode
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/skill-frontmatter.schema.json", |
| 4 | "title": "Skill File Frontmatter Schema", |
| 5 | "description": "Frontmatter schema for SKILL.md files in skill directories", |
| 6 | "type": "object", |
| 7 | "required": [ |
| 8 | "name", |
| 9 | "description" |
| 10 | ], |
| 11 | "properties": { |
| 12 | "name": { |
| 13 | "type": "string", |
| 14 | "pattern": "^[a-z][a-z0-9-]*$", |
| 15 | "minLength": 1, |
| 16 | "maxLength": 64, |
| 17 | "description": "Unique identifier for the skill, must match the directory name in lowercase kebab-case" |
| 18 | }, |
| 19 | "description": { |
| 20 | "type": "string", |
| 21 | "minLength": 1, |
| 22 | "maxLength": 1024, |
| 23 | "description": "Brief description of the skill" |
| 24 | }, |
| 25 | "user-invocable": { |
| 26 | "type": "boolean", |
| 27 | "default": true, |
| 28 | "description": "Controls visibility in the VS Code slash command menu. When true, the skill appears in the / menu for manual invocation." |
| 29 | }, |
| 30 | "disable-model-invocation": { |
| 31 | "type": "boolean", |
| 32 | "default": false, |
| 33 | "description": "Controls automatic loading. When true, the skill is only loaded via manual / slash command invocation, not by semantic matching." |
| 34 | }, |
| 35 | "argument-hint": { |
| 36 | "type": "string", |
| 37 | "maxLength": 256, |
| 38 | "description": "Hint text displayed in the VS Code prompt picker showing expected inputs." |
| 39 | } |
| 40 | }, |
| 41 | "additionalProperties": false |
| 42 | } |