Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Custom instructions and prompt files in 60 seconds

AI toolsRepository filesAWS: Amazon Q Developer project rules

What it is

Markdown files that steer Copilot: .github/copilot-instructions.md for every request in a repo, .instructions.md files with applyTo for some paths, and .prompt.md files for reusable prompts.

Simulate it »

✅ Use it when

  • House style and stack
  • Review standards for code review
  • Repeatable team tasks

🚫 Not the best fit when

  • Secrets or personal data in the files
  • Very long instructions that crowd out context

💰 Price feel: ●○○○ Free or very cheap

Free: plain files in your repository

Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.

Simulate it

3D Prompt crafting: what you give Copilot decides what you get Write the files and watch Copilot use them.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

Custom instructions

Repository instructions (.github/copilot-instructions.md) and path-specific .instructions.md files are added to requests automatically, so the house rules travel with every prompt.

Read this tour as text
  1. A vague prompt. Copilot only knows what is in the prompt. “Write a function” leaves it to guess the language, inputs, outputs and rules, so you get something generic.
  2. Structure: goal, context, constraints. A good prompt has a goal (what and why), context (which code, which framework) and constraints (style, edge cases, what not to do). Short is fine; vague is not.
  3. How context is chosen. In chat, Copilot uses the active file and any selection, plus what you add: #file, #codebase (search your workspace), #terminalSelection, images, or a participant such as @workspace. Inline suggestions also use open tabs, so close unrelated ones.
  4. Zero-shot and few-shot. Zero-shot: just the instruction. Few-shot: include one or more examples of the input and the output you want, then ask. Few-shot wins when your format is unusual.
  5. Break it down, then iterate. Split a big task into small steps and check each answer. Then iterate: keep what’s right and ask for the next change. Prompting is a conversation.
  6. Custom instructions. Repository instructions (.github/copilot-instructions.md) and path-specific .instructions.md files are added to requests automatically, so the house rules travel with every prompt.
  7. Chat history is context too. Earlier messages in the same conversation go into the prompt. That helps follow-ups (“now add tests”) but old, unrelated turns can confuse the answer and fill the context window.
  8. The prompt process, end to end. Your words + selected context + instructions + history → the prompt. The model answers, you review, then refine. Better input, less clean-up.
📘 Full lesson: Custom Instructions and Prompt Files ❯ ⚖️ Custom instructions vs prompt files vs custom agents ❯

Similar services

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.