Skill 1.4.4
Create and configure GitHub Copilot instruction files
Key Concepts
A repository-wide file, .github/copilot-instructions.md, is added automatically to chat requests in that repository. Path-specific files named NAME.instructions.md in .github/instructions start with front matter such as applyTo: "**/*.sql", so their rules apply only to matching files; when both kinds apply, Copilot uses both. AGENTS.md files provide instructions for agents, with the nearest file in the directory tree taking precedence.
Good SQL instructions are short and specific: the target platform and compatibility level, schema and naming conventions, required patterns (for example SET NOCOUNT ON, TRY...CATCH with THROW, parameterized dynamic SQL) and prohibited patterns (SELECT *, NOLOCK hints, hard-coded credentials). Personal instructions take precedence over repository instructions, which take precedence over organization instructions, so conflicting rules should be avoided. Instruction files are code: they are reviewed in pull requests and must never contain secrets.