Pillar Specification & Hub DirectoryGitHub Copilot Instructions Generator
Standardize GitHub Copilot Chat and completions across your entire team with root repository instruction files.
.github/copilot-instructions.mdHow GitHub Copilot Instructions Operates in Production
GitHub Copilot reads instructions from `.github/copilot-instructions.md` automatically during chat sessions and code reviews. Defining explicit tech stack conventions, banned libraries, and test requirements eliminates repetitive prompts and keeps team contributions aligned.
Use clear markdown headings to separate architectural rules, banned APIs, and testing workflows.
# GitHub Copilot Repository Instructions
## Tech Stack: Next.js 15, TypeScript 5.x, Tailwind CSS
## Core Rules:
- Always enforce strict type safety without loose 'any'.
- Use Server Actions with Zod safeParse validation..github/copilot-instructions.mdEntire repository (Copilot Chat & Inline Completions)Master instruction file parsed by GitHub Copilot across VS Code, JetBrains, and GitHub PR reviews.
Available Tech Stack Presets (27)
Click any tech stack below to open the client-side editor preloaded with this verified configuration.
Next.js 15 App Router
Generate .github/copilot-instructions.md rules for Next.js 15 App Router.
"Enforce React Server Components (RSC) by default; restrict 'use client' strictly to interactive leaf components."
React 19 & Vite
Generate .github/copilot-instructions.md rules for React 19 & Vite.
"Use React 19 action hooks (useActionState, useOptimistic, useFormStatus) for async mutations."
Python FastAPI & Pydantic v2
Generate .github/copilot-instructions.md rules for Python FastAPI & Pydantic v2.
"Use strict Pydantic v2 BaseModels with Field validation for all input and output schemas."
Supabase & PostgreSQL
Generate .github/copilot-instructions.md rules for Supabase & PostgreSQL.
"Always include `ENABLE ROW LEVEL SECURITY;` on every created table."
Prisma ORM
Generate .github/copilot-instructions.md rules for Prisma ORM.
"Always use `select` to specify required fields; avoid raw `findMany()` fetching unused relations."
Drizzle ORM
Generate .github/copilot-instructions.md rules for Drizzle ORM.
"Define schemas using pgTable/sqliteTable with explicit foreign keys and constraints."
Go (Golang) & Fiber
Generate .github/copilot-instructions.md rules for Go (Golang) & Fiber.
"Check every `if err != nil` explicitly; never swallow errors or ignore returned values."
Rust & Axum
Generate .github/copilot-instructions.md rules for Rust & Axum.
"Never call `.unwrap()` or `.expect()` in production route handlers; propagate errors via `Result<T, AppError>`."
Tailwind CSS v4
Generate .github/copilot-instructions.md rules for Tailwind CSS v4.
"Configure themes directly in globals.css using `@theme` and `@import 'tailwindcss';`."
Vue 3 & Nuxt 3
Generate .github/copilot-instructions.md rules for Vue 3 & Nuxt 3.
"Always use `<script setup lang='ts'>` and the Composition API; ban legacy Options API."
SvelteKit 5 & Svelte 5
Generate .github/copilot-instructions.md rules for SvelteKit 5 & Svelte 5.
"Use Svelte 5 runes: `$state()`, `$derived()`, and `$props()`."
Universal Cursor Pro
Generate .github/copilot-instructions.md rules for Universal Cursor Pro.
"Deliver surgical, targeted diffs; never replace entire files unnecessarily."
Pragmatic Rapid Prototyping
Generate .github/copilot-instructions.md rules for Pragmatic Rapid Prototyping.
"Prioritize working software over complex design patterns or deep inheritance hierarchies."
Zero-Trust Security
Generate .github/copilot-instructions.md rules for Zero-Trust Security.
"Flag and prevent any dynamic SQL query string interpolation."
Docker & CI/CD
Generate .github/copilot-instructions.md rules for Docker & CI/CD.
"Always use multi-stage Docker builds to separate builder tools from the lean production image."
Vitest & Playwright TDD
Generate .github/copilot-instructions.md rules for Vitest & Playwright TDD.
"Write unit tests covering happy paths and at least two edge/error cases for every new function."
Automated Code Reviewer
Generate .github/copilot-instructions.md rules for Automated Code Reviewer.
"Scan repository manifests to map stack idioms before evaluating logic."
Multi-Agent System Orchestration
Generate .github/copilot-instructions.md rules for Multi-Agent System Orchestration.
"Define subagent roles: Lead Architect, Frontend Engineer, Backend Specialist, Security Reviewer."
Django 5 & Ninja / DRF
Generate .github/copilot-instructions.md rules for Django 5 & Ninja / DRF.
"Use asynchronous ORM operations (aget(), acreate(), afirst()) inside async def view handlers."
Bun & Elysia / Hono
Generate .github/copilot-instructions.md rules for Bun & Elysia / Hono.
"Use Elysia's native t schema builder (powered by TypeBox) for request body, query, and parameter validation."
React Native & Expo Router
Generate .github/copilot-instructions.md rules for React Native & Expo Router.
"Use Expo Router file-based filesystem routing (app/_layout.tsx, app/(tabs)/index.tsx); ban legacy React Navigation container boilerplate."
Flutter 3 & Riverpod / Dart
Generate .github/copilot-instructions.md rules for Flutter 3 & Riverpod / Dart.
"Always add const constructors wherever possible to maximize Flutter element rebuild caching."
Kubernetes & Helm Charts
Generate .github/copilot-instructions.md rules for Kubernetes & Helm Charts.
"Always specify explicit resources.requests and resources.limits (both CPU and memory) on every container."
Terraform & OpenTofu IaC
Generate .github/copilot-instructions.md rules for Terraform & OpenTofu IaC.
"Pin explicit version constraints for all providers and required Terraform/OpenTofu core versions (required_providers)."
Playwright End-to-End Testing
Generate .github/copilot-instructions.md rules for Playwright End-to-End Testing.
"Strictly ban hardcoded delays (page.waitForTimeout()); rely exclusively on Playwright web-first auto-waiting assertions (expect(locator).toBeVisible())."
Spring Boot 3 & Java 21
Generate .github/copilot-instructions.md rules for Spring Boot 3 & Java 21.
"Use jakarta.* packages for persistence, validation, and servlets; ban legacy javax.* imports."
.NET 8 & C# 12 Minimal APIs
Generate .github/copilot-instructions.md rules for .NET 8 & C# 12 Minimal APIs.
"Use modern C# 12 features: primary constructors, collection expressions, file-scoped namespaces, and nullable reference types (#nullable enable)."
Does GitHub Copilot support custom instructions?
Yes! GitHub Copilot natively recognizes `.github/copilot-instructions.md` in repository roots to guide Copilot Chat and inline suggestions.
Does this work in pull request reviews?
Yes, Copilot for Pull Requests consults your repository instructions when analyzing diffs and suggesting automated reviews.