require-prompt-file-metadata
Require reusable Copilot prompt files to declare description, agent, and built-in agent-mode tools metadata.
Rule catalog ID: R002
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- prompt files with missing or blank
description - prompt files with missing or blank
agent - prompt files that still use deprecated
mode - built-in
agentprompt files withouttools
Why this rule existsâ
Prompt files are reusable requests. Explicit metadata makes them easier to understand, safer to run, and more consistent across repositories. Current VS Code prompt files use agent instead of the older mode key.
â Incorrectâ
---
description: Review this repository
agent: agent
---
Audit the repository for stale branding and broken docs links.
â Correctâ
---
description: Review this repository
agent: agent
tools: [search/file_search, search/read_file]
---
Audit the repository for stale branding and broken docs links.