agentleFS
Sign inSign up

Copilot instructions examples

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

Most stars firstWorked for most · soon
OpenAICopilot instructions

openai-dotnet

openai/openai-dotnet/.github/copilot-instructions.md

When making changes to TypeSpec files (.tsp files), you must regenerate the code by running the following script: This ensures that any modifications to the TypeSpec definitions are properly reflected in the generated code. When making Changes to TypeSpec files (.tsp files), Do not use type unions and instead use discriminators to ensure that we don't use binary data types when the generation occurs.

2.7k8mo 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.