In one hour, you will use GitHub Copilot to plan and build a working quiz app through the Copilot Power Loop:
flowchart TD
A["🧠 1. PLAN<br/>Choose your quiz"] --> B["🛠️ 2. PAGE<br/>Build the screen"]
B --> C["📝 3. QUESTIONS<br/>Add four questions"]
C --> D["⚙️ 4. QUIZ<br/>Make it work"]
D --> E["👀 5. CHECK<br/>Review and test"]
E --> F["🎉 6. FINISH<br/>Add an optional touch"]
E -. "Fix, re-check, add questions" .-> C
Copilot cannot guess exactly what you want. You need to give it clear instructions, like you would when explaining a task to a teammate.
Meet your Copilot agents team! Each agent has one job:
- 🤖 plan-quiz is the team planner. It helps you choose what to build.
- 🤖 build-page creates the quiz screen.
- 🤖 add-questions adds your questions.
- 🤖 build-quiz makes the buttons and quiz behavior work.
- 🤖 check-quiz checks the finished quiz.
- 🤖 add-finish adds one optional finishing touch.
You will move through the agents yourself. For each step, open the agent picker near the chat input, choose the agent named in the instructions, type the prompt shown, and press Submit.
Open and read
plan-quiz.agent.md.
Take note of:
- What Copilot must do
- Which files it will read
- What it must not do
- How you will test the result
Open the question bank. Choose four letters, such as
A, C, F and H.
-
Open Copilot Chat by selecting the Copilot icon.
-
Open the agent picker near the chat input.
-
Choose this agent:
🤖
plan-quiz -
Type the message below, then press Submit:
Help me plan my quiz. -
Answer Copilot's questions:
- Your quiz name
- Two main colours
-
Read the plan. Ask Copilot to change anything you do not like.
-
Check that the plan uses your quiz name and colours.
Open and read
build-page.agent.md.
Take note of:
- What page elements Copilot must build
- Which files it will change
- What it must not change
- How you will test the page
-
Open the agent picker and choose:
🤖
build-page -
Type the message below, then press Submit:
Build the quiz page for my plan. -
Look at the files Copilot changed. Find your quiz name in
index.htmland your colours instyles.css. -
Refresh the browser. You should see your quiz design. The buttons will not work yet because you have not built the quiz behaviour.
Open and read
add-questions.agent.md.
Take note of:
- How many questions to add
- What each question must include
- Which file Copilot will change
- How you will check the question data
-
Open the agent picker and choose:
🤖
add-questions -
Type four question letters from
QUESTION-BANK.md, for example:Add these four questions: A, C, F and H.Replace the letters with your choices. This first setup adds four questions.
-
Press Submit.
-
When Copilot finishes, open
questions.js. Make sure it contains your four selected questions and four answers for each question. -
Check that Copilot reports:
Checked 4 quiz questions successfully.
The browser will not change yet. The questions are ready, but the quiz behaviour has not been built.
Open and read
build-quiz.agent.md.
Take note of:
- What the quiz must do
- Which file Copilot will change
- What it must not change
- How you will test the quiz
-
Open the agent picker and choose:
🤖
build-quiz -
Type the message below, then press Submit:
Add the JavaScript behaviour now that the page and questions exist. -
Wait for Copilot to finish building the quiz.
Open and read
check-quiz.agent.md.
Take note of:
- What Copilot will check
- What Copilot must not change
- How you will test the finished quiz
-
Open the agent picker and choose:
🤖
check-quizThen type:
Check my quiz against the requirements. -
Read the list marked PASS or FIX.
-
If something does not work, open the agent picker and choose:
🤖
fix-one-problem -
Type the message below, and press Submit:
Fix this problem. I expected [what should happen], but [what happened]. -
Open the agent picker and choose:
🤖
check-quizThen type the message below, and press Submit:
Re-check my quiz against the requirements.
The quiz is complete and now ready to use.
Test the quiz:
- Start the quiz.
- Choose one wrong answer.
- Choose one correct answer on the next question.
- Finish all four questions.
- Check the final score.
- Restart and check that the score returns to zero.
If you want to add another question after checking the quiz:
-
Open the agent picker and choose:
🤖
add-questions -
Type:
Add question B from QUESTION-BANK.md. Keep all existing questions.Replace
Bwith one new question ID. -
Press Submit. Keep the existing questions; this adds one more.
-
If your quiz works and you have time, open the agent picker and choose:
🤖
add-finish -
Type:
Add a [timer, streak, confetti, or hint] to my quiz. -
Press Submit.
Show your quiz to another student. Explain one piece of code Copilot helped you build.
- You approved a plan before coding.
- You built the page.
- You added four questions.
- Start, answers, feedback, score, next, results and restart work.
- You tested both a correct and an incorrect answer.
- You can explain one code change.
Open the terminal at the bottom of Codespaces. Type this command and press Enter:
npm startDo not share passwords, personal information or secret keys with Copilot.

