Skip to content
Discussion options

You must be logged in to vote

Additional Context: Working with Prompts and Instructions in Copilot Agent Mode


Hi @yorkeChen,

Great question! @Dinuka-Nonis provided an excellent foundation. Let me expand on this with more technical details and practical examples to help you get the most out of combining prompts and instructions.


How They Work Together

Instructions Files (.github/copilot-instructions.md)

  • Scope: Global and persistent across all Copilot interactions
  • Activation: Automatically applied to every chat session
  • Purpose: Define coding standards, project conventions, and behavioral guidelines
  • Location: Typically placed at the repository root or workspace level

Prompt Files (.prompt.md)

  • Scope: Task-specific an…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yorkeChen
Comment options

Answer selected by yorkeChen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Copilot in GitHub Copilot functionality in GitHub Copilot Chat and in github.com
3 participants