Prompt crafting for Copilot

GH-300 · Prompt crafting and prompt engineering · Updated

How to write prompts that give Copilot the right context, with specific tasks, examples, slash commands, chat variables and iteration.

This lesson is part of full GH-300 access

The first 2 GH-300 lessons are free. Full access opens every lesson with its practice questions, and the exam-style GH-300 question bank.

In this lesson
  • The four S principles
  • Techniques
  • Context in Copilot Chat
  • Inline suggestions
  • Chat history and performance
  • Exam traps
  • Practice questions

Get full access Try the free practice exam Log in

GH-300 course outline

All 7 lessons · Course overview
  1. Responsible AI principles for CopilotResponsible AI Free
  2. GitHub Copilot plans comparedGitHub Copilot plans and features Free
  3. Copilot Chat, agent mode and metricsGitHub Copilot plans and features Full access
  4. How Copilot builds a response and handles dataHow GitHub Copilot works and handles data Full access
  5. Prompt crafting for CopilotPrompt crafting and prompt engineering Full access
  6. Developer use cases across the SDLCDeveloper use cases Full access
  7. Content exclusions and troubleshootingTesting, privacy and context exclusions Full access