Exercise 0: Prerequisites
此内容尚不支持你的语言。
Before you start the Copilot cloud agent exercises, you need to get everything ready. You’ll create your own copy of the Tailspin Toys repository and spin up a codespace you can use to edit instruction files and review the work the cloud agent produces.
Setting up the lab repository
To create a copy of the repository for the code you’ll create, you’ll make an instance from the template. The new instance will contain all of the necessary files for the lab, and you’ll use it as you work through the exercises.
-
In a new browser window, navigate to the GitHub repository for this lab:
https://github.com/github-samples/tailspin-toys. -
Create your own copy of the repository by selecting the Use this template button on the lab repository page. Then select Create a new repository.

-
If you are completing the workshop as part of an event being led by GitHub or Microsoft, follow the instructions provided by the mentors. Otherwise, you can create the new repository in an organization where you have access to GitHub Copilot.

-
Make a note of the repository path you created (organization-or-user-name/repository-name), as you will be referring to this later in the lab.
Creating a codespace
Next up, you’ll use a codespace to complete the lab exercises.
GitHub Codespaces are a cloud-based development environment that allows you to write, run, and debug code directly in your browser. It provides a fully-featured IDE with support for multiple programming languages, extensions, and tools.
-
Navigate to your newly created repository.
-
Select the green Code button.

-
Select the Codespaces tab and select the + button to create a new Codespace.

The creation of the codespace will take several minutes, although it’s still far quicker than having to manually install all the services! That said, you can use this time to explore other features of GitHub Copilot, which we’ll turn your attention to next.
You’ll return to the codespace in a future exercise. For the time being, leave it open in a tab in your browser.
This workshop is built to run inside a codespace or local dev container. Both ensure the environment has all the necessary prerequisites installed for a smooth experience. If you’d prefer to run it locally, open the cloned repository in VS Code and select Reopen in Container when prompted — VS Code will build the same dev container the codespace uses.
Summary
Congratulations, you have created a copy of the lab repository! You also began the creation process of your codespace, which you’ll use as you work alongside the Copilot cloud agent.
Next step
Let’s add custom instructions the cloud agent will follow. Continue to Exercise 1 - Custom instructions.