When a preference is detected, you can choose where to save it:
This approach lets you personalize Copilot for your own workflow while also establishing shared coding standards for your team.
To use a .github/copilot-instructions.md file:
Custom instructions aren't visible in the Chat view or inline chat. However, when used by Copilot, the.github/copilot-instructions.md file is listed in the References list of a response.
Copilot memories can automatically detect your preferences during chat and add them to your instruction files, so you don't have to write them manually.
In addition to repo-level custom instructions, you can define user-level preferences that apply to all your Copilot sessions across projects. User-level preferences are saved to %USERPROFILE%/copilot-instructions.md.
Use user-level preferences for personal coding standards, preferred patterns, or workflow conventions that you want Copilot to follow regardless of the repository you're working in. Repo-level instructions in .github/copilot-instructions.md still apply alongside your user-level preferences, so your team's shared standards are also respected.
You can add preferences to this file manually, or let Copilot memories detect and save them automatically as you chat.
Instead of using a single instructions file that applies to all chat requests, you can create multiple *.instructions.md files that apply to specific file types or tasks. For example, you can create instructions files for different programming languages, frameworks, or project types.
To use a .github/instructions/*.instructions.md file:
Create the .github/instructions directory if it does not already exist.
Add one or more .github/instructions/*.instructions.md files.
Add the applyTo property in the frontmatter section of the instructions file. Use glob syntax to specify what files or folders the instructions apply to.
Enable the feature in Visual Studio.
In the Tools > Options pane, expand the All Settings > GitHub > Copilot > Copilot Chat section and select the Enable custom instructions to be loaded from .github/copilot-instructions.md files and added to requests checkbox.
Targeted instruction files use the .instructions.md extension and have this structure:
Here's an example C# custom instruction:
Copy these instructions into your .github/instructions/*.instructions.md file to use and automatically apply to Copilot behavior.
For more examples of custom instructions, see the list of instruction samples on GitHub.
🤖 [dotnet/skills para GitHub Copilot CLI]dotnet/skills para asistentes IA — Microsoft ha publicado los mismos skills que usa el propio equipo que desarrolla .NET. Gracias a ellos, optimizarás las respuestas de tus asistentes de IA con el conocimiento directo del equipo de .NET. Podrás resolver tareas complejas y errores de depuración de forma más fiable, reduciendo los intentos fallidos. Al integrar estas "habilidades" en tu entorno de trabajo, ganarás productividad aplicando patrones ya probados en escenarios reales de ingeniería. Muy, muy interesante.
Y si usas Azure, han publicado también los skills correspondientes.