Instructions for GitHub Copilot to improve code quality and enforce best practices.
- Code in English - All code output in English (variables, functions, comments)
- Response in your language - Copilot responds in the language you use
- Production-ready code - No placeholders, proper error handling
- Modern patterns - TypeScript strict mode, React hooks, async/await
- Anti-hallucination - Verifies libraries/APIs before using them
- Action-oriented - Executes immediately, no permission asking
irm https://raw.githubusercontent.com/LightZirconite/copilot-rules/main/scripts/install-copilot-instructions.bat -OutFile i.bat; .\i.bat; rm i.batcurl -fsSL https://raw.githubusercontent.com/LightZirconite/copilot-rules/main/scripts/install-copilot-instructions.sh | bash-
Copy
instructions/global.instructions.mdto your VS Code prompts folder:- Windows:
%APPDATA%\Code\User\prompts\ - macOS:
~/Library/Application Support/Code/User/prompts/ - Linux:
~/.config/Code/User/prompts/
- Windows:
-
Enable instruction files in VS Code settings:
{ "github.copilot.chat.codeGeneration.useInstructionFiles": true } -
Reload VS Code (
Ctrl+Shift+P→Developer: Reload Window)
The instructions teach Copilot to:
- Write code in English - Consistent, professional codebases
- Execute tasks immediately - No "Should I proceed?" questions
- Handle edge cases - Empty arrays, API errors, undefined values
- Follow security practices - No hardcoded secrets, SQL injection prevention
- Provide complete code - No
// ...existing code...fragments
See CONTRIBUTING.md.
MIT - LICENSE