What Is copilot-instructions.md? Giving Copilot Your Rules
GitHub CopilotPut it in .github/ and Copilot Chat reads it automatically
GitHub Copilot receives project context through the .github/copilot-instructions.md file. It serves the same role as CLAUDE.md for Claude Code and .cursorrules for Cursor. Record coding style, framework rules, domain knowledge, and more.
How to Use
1
Create .github/copilot-instructions.md file
2
Record coding style, framework rules, and prohibited patterns
3
Automatically included as context in Copilot Chat
4
Verify "Use Instruction Files" is enabled in VS Code settings
Tags
#instructions
#context
#convention
#project
Source
GitHub Docs