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 CopilotPython

GitHub Copilot custom instructions for Python: type safety, testing, and modern Python patterns for .github/copilot-instructions.md.

Code Style
python · copilotCopy Ready

TypeScript GitHub Copilot Instructions

GitHub CopilotTypeScript

GitHub Copilot custom instructions for TypeScript: strict types, modern patterns, and team conventions.

Code Style
typescript · copilotCopy Ready

React GitHub Copilot Instructions

GitHub CopilotReact

GitHub Copilot instructions for React: hooks, patterns, and best practices for modern React apps.

Code Style
react · copilotCopy Ready

Next.js GitHub Copilot Instructions

GitHub CopilotNext.js

GitHub Copilot custom instructions for Next.js App Router projects.

Architecture
nextjs · copilotCopy Ready

Go GitHub Copilot Instructions

GitHub CopilotGo

GitHub Copilot instructions for Go: idiomatic Go, error handling, and project structure.

Code Style
go · golangCopy Ready

Java GitHub Copilot Instructions

GitHub CopilotJava

GitHub Copilot instructions for Java 21: virtual threads, records, sealed types, and modern Spring Boot patterns.

Code Style
java · springCopy Ready

Rust GitHub Copilot Instructions

GitHub CopilotRust

GitHub Copilot custom instructions for Rust: ownership, error handling, async, and idiomatic Rust.

Code Style
rust · copilotCopy Ready

Swift GitHub Copilot Instructions

GitHub CopilotSwift

GitHub Copilot instructions for Swift: SwiftUI, async/await, and modern iOS development patterns.

Code Style
swift · swiftuiCopy Ready

Kotlin GitHub Copilot Instructions

GitHub CopilotKotlin

GitHub Copilot instructions for Kotlin: Android development, coroutines, and idiomatic Kotlin patterns.

Code Style
kotlin · androidCopy Ready

Vue.js GitHub Copilot Instructions

GitHub CopilotVue

GitHub Copilot instructions for Vue 3: Composition API, TypeScript, and modern Vue ecosystem.

Code Style
vue · nuxtCopy Ready

Angular GitHub Copilot Instructions

GitHub CopilotAngular

GitHub Copilot instructions for Angular 17+: signals, standalone components, and modern Angular patterns.

Architecture
angular · signalsCopy Ready

SQL GitHub Copilot Instructions

GitHub CopilotSQL

GitHub Copilot instructions for SQL: query patterns, migrations, and database design conventions.

Database
sql · databaseCopy Ready

Docker GitHub Copilot Instructions

GitHub CopilotDocker

GitHub Copilot instructions for Docker: Dockerfiles, Compose, and container best practices.

Architecture
docker · composeCopy Ready

Testing GitHub Copilot Instructions

GitHub Copilottesting

GitHub Copilot instructions for testing: test generation, patterns, and coverage conventions.

Testing
testing · copilotCopy Ready