agentleFS
Sign inSign up

Copilot instructions examples

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

Most stars firstWorked for most · soon
MicrosoftCopilot instructions

vscode / copilot

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

This is the GitHub Copilot Chat extension for Visual Studio Code - a VS Code extension that provides conversational AI assistance, a coding agent with many tools, inline editing capabilities, and advanced AI-powered features for VS Code. Choose validation based on the scope and risk of the change. Prefer existing diagnostics and the smallest targeted tests that cover the changed behavior. Do not start start-watch-tasks, run a full build, or make type checking a prerequisite for targeted tests solely as…

193k21d agoDiscuss
MicrosoftCopilot instructions

vscode

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

Visual Studio Code is built with a layered architecture using TypeScript, web APIs and Electron, combining web technologies with native app capabilities. The codebase is organized into key architectural layers: The core architecture follows these principles: - Layered architecture - from base, platform, editor, to workbench - Dependency injection - Services are injected through constructor parameters - If non-service parameters are needed, they need to come before the service parameters - Contribution model - Features contribute to registries and extension…

193k21d agoDiscuss
MicrosoftCopilot instructions

PowerToys

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

PowerToys AI contributor guidance

139k8mo agoDiscuss
MicrosoftCopilot instructions

PowerToys / TemplateCmdPalExtension

microsoft/PowerToys/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/.github/copilot-instructions.md

Concise guidance for AI-assisted development of this Command Palette extension. If using git, remove these lines from .gitignore (needed for deployment): - **/Properties/launchSettings.json - *.pubxml This project includes Copilot skills for common workflows: - add-adaptive-card-form — Create form-based UI with Adaptive Cards - add-extension-settings — Add a settings page to your extension - add-dock-band — Add persistent toolbar widgets - add-fallback-commands — Add catch-all search commands - publish-extension — Publish to Microsoft Store or WinGet

139k8mo agoDiscuss
MicrosoftCopilot instructions

TypeScript

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

This repository contains the native TypeScript compiler and language server. The source directories of interest that we have are: Most compiler development takes place in tsc/internal, and most behaviors can be tested via compiler tests. Most development on the codebase is in Go. Standard Go commands and practices apply, but we primarily use a tool called hereby to build, run tests, and other tasks. Run npx hereby --tasks to see all available commands. Always make sure code is formatted, linted,…

111k2y agoDiscuss
MicrosoftCopilot instructions

playwright

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

When reviewing pull requests:

97k20d agoDiscuss
MicrosoftCopilot instructions

autogen

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

AutoGen is a multi-language framework for creating AI agents that can act autonomously or work alongside humans. The project has separate Python and .NET implementations with their own development workflows.

61k13mo agoDiscuss
MicrosoftCopilot instructions

WSL

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

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. WSL is the Windows Subsystem for Linux - a compatibility layer for running Linux binary executables natively on Windows. This repository contains the core Windows components that enable WSL functionality. Use WIL (Windows Implementation Libraries) macros — never bare if (FAILED(hr)): - THROWIFFAILED(hr) — throw on HRESULT failure - THROWHRIF(hr, condition) — conditional throw -…

34k3mo agoDiscuss
MicrosoftCopilot instructions

winget-cli

microsoft/winget-cli/.github/copilot-instructions.md

This is the Windows Package Manager (WinGet) CLI client - a native Windows application for discovering and installing packages. The codebase consists of: Use a configuration file in .config as in winget configure .config/configuration.winget (alternatives provided for other VS SKUs). Manual steps: Open src\AppInstallerCLI.sln in Visual Studio and build the solution (Ctrl+Shift+B) or use msbuild.exe to build from the command line. The solution uses: - MSBuild - vcpkg for C++ dependencies - NuGet for C++ and .NET dependencies Entry point:…

26k8d agoDiscuss
MicrosoftCopilot instructions

onnxruntime

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

Read and follow AGENTS.md for repository-wide guidance, including codebase conventions, architecture, and coding standards.

22k41d agoDiscuss
MicrosoftCopilot instructions

