Skip to content

Commit 6eca8e8

Browse files
authored
docs: Add styling to prompts.
1 parent a6dd60b commit 6eca8e8

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

.github/steps/3b-copilot-agent-mode.md

+27-19
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ Now, let's give **Agent** mode a try! 👩‍🚀
5050

5151
1. Time for a test! Let's ask Copilot to add functionality for removing participants.
5252

53-
```Prompt
54-
#codebase Please add a delete icon next to each participant and hide the bullet points.
55-
When clicked, it will unregister that participant from the activity.
56-
```
53+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
54+
>
55+
> ```prompt
56+
> #codebase Please add a delete icon next to each participant and hide the bullet points.
57+
> When clicked, it will unregister that participant from the activity.
58+
> ```
5759
5860
- If you try this prompt in **Edit** mode, you will find that the changes to the frontend and backend were made in a theoretical way. Although no syntax or runtime errors occurred, the changes were not compatible and didn't achieve the goal.
5961
- In **Agent** mode, Copilot reviewed its own work and refined it to ensure all changes were error free and coordinated together.
@@ -62,10 +64,12 @@ Now, let's give **Agent** mode a try! 👩‍🚀
6264
6365
1. Ask Copilot to fix a registration bug.
6466
65-
```Prompt
66-
#codebase I've noticed there seems to be a bug.
67-
When a participant is registered, the page must be refreshed to see the change on the activity.
68-
```
67+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
68+
>
69+
> ```prompt
70+
> #codebase I've noticed there seems to be a bug.
71+
> When a participant is registered, the page must be refreshed to see the change on the activity.
72+
> ```
6973
7074
- If you try this prompt in **Edit** mode, it may or may not work.
7175
@@ -81,22 +85,26 @@ Just for fun, let's try something even more difficult and see what happens!
8185
8286
1. Ask Copilot to install a local database service.
8387
84-
```prompt
85-
Please install a local mongodb server for development reasons.
86-
Afterward, run a command that lists the collections to verify the service is active and working.
87-
Do not modify our program yet.
88-
```
88+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
89+
>
90+
> ```prompt
91+
> Please install a local mongodb server for development reasons.
92+
> Afterward, run a command that lists the collections to verify the service is active and working.
93+
> Do not modify our program yet.
94+
> ```
8995
9096
- We purposly made the default development environment not ready for installing a local MongoDB server.
9197
- You will see Copilot make mistakes, analyze the error messages, and ask to run various extra commands to make the environment suitable. Nice!
9298
9399
1. Ask Copilot to change our app to use the database service. 🤯
94100
95-
```prompt
96-
#codebase I don't like that we are storing the data in memory.
97-
Let's switch to using mongodb.
98-
For now use the local development instance.
99-
Please prepopulate the database with the existing hardcoded json activities, keeping the the activity name as the key.
100-
```
101+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
102+
>
103+
> ```prompt
104+
> #codebase I don't like that we are storing the data in memory.
105+
> Let's switch to using mongodb.
106+
> For now use the local development instance.
107+
> Please prepopulate the database with the existing hardcoded json activities, keeping the the activity name as the key.
108+
> ```
101109
102110
1. That's your preview for now. We hope it was fun and please check back soon on the [Skills page](https://skills.github.com) for a dedicated exercise to explore even more of Agent Mode! 🧑‍🚀 🚀

0 commit comments

Comments
 (0)