require-instructions-apply-to
Require path-specific Copilot instructions files to define a non-empty applyTo frontmatter glob.
Rule catalog ID: R001
Targeted pattern scopeâ
.github/instructions/**/*.instructions.md
What this rule reportsâ
- instructions files with missing or blank
applyTofrontmatter
Why this rule existsâ
Path-specific instructions are only useful when Copilot can tell which files they target. Without applyTo, the instructions file cannot participate in automatic attachment for matching files.
â Incorrectâ
---
description: TypeScript style guidance
---
Use `satisfies` for stable object literals.
â Correctâ
---
description: TypeScript style guidance
applyTo: "src/**/*.ts"
---
Use `satisfies` for stable object literals.