agentleFS
Sign inSign up

Copilot instructions examples

How real projects brief GitHub Copilot, from .github/copilot-instructions.md.

Most stars first · from page 5Worked for most · soon
MicrosoftCopilot instructions

fluentui-react-native

microsoft/fluentui-react-native/.github/copilot-instructions.md

See AGENTS.md for guidance on working with code in this repository.

1.4k4mo agoDiscuss
MicrosoftCopilot instructions

fhir-server

microsoft/fhir-server/.github/copilot-instructions.md

Core project guidelines, coding standards, and architecture principles are in AGENTS.md at the repo root — read it first. This file adds Copilot-specific skill activation routing and ADR guidance. Activate the relevant skill from .github/skills/ before any architecture task. When creating or updating an ADR in docs/arch/: - Use the create-adr skill. - Cover states, behaviors, outcomes, and edge cases thoroughly. - Reference prior ADRs and the FHIR specification. - If the decision obsoletes a prior ADR, update that ADR…

1.4k4mo agoDiscuss
MicrosoftCopilot instructions

mxc

microsoft/mxc/.github/copilot-instructions.md

MXC (Microsoft eXecution Container) is a cross-platform sandboxed code execution system. Prefer precise, scoped changes and preserve existing platform behavior, feature gates, wire compatibility, and failure semantics. The Rust toolchain is pinned by src/rust-toolchain.toml. Run Rust commands from src/ or pass --manifest-path src/Cargo.toml. Prefer the smallest test command covering the change. Host-dependent backend suites live under tests/scripts/; use the applicable backend guide and docs/ci-validation-infrastructure.md before running or changing them. - Production parsing dispatches through exact closed contracts and their version-specific…

1.4k8d agoDiscuss
MicrosoftCopilot instructions

waza

microsoft/waza/.github/copilot-instructions.md

You are working on a project that uses Squad, an AI team framework. When picking up issues autonomously or using Squad, follow these guidelines. IMPORTANT — run this check only when the session is expected to use Squad Coordinator behavior, before doing any Squad work: Look for the exact token SQUADCOORDINATORCANARYa8f3 in your agentinstructions. This token is placed at the end of squad.agent.md. If it is missing, the coordinator file is missing or truncated. Do not run this check for…

1.3k4mo agoDeletes or force-pushesDiscuss
MicrosoftCopilot instructions

waza

microsoft/waza/.squad/copilot-instructions.md

You are working on a project that uses Squad, an AI team framework. When picking up issues autonomously, follow these guidelines. Before starting work on any issue: Before starting work, check your capability profile in .squad/team.md under the Coding Agent → Capabilities section. Use the squad branch convention: Example: squad/42-fix-login-validation When opening a PR: - Reference the issue: Closes #{issue-number} - If the issue had a squad:{member} label, mention the member: Working as {member} ({role}) - If this is a…

1.3k4mo agoDiscuss
MicrosoftCopilot instructions

waza / templates

microsoft/waza/.squad/templates/copilot-instructions.md

You are working on a project that uses Squad, an AI team framework. When picking up issues autonomously or using Squad, follow these guidelines. IMPORTANT — run this check only when the session is expected to use Squad Coordinator behavior, before doing any Squad work: Look for the exact token SQUADCOORDINATORCANARYa8f3 in your agentinstructions. This token is placed at the end of squad.agent.md. If it is missing, the coordinator file is missing or truncated. Do not run this check for…

1.3k4mo agoDiscuss
MicrosoftCopilot instructions

gctoolkit

microsoft/gctoolkit/.github/copilot-instructions.md

No summary in the file. Open it to read it.

1.3k10mo agoDiscuss
MicrosoftCopilot instructions

CSS-Exchange

microsoft/CSS-Exchange/.github/copilot-instructions.md

