require-valid-prompt-model
Require Copilot prompt-file model metadata to be a non-empty single model name when present.
Rule catalog ID: R026
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- empty prompt-file
modelvalues - prompt-file
modellists where the docs only describe a single model field - malformed list literals such as
model: []
Why this rule existsâ
VS Code documents prompt-file model as the language model used when running the prompt. Unlike custom agents, the prompt-file docs do not describe a prioritized model array shape, so keeping prompt model metadata to a single non-empty model name keeps prompt configuration aligned with the documented contract.
â Incorrectâ
---
description: Review changes
agent: plan
model: ['Claude Haiku 4.5 (copilot)', 'GPT-5 (copilot)']
---
Review the requested changes.
â Correctâ
---
description: Review changes
agent: plan
model: GPT-5 (copilot)
---
Review the requested changes.