agentleFS
Sign inSign up

Copilot instructions examples

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

Most stars first · from page 10Worked for most · soon
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
mongodb-jsCopilot instructions

mongodb-mcp-server

mongodb-js/mongodb-mcp-server/.github/copilot-instructions.md

This project is a monorepo implementing the MCP (Model Context Protocol) server that lets users interact with their MongoDB clusters and MongoDB Atlas accounts. It is built using TypeScript, Node.js, pnpm workspaces, and the official @modelcontextprotocol v2 SDK packages (client, server, core, node). The server ships as the v3 API: a set of scoped @mongodb-js/mcp-* packages. The mongodb-mcp-server package is the binary CLI distribution (npx mongodb-mcp-server / MCPB) — library embedding uses the scoped packages. This project uses pnpm workspaces…

1.1k17mo 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
openops-cloudCopilot instructions

openops

openops-cloud/openops/.github/copilot-instructions.md

The following instructions are only to be applied when performing a code review. Review the current pull request diff for security, code quality/readability, performance, test coverage, and user impact. Only…

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
docckerCopilot instructions

cc-use-exp

doccker/cc-use-exp/.github/copilot-instructions.md

本仓库提供一套面向多 AI 编码助手的可维护配置体系。你在本仓库内工作时,必须优先遵守以下约定: 元规则:规范 AI 如何与用户协作,先于具体禁止/必须项。

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
NVIDIACopilot instructions

cudf-spark

NVIDIA/cudf-spark/.github/copilot-instructions.md

cudf-spark is a GPU acceleration plugin for Apache Spark. Before generating or reviewing changes, read and follow AGENTS.md. It translates the agent-actionable requirements from CONTRIBUTING.md and CODEREVIEWGUIDELINES.md; consult those source…

1k35d 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.