Best GitHub Copilot Rules
GitHub Copilot reads .github/copilot-instructions.md to customize code suggestions for your repository. Use this to enforce team conventions and best practices.
Add these rules to your .github/copilot-instructions.md file to get better AI code generation.
14 rules available
Python GitHub Copilot Instructions
GitHub Copilot custom instructions for Python: type safety, testing, and modern Python patterns for .github/copilot-instructions.md.
TypeScript GitHub Copilot Instructions
GitHub Copilot custom instructions for TypeScript: strict types, modern patterns, and team conventions.
React GitHub Copilot Instructions
GitHub Copilot instructions for React: hooks, patterns, and best practices for modern React apps.
Next.js GitHub Copilot Instructions
GitHub Copilot custom instructions for Next.js App Router projects.
Go GitHub Copilot Instructions
GitHub Copilot instructions for Go: idiomatic Go, error handling, and project structure.
Java GitHub Copilot Instructions
GitHub Copilot instructions for Java 21: virtual threads, records, sealed types, and modern Spring Boot patterns.
Rust GitHub Copilot Instructions
GitHub Copilot custom instructions for Rust: ownership, error handling, async, and idiomatic Rust.
Swift GitHub Copilot Instructions
GitHub Copilot instructions for Swift: SwiftUI, async/await, and modern iOS development patterns.
Kotlin GitHub Copilot Instructions
GitHub Copilot instructions for Kotlin: Android development, coroutines, and idiomatic Kotlin patterns.
Vue.js GitHub Copilot Instructions
GitHub Copilot instructions for Vue 3: Composition API, TypeScript, and modern Vue ecosystem.
Angular GitHub Copilot Instructions
GitHub Copilot instructions for Angular 17+: signals, standalone components, and modern Angular patterns.
SQL GitHub Copilot Instructions
GitHub Copilot instructions for SQL: query patterns, migrations, and database design conventions.
Docker GitHub Copilot Instructions
GitHub Copilot instructions for Docker: Dockerfiles, Compose, and container best practices.
Testing GitHub Copilot Instructions
GitHub Copilot instructions for testing: test generation, patterns, and coverage conventions.