NEVER commit, push, or create PRs without explicit user instruction. NEVER auto-fix issues found during code review. Report findings only. NEVER present code as complete without running Invoke-CodeFormatterOnFiles and SpellCheck.ps1 first. ALWAYS report findings and wait for user decision before modifying the repository. ALWAYS commit only the specific files the user requests. No extra files. ALWAYS use named parameters instead of positional parameters. ALWAYS ensure .ps1 files have UTF-8 BOM encoding. When counting code patterns (function calls, occurrences), ALWAYS exclude…

1.3k4mo agoDiscuss
MicrosoftCopilot instructions

griffel

microsoft/griffel/.github/copilot-instructions.md

Griffel is a CSS-in-JS library with near-zero runtime, SSR support, and ahead-of-time compilation. It's organized as a monorepo using Nx with 16+ packages and applications including React bindings, build-time transforms, and DevTools. Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here. CRITICAL: NEVER CANCEL long-running commands. Set timeouts appropriately. When using Nx affected commands in a repository that may not have a main branch…

1.3k6mo agoDiscuss
MicrosoftCopilot instructions

prompty

microsoft/prompty/.github/copilot-instructions.md

Prompty is being rebuilt from the ground up. The type system that originated in Prompty's TypeSpec specification is now owned in this repo and emitted through Typra. Prompty v2 uses the generated Prompty model packages as the canonical, lower-level type layer. Core principle: Prompty is a markdown file format (.prompty) for LLM prompts. The frontmatter uses Prompty's Typra-generated prompt model. The markdown body becomes instructions. The runtime loads, renders, parses, and executes prompts. Only the prompt runtime subset — not…

1.3k2mo agoReads credentialsDiscuss
MicrosoftCopilot instructions

clrmd

microsoft/clrmd/.github/copilot-instructions.md

Microsoft.Diagnostics.Runtime (ClrMD) is a .NET library for inspecting crash dumps and live processes. It provides programmatic access to CLR internals (heap, types, threads, GC roots, exceptions) similar to SOS debugging extensions. Important: ClrMD loads architecture-specific native components (DAC), so the test host must match the dump architecture. Use --arch x86 to test 32-bit dumps and --arch x64 for 64-bit. The Test.cmd/test.sh scripts handle this automatically. Dump generation: Tests generate crash dumps lazily on first run — no manual pre-build step…

1.2k7mo agoDiscuss
MicrosoftCopilot instructions

mssql-jdbc

microsoft/mssql-jdbc/.github/copilot-instructions.md

This project is the Microsoft JDBC Driver for SQL Server, enabling Java applications to interact with SQL Server and Azure SQL databases. It implements the JDBC 4.2/4.3 specification, communicating over the TDS (Tabular Data Stream) protocol. It supports features like connection pooling, Always Encrypted, Azure AD authentication, bulk copy, configurable retry logic, and idle connection resiliency. The project builds from a single Maven project (pom.xml) with multiple JRE profiles (jre8, jre11, jre17, jre21, jre25, jre26). Each profile compiles against a…

1.1k2mo agoDiscuss
MicrosoftCopilot instructions

onnxruntime-genai

microsoft/onnxruntime-genai/.github/copilot-instructions.md

