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
Microsoft AzureCopilot instructions

azure-powershell

Azure/azure-powershell/.github/copilot-instructions.md

Azure PowerShell is a collection of 200+ PowerShell modules for managing Azure resources. The repository contains modules with two types of projects: SDK-based projects and AutoRest-generated projects, all built using…

4.8k18mo 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
Model Context ProtocolCopilot instructions

csharp-sdk

modelcontextprotocol/csharp-sdk/.github/copilot-instructions.md

This repository contains the official C# SDK for the Model Context Protocol (MCP), enabling .NET applications to implement and interact with MCP clients and servers. This disclosure is not required…

4.5k56d agoDiscuss
crmneCopilot instructions

ruby_llm

crmne/ruby_llm/.github/copilot-instructions.md

Use AGENTS.md and CONTRIBUTING.md as the source of truth for every change, review, and triage. AGENTS.md describes how the code is built and the boundaries Archspec.rb enforces; CONTRIBUTING.md describes what the project accepts. When they and this file disagree, they win. The four things every change is judged on, in order: the public API reads like Ruby a Rails developer already knows; persisted Rails records behave exactly like the plain-Ruby objects; providers and protocols stay in their layers with no…

4.4k16d 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
MongoDBCopilot instructions

mongo-python-driver

mongodb/mongo-python-driver/.github/copilot-instructions.md

When reviewing code, focus on: Always prioritize security vulnerabilities and performance issues that could impact users. Always suggest changes to improve readability and testability. For example, this suggestion seeks to make the code more readable, reusable, and testable:

4.4k6mo agoDiscuss
IvanMurzakCopilot instructions

Unity-MCP

IvanMurzak/Unity-MCP/.github/copilot-instructions.md

PROHIBITED: Using System.Reflection to access private, internal, or otherwise non-public fields, properties, methods, or classes in project code. This includes Type.GetType, BindingFlags.NonPublic, GetMethod, GetField, GetProperty, and similar reflection APIs when used to bypass access modifiers. Example of prohibited code: Note: This rule does NOT apply to ReflectorNet library usage, which is an external dependency specifically designed for reflection-based access patterns. Before performing any code review, you MUST read the project constitution: .specify/memory/constitution.md. All code review feedback must verify adherence to…

4.3k7mo agoDiscuss
arcboxlabsCopilot instructions

arcbox

arcboxlabs/arcbox/.github/copilot-instructions.md

ArcBox is a pure-Rust, high-performance container and VM runtime targeting macOS (primary) and Linux, aiming to surpass OrbStack's performance metrics. Three-tier structure: Key layers (bottom-up): Communication: Host <-> Guest via vsock and ArcBox protocol crates (arcbox-protocol, arcbox-grpc, arcbox-transport). Docker API compatibility is provided by arcbox-docker (Axum REST server + guest dockerd proxy). macOS specifics: Required for: examples, tests touching hypervisor. See arcbox.entitlements - modet types (e.g., libc::SIFMT) are u16 (Linux: u32). Use u32::from() for cross-platform compatibility - No fallocate -…

4.3k2mo 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
nyldnCopilot instructions

claude-octopus

nyldn/claude-octopus/.github/copilot-instructions.md

This repository is a Claude Code plugin that orchestrates multiple AI providers (Codex, Gemini, Claude, Perplexity, OpenRouter, and optionally Ollama) through structured Double Diamond workflows. Run the pre-push test suite: bash tests/run-all-tests.sh Run a single test: bash tests/unit/test-<name>.sh

4.1k48d agoDiscuss
MicrosoftCopilot instructions

apm

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

The CI Lint job is a hard gate. Mirror it locally before git push and before producing any artifact (PR body, release note, audit report) that claims CI is green. The Lint job runs (see .github/workflows/ci.yml): 1. uv run --extra dev ruff check src/ tests/ 2. uv run --extra dev ruff format --check src/ tests/ 3. YAML I/O safety guard (rejects raw yaml.dump(..., handle) outside utils/yaml_io.py; mark approved exceptions with # yaml-io-exempt). 4. File length guardrail (no src/*/.py may exceed…

3.9k14d agoDiscuss
MicrosoftCopilot instructions

apm / apm-contributor-dashboard

microsoft/apm/packages/apm-contributor-dashboard/.github/copilot-instructions.md

This package ships a canvas extension. No agent instructions are needed.

3.9k14d agoDiscuss
MicrosoftCopilot instructions

apm / autopilot-maintainer-canvas

microsoft/apm/packages/autopilot/autopilot-maintainer-canvas/.github/copilot-instructions.md

This package ships a canvas extension. No agent instructions are needed.

3.9k14d agoDiscuss
MicrosoftCopilot instructions

apm / s02b_copilot_instructions

microsoft/apm/tests/integration/fixtures/target_resolution/s02b_copilot_instructions/.github/copilot-instructions.md

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

3.9k14d agoDiscuss
yvgudeCopilot instructions

lean-ctx

yvgude/lean-ctx/.github/copilot-instructions.md

lean-ctx shadow mode: native read/search/shell calls auto-route to ctx* — no tool-mapping needed. File editing → native Edit/StrReplace (lean-ctx only handles reads); if denied, use ctxpatch. Exclusive tools (no native trigger): ctxcompose (understand code, call first), ctxsearch(action=symbol) (exact symbol), ctxsearch(action=semantic) (by meaning), ctxcallgraph (callers), ctxknowledge / ctxsession (memory). <!-- lean-ctx-compression --> OUTPUT STYLE: expert-terse - Telegraph format: subject-verb-object, drop articles/prepositions - Symbolic vocabulary: → cause, ∵ because, ∴ therefore, ⊕ add, ⊖ remove, Δ change, ≈ similar, ≠ different, ∈…

3.8k2mo agoDiscuss
MicrosoftCopilot instructions

kiota

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

This file defines repository-wide defaults for Copilot behavior. It is always applied. When modifying code generation or writer/refiner logic, treat schema-derived values as untrusted and ensure literal-context sanitization at the emission site. Use language/literal-appropriate sanitizers from src/Kiota.Builder/Writers/StringExtensions.cs (and Dart convention helpers where applicable). For writer changes that emit schema-derived text into generated code, ensure hostile content is escaped and covered by regression tests in tests/Kiota.Builder.Tests/Writers/. Before finishing implementation work:

3.8k4mo 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.