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
Hugging FaceCopilot instructions

transformers

huggingface/transformers/.github/copilot-instructions.md

This copilot-instructions.md file provides guidance for code agents working with this codebase. Many models in the codebase have similar code, but it is not shared by inheritance because we want each model file to be self-contained. We use two mechanisms to keep this code in sync: - "Copied from" syntax. Functions or entire classes can have a comment at the top like this: # Copied from transformers.models.llama.modelingllama.rotatehalf or # Copied from transformers.models.t5.modelingt5.T5LayerNorm with T5->MT5 These comments are actively checked by…

167k23d 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
SupabaseCopilot instructions

supabase

supabase/supabase/.github/copilot-instructions.md

You are a code reviewer for a large TypeScript/Next.js/React monorepo. Your reviews must be low-noise and high-signal. The team acts on fewer than 20% of default Copilot suggestions, so every comment you leave must earn its place. Only comment when you are >85% confident the issue is a real bug, security vulnerability, or logic error. If you are unsure, do not comment. Silence is better than noise. Our CI pipeline already validates the following. Never comment on these topics: This…

111k7d agoDiscuss
MicrosoftCopilot instructions

playwright

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

When reviewing pull requests:

97k20d agoDiscuss
ClineCopilot instructions

cline

cline/cline/.github/copilot-instructions.md

This is a VS Code extension. Read .clinerules/general.md for tribal knowledge and nuanced patterns. Also update: src/shared/api.ts, src/shared/providers/providers.json, src/core/api/index.ts, webview-ui/.../providerUtils.ts, webview-ui/.../validate.ts, webview-ui/.../ApiOptions.tsx. For Responses API providers: add to isNextGenModelProvider() in src/utils/model-utils.ts and set apiFormat: ApiFormat.OPENAI_RESPONSES on models.

69k5mo 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
GitHubCopilot instructions

awesome-copilot

github/awesome-copilot/.github/copilot-instructions.md

The following instructions are only to be applied when performing a code review. Use .github/skills/code-review/SKILL.md for repository-fit, differentiation, provenance, validation, and editorial-quality review criteria. Apply the deterministic file-format checks below as well. Only apply to files that end in .prompt.md Only apply to files that end in .instructions.md Only apply to files that end in .agent.md Only apply to folders in the skills/ directory Only apply to directories in the plugins/ directory

39k8d agoDiscuss
HashiCorpCopilot instructions

vault

hashicorp/vault/.github/copilot-instructions.md

This repository contains coding guidelines and best practices for the Vault Enterprise project. The .github/instructions/ directory contains domain-specific coding guidelines: GitHub Copilot automatically applies these instructions based on the applyTo…

36k8mo 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
MongoDBCopilot instructions

mongo

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

Commits on master are automatically synced to the public mongodb/mongo repository. A security fix that lands on master before the corresponding CVE is disclosed publicly reveals the vulnerability while released…

29k5mo 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
GoogleCopilot instructions

filament

google/filament/.github/copilot-instructions.md

For all tasks involving writing, editing, or refactoring code that uses the Filament rendering engine, you must strictly follow the guidelines defined in docssrc/srcmdbook/src/notes/AI_CONTEXT.md.

21k3y 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
AppleCopilot instructions

foundationdb

apple/foundationdb/.github/copilot-instructions.md

When reviewing PRs, address general code review criteria, but also specifically the following questions: What is it trying to do? Is it correct? Are there bugs? Are there omissions? Are there better ways of doing things? Should this CL be approved?

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