agentleFS
Sign inSign up

Copilot instructions examples

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

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

TinyTroupe

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

This document provides the primary guidelines for generating programs in the TinyTroupe project. It is meant to complement any existing documentation or built-in knowledge. This document takes precedence over any other instructions or built-in knowledge, therefore you MUST follow these guidelines, ALWAYS. To make this very clear to the programmer, you should refer to the instructions given here (e.g.," ... as per my primary guidelines, I will avoid a complex solution to this problem, unless you explicitly ask me to…

7.6k8mo agoDiscuss
MicrosoftCopilot instructions

GSL

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

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

6.7k42d agoDiscuss
MicrosoftCopilot instructions

vscode-docs / 03

microsoft/vscode-docs/blogs/2025/03/.github/copilot-instructions.md

This project is a web application that allows users to create and manage tasks. The application is built using React and Node.js, and it uses MongoDB as the database.

6.6k8mo agoDiscuss
MicrosoftCopilot instructions

vscode-docs

microsoft/vscode-docs/.github/copilot-instructions.md

Follow the documentation writing guidelines when reviewing or writing documentation.

6.6k8mo agoDiscuss
MicrosoftCopilot instructions

rushstack

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

You are a Rush monorepo development and management expert. Your role is to assist with Rush-related tasks while following these key principles and best practices: The standard directory structure for…

6.5k16mo agoDiscuss
MicrosoftCopilot instructions

agent-governance-toolkit

microsoft/agent-governance-toolkit/.github/copilot-instructions.md

Multi-language monorepo for runtime governance of AI agents. Core is Python, with SDKs in TypeScript, Rust, .NET, and Go. Core Python packages live under packages/: Language SDKs: Other top-level directories: docs/ (MkDocs site), examples/ (runnable integrations), demo/ (live dashboards), pipelines/ (ESRP release automation), benchmarks/, fuzz/ (ClusterFuzzLite), notebooks/. Each subdirectory with an AGENTS.md has area-specific commands and boundaries: read it before changing code there. For major design changes, always ask a maintainer (a collaborator with the Maintain or Admin role) before…

6.4k12d agoDiscuss
MicrosoftCopilot instructions

typespec

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

ALWAYS follow these instructions first and only fall back to additional search and context gathering if the information here is incomplete or found to be in error. TypeSpec is a language for defining cloud service APIs and shapes. This monorepo contains the TypeSpec compiler, standard library packages, tools, documentation, and various language client emitters. [!IMPORTANT] These instructions do NOT apply to the language emitter packages (http-client-csharp, http-client-java, http-client-python). Those packages are excluded from the pnpm workspace and do not require…

5.9k2mo agoDiscuss
MicrosoftCopilot instructions

typespec / http-client-java

microsoft/typespec/packages/http-client-java/.github/copilot-instructions.md

See http-client-java-development for instructions on how to develop the TypeSpec library for Java client.

5.9k2mo agoDiscuss
MicrosoftCopilot instructions

typespec / http-client-js

microsoft/typespec/packages/http-client-js/.github/copilot-instructions.md

Scope: These instructions apply only to the packages/http-client-js sub-project in this monorepo. Use them whenever Copilot generates code, tests, commit messages, or pull request descriptions for the emitter. If Copilot is used in other sub-projects, these rules do not apply unless stated otherwise. - Project Purpose We are building a TypeSpec Emitter that generates JavaScript (TypeScript) HTTP clients.

5.9k2mo agoDiscuss
MicrosoftCopilot instructions

azurelinux

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

Azure Linux is a TOML-defined Linux distribution that imports RPM specs from upstream distros (primarily Fedora) and customizes them via an overlay system — no spec forking required. The azldev CLI tool drives all component and image workflows. One of the core tenets of this project is minimal necessary divergence from upstream. Overlays should be surgical and only change what's needed to meet Azure Linux requirements. Upstream packages should be preferred over bespoke components, and local specs should be a…

5.3k28d agoDiscuss
MicrosoftCopilot instructions

FluidFramework / build-tools

microsoft/FluidFramework/build-tools/.github/copilot-instructions.md

This is the build-tools release group for the Fluid Framework monorepo. It contains CLI tools and libraries for building, testing, releasing, and managing Fluid Framework repositories. For release documentation, use conventional commits, not changesets. Runtime: Node.js >=22.22.2, pnpm 11.27.0 Language: TypeScript ~5.4.5 Module system: Mix of CommonJS and ESM (see DEV.md for constraints) **Always run from build-tools/ directory. Install dependencies first if node_modules/ doesn't exist.** Packages have workspace dependencies and must build in order: 1. version-tools (no internal deps) 2.…

4.9k56d agoDiscuss
MicrosoftCopilot instructions

FluidFramework

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

This file is mirrored in .claude/CLAUDE.md. Changes here should be duplicated there, and vice versa. Follow the Coding Guidelines when writing / modifying code. Follow the Documentation Guidelines when writing or modifying code or documentation. Read and follow the linked guides relevant to the task, including the language-specific guides for source-code documentation. These requirements apply to source-code comments and API documentation as well as standalone documentation. Add a changeset for user-facing changes only if the affected release group uses changesets.…

4.9k56d agoDiscuss
MicrosoftCopilot instructions

fluentui-blazor

microsoft/fluentui-blazor/.github/copilot-instructions.md

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

4.8k56d agoDiscuss
MicrosoftCopilot instructions

msquic

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

MsQuic is Microsoft's cross-platform C implementation of the IETF QUIC protocol. It also has C++ API wrappers and Rust/C# interop layers. The codebase targets Windows (user & kernel mode), Linux, macOS, and FreeBSD. The primary language is C (C17), with C++ (C17) for tests/tools, Rust bindings, and C# interop. Build system: CMake + PowerShell scripts. Key files: CMakeLists.txt (root build), version.json (version info), .clang-format (C/C++ style), src/.editorconfig (editor settings), Cargo.toml (Rust crate config), rust-toolchain.toml (Rust 1.93.1). Always use PowerShell 7+…

4.8k5mo agoDiscuss
MicrosoftCopilot instructions

perfview

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

PerfView is a Windows performance-analysis tool for investigating CPU and memory issues, built on the TraceEvent library for parsing ETW and EventPipe trace data. The solution (PerfView.sln) contains the WPF GUI application, the cross-platform TraceEvent library, and several supporting libraries. Follow existing patterns — when in doubt, match the surrounding code.

4.8k4mo agoDiscuss
MicrosoftCopilot instructions

WindowsAppSDK

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

Windows App SDK AI contributor guidance

4.7k9mo agoDiscuss
MicrosoftCopilot instructions

PyRIT

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

PyRIT (Python Risk Identification Tool for generative AI) is an open-source framework for security professionals to proactively identify risks in generative AI systems. PyRIT uses a modular pluggable-brick design. doc/code/framework.md is the canonical reference for how these pieces fit together. It defines each component's responsibilities — what it owns and, critically, what it does not own — and how scenarios, attack techniques, executors, and the core/shared layers relate. Read it before adding or reviewing components so new code lands in…

4.6k57d agoDiscuss
MicrosoftCopilot instructions

FLAML

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

FLAML (Fast Library for Automated Machine Learning & Tuning) is a lightweight Python library for efficient automation of machine learning and AI operations. It automates workflow based on large language models, machine learning models, etc. and optimizes their performance. Key Components: The repository uses pre-commit hooks for:

4.4k8mo agoDiscuss
MicrosoftCopilot instructions

ApplicationInspector

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

Microsoft Application Inspector is a source code characterization tool that identifies coding features based on well-known library/API calls using regex patterns and rules. It supports multiple programming languages and generates reports in HTML, JSON, SARIF, and text formats. Version Tracking: This project uses Nerdbank.GitVersioning (nbgv) for version tracking, which requires a deep clone of the repository. Shallow clones will not work correctly with version generation. NuGet Packages: The repository uses a custom nuget.config that points to a private Azure DevOps…

4.4k8mo agoDiscuss
MicrosoftCopilot instructions

skill-recorder

microsoft/skill-recorder/.github/copilot-instructions.md

Ongoing work in this repository lands on the current release branch, not main. Release branches are named release/<semver> — currently release/0.3.0, the highest-versioned release/* branch on origin. main trails the release branch and only advances when a version is cut and merged (see RELEASING.md). Unless a task explicitly says otherwise: Target main only for the release merge described in RELEASING.md.

4.1k2mo agoDiscuss

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.