This is ONNX Runtime GenAI, a high-performance inference library for generative AI models. The codebase implements the complete generative AI loop including preprocessing, ONNX Runtime inference, logits processing, search/sampling, and KV cache management. The State class hierarchy in src/models/model.h handles device-specific execution, while the Engine class in src/engine/ manages request batching and scheduling. WinML builds require explicit SDK version specification: WinML integration downloads Microsoft.Windows.AI.MachineLearning via NuGet and copies headers/libs to a local ort/ directory. Each hardware backend implements DeviceInterface (defined…

1.1k30d agoDiscuss
MicrosoftCopilot instructions

shell-intune-samples

microsoft/shell-intune-samples/.github/copilot-instructions.md

This repository's canonical agent context lives in AGENTS.md at the repository root. Read it first. It describes the repository layout, the script conventions (docs/conventions.md), the one-command verify loop (scripts/verify.sh), and the pull-request conventions (.github/instructions/telemetry.instructions.md). These are sample scripts for educating Intune administrators; they are run in non-production / test environments only. Keep changes focused, idempotent, and consistent with the existing ## banner plus Microsoft copyright / MIT license header style. Run ./scripts/verify.sh before opening a pull request.

1.1k3mo agoDiscuss
MicrosoftCopilot instructions

bf-tree

microsoft/bf-tree/.github/copilot-instructions.md

Rust toolchain is pinned to 1.95.0 via rust-toolchain.toml. Bf-Tree is a concurrent, larger-than-memory B+-tree range index. The core data flow:

1.1k4mo agoDiscuss
MicrosoftCopilot instructions

testfx

microsoft/testfx/.github/copilot-instructions.md

This is a .NET based repository that contains the MSTest testing framework and Microsoft.Testing.Platform (aka MTP) testing platform. Please follow these guidelines when contributing: The codebase ships several distinct (but related) products. Knowing which product a change belongs to is essential because they have different conventions, target frameworks, and public API surfaces: Solution files: TestFx.slnx is the full solution; MSTest.slnf, Microsoft.Testing.Platform.slnf, and NonWindowsTests.slnf are filtered views. Always use the repo-local toolchain via the build scripts — they restore the pinned…

1k4mo agoDiscuss
MicrosoftCopilot instructions

BuildXL

microsoft/BuildXL/.github/copilot-instructions.md

BuildXL is a distributed, cached, incremental build engine. Frontends construct a pip graph, then the scheduler executes it. Pips declare inputs and outputs, and sandboxed file-access monitoring enforces those declarations. Build correctness and caching are content-based rather than timestamp-based. Important concepts: - A pip is a node in the build DAG, such as a process, copy, write, service, or IPC operation. - Frontends include DScript, MSBuild, JavaScript, Ninja, NuGet, and Download. - Qualifiers parameterize builds, commonly by configuration and platform.…

1k21d agoDiscuss
MicrosoftCopilot instructions

qdk

microsoft/qdk/.github/copilot-instructions.md

This repo contains the Microsoft Quantum Development Kit (QDK), which provides tooling for the Q# language. Q# is an open-source programming language designed for developing and running quantum algorithms. This repo is publicly available at https://github.com/microsoft/qdk . All internal source code for the compiler and related tooling has been moved under the source/ directory at the repository root. This does not include Q# libraries (library/), samples (samples/), katas (katas/), or any standard files and folders typically found at the root…

1k48d agoDiscuss
MicrosoftCopilot instructions

WindowsAppSDK-Samples

microsoft/WindowsAppSDK-Samples/.github/copilot-instructions.md

Read scripts first; improve their headers instead of duplicating detail here.

1k11mo agoDiscuss
MicrosoftCopilot instructions

DevSkim

microsoft/DevSkim/.github/copilot-instructions.md

DevSkim is a framework of IDE extensions and language analyzers that provide inline security analysis in the dev environment as the developer writes code. The repository contains: ⚠️ IMPORTANT: This repository uses private Azure DevOps feeds for package management: Rules for agents: 1. You MAY temporarily modify nuget.config or .npmrc files to use public feeds (nuget.org, npmjs.com) when working locally 2. You MUST NOT commit these changes - always revert them before committing 3. Use git restore nuget.config or git…

1k2mo agoDiscuss
CLAUDE.md vs AGENTS.md

About Copilot instructions

What is copilot-instructions.md?

Repository-wide instructions for GitHub Copilot, kept in .github/copilot-instructions.md.

What should it contain?

How to build and test, the project's structure, and the conventions Copilot should follow in suggestions and reviews.

Does it replace AGENTS.md?

No. Copilot's coding agent also reads AGENTS.md, so many projects keep the shared rules there.

Which ones worked?

Open a file to see its discussion. Reports from people and their agents are coming.