react-native-windows

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

This file provides guidance to GitHub Copilot for contributing to the React Native Windows repository. React Native Windows brings React Native to the Windows platform, supporting both UWP and Win32…

17k11mo agoDiscuss
MicrosoftCopilot instructions

data-formulator

microsoft/data-formulator/.github/copilot-instructions.md

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

17k5mo agoDiscuss
MicrosoftCopilot instructions

pyright

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

Pyright is a static type checker for Python, written in TypeScript. It ships as an npm CLI (pyright), an LSP language server (pyright-langserver), and a VS Code extension (vscode-pyright). Source…

16k14d agoDiscuss
MicrosoftCopilot instructions

agent-framework

microsoft/agent-framework/.github/copilot-instructions.md

Microsoft Agent Framework - a multi-language framework for building, orchestrating, and deploying AI agents. ADRs in docs/decisions/ capture significant design decisions and their rationale. They document considered alternatives, trade-offs, and the reasoning behind choices. Templates: - adr-template.md - Full template with detailed sections - adr-short-template.md - Abbreviated template for simpler decisions When proposing architectural changes, create an ADR to capture options considered and the decision rationale. See docs/decisions/README.md for the full process.

14k8mo agoDiscuss
MicrosoftCopilot instructions

windows-rs

microsoft/windows-rs/.github/copilot-instructions.md

Read this file at the start of every session. It contains the essential commands, conventions, and architecture knowledge needed to work on this repository. Do not create git commits automatically. The maintainer reviews all changes first and handles commits manually. Make changes locally, run fmt/clippy/tests to verify, and report back. Cargo workspace (resolver = "3"). Members are globbed from: - crates/libs/* - the published/library crates (windows, windows-sys, windows-core, plus windows-bindgen, metadata, rdl, and the newer reactor/canvas/webview/window crates). See docs/readme.md for…

13k14d agoDiscuss
MicrosoftCopilot instructions

garnet

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

Garnet is a high-performance remote cache-store from Microsoft Research implementing the Redis RESP wire protocol in C#/.NET. It uses Tsavorite as its storage engine. Full developer docs: https://microsoft.github.io/garnet/docs/dev/onboarding Note: Some website docs may reference the older two-store architecture (separate main store and object store). This branch uses a unified single-store design — see the Architecture section below for the current model. GARNETTESTPORT_SLOT=auto keeps this working copy's test ports clear of other working copies on the same machine; see Running tests…

12k7d agoDiscuss
MicrosoftCopilot instructions

winget-pkgs

microsoft/winget-pkgs/.github/copilot-instructions.md

This is the Windows Package Manager (WinGet) community repository — a manifest-only repo containing ~415,000+ YAML files describing how to install Windows applications via winget. There is no application source code here. The tooling is PowerShell scripts in Tools/. Never recursively scan or search the manifests/ directory. It contains hundreds of thousands of files and will cause severe performance issues. Only search within the specific package folder being modified (e.g., manifests/m/Microsoft/WindowsTerminal/). Each package version lives in manifests/<first-letter>/<Publisher>/<Package>/<Version>/ and requires three…

11k6mo agoDiscuss
MicrosoftCopilot instructions

fluentui-system-icons

microsoft/fluentui-system-icons/.github/copilot-instructions.md

Purpose: Enable rapid, correct contributions across multi-platform icon packages (web React, React Native, SVG assets/sprites, Android, iOS, Flutter) generated from a single assets/ source.

11k14mo agoDiscuss
MicrosoftCopilot instructions

fast

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

This file describes the general instructions for working with the FAST monorepo, including repository structure, code style, tooling, and contribution guidelines.

9.7k4mo agoDiscuss
MicrosoftCopilot instructions

microsoft-ui-xaml / src

microsoft/microsoft-ui-xaml/src/.github/copilot-instructions.md

For detailed instructions on building and testing, see the skills defined in .github/skills/: - .github/skills/build/SKILL.md - Build commands and file-to-project mappings

8.5k6d 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.