📊 We use cookies & analytics to improve your experience. Learn more
Latest

GitHub Copilot Mastery — AI Pair Programming That Ships Module 2 · Lesson 6 of 15

0% Exit to course

Module 2 · Prompting — getting a real answer Lesson 6 of 15

GitHub Copilot for the work you actually have

Learning objective

Assignments, revision, email, applications, meeting notes. A function you half-remember, a test file for code you just wrote, a review comment on your own pull request before a human sees it. The test of a tool is whether it removes an hour from your week, not whether the demo looked clever.

The concept

The highest-value use of GitHub Copilot for a student or a fresher is not writing essays. It is compression: turning a 40-page chapter into the six things you actually have to remember, turning a messy set of notes into a revision sheet, turning a job description into a list of what to prove.

The second highest is structure: given a blank page, ask for three possible outlines and pick one. Being stuck is usually a problem of options, not of effort.

Here is a prompt worth keeping verbatim — it is the one that turns a document into something you can study:

Notice the last line. Asking for the gaps is asking the tool to mark its own work, and it is the single most useful line you can add to a study prompt: the material it could not summarise is the material you have not understood yet.

Prompt
Here is my function: [paste]

Write tests for it in [framework].
Include:
- the normal case
- an empty input
- the input that breaks it, and say what happens when it does
- one test that documents a decision I made, not a bug

Then list any behaviour in my function you are unsure about, rather
than assuming it is correct.

Worked example

Give it a function and ask for the tests you would write, including the input that breaks it.

Your practice task

Pick the one task you repeat every week — the one that is boring rather than hard — and rebuild it in GitHub Copilot today. Time it. Then keep the prompt that worked, saved and named.

Do this before moving on. Reading a solution teaches the shape of it; typing it teaches you.

Key takeaway

The highest-value use of GitHub Copilot for a student or a fresher is not writing essays.

Create free account or sign in

Almost there

15 lessons left of 15

Finish every lesson to unlock the certificate. Each one ends in a practice task — do them and the final project brief writes itself.