Skip to content

Commit e1d82e2

Browse files
authored
Merge pull request #54108 from Chukslord1/fix-skills-workspaceagent
fixed time for skill, fixed mentions of @workspace, updated mslearn m…
2 parents 535e522 + 6901227 commit e1d82e2

31 files changed

Lines changed: 124 additions & 115 deletions

File tree

learn-pr/advocates/challenge-github-copilot-sql/includes/2-work-with-sql-using-github-copilot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ GitHub Copilot provides better outcomes when your prompts are more specific. If
1616

1717
For example, you could use GitHub Copilot to provide you with the SQL code to create a table that included columns for first name, last name, date of birth, favorite movie, and pet name by issuing the following prompt:
1818

19-
_@workspace Please provide me with the SQL code to create a table that included columns for first name, last name, date of birth, favorite movie and pet name_
19+
_Please provide me with the SQL code to create a table that included columns for first name, last name, date of birth, favorite movie and pet name_
2020

2121
![A screenshot a GitHub Copilot prompt related to the creation of a table in SQL.](../media/create-table.svg)
2222

2323
## Understand an application that includes SQL
2424

2525
For example, if you opened a codespace were presented with an application that included SQL code, you could query GitHub Copilot with the following prompt to understand more about the project in the following manner:
2626

27-
_@workspace Please briefly explain the structure of this project.
27+
_Please briefly explain the structure of this project.
2828
What should I do to run it?_
2929

3030
![A screenshot showing GitHub Copilot's response to a query about project structure.](../media/project-structure.svg)

learn-pr/github/advanced-github-copilot/6-knowledge-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ quiz:
4949
- content: "Slash commands are shortcuts to quickly solve common development tasks within the chat or inline pane."
5050
isCorrect: true
5151
explanation: "That's correct! Slash commands help you perform specific actions like writing tests and documentation faster by using predefined intents. You can access these slash command options in a drop-down menu after typing `/` in the chat or inline pane."
52-
- content: "What are the benefits of using agents like '@terminal' or '@workspace' when interacting with GitHub Copilot?"
52+
- content: "What are the benefits of using agents like '@terminal' when interacting with GitHub Copilot?"
5353
choices:
5454
- content: "Agents in Visual Studio Code help you ask questions within a specific context, allowing for more precise and relevant answers from GitHub Copilot."
5555
isCorrect: true
56-
explanation: "That's correct! Agents like '@terminal' or '@workspace' allow you to interact with GitHub Copilot in the context of your terminal or entire workspace. By using these agents, questions are more precise and relevant, which helps you efficiently solve development tasks."
56+
explanation: "That's correct! Agents like '@terminal' allow you to interact with GitHub Copilot in the context of your terminal. By using these agents, questions are more precise and relevant, which helps you efficiently solve development tasks."
5757
- content: "Agents help enforce a consistent code format based on best practices within Visual Studio Code for improved readability."
5858
isCorrect: false
59-
explanation: "Incorrect, agents don't specifically enforce formatting rules. They're used to interact with GitHub Copilot in the context of your terminal or workspace when asking questions and receiving answers."
59+
explanation: "Incorrect, agents don't specifically enforce formatting rules. They're used to interact with GitHub Copilot in the context of your terminal when asking questions and receiving answers."
6060
- content: "Agents provide extra security features for detecting vulnerabilities and intrusions within Visual Studio Code projects."
6161
isCorrect: false
6262
explanation: "Incorrect, agents don't specifically focus on providing security features. They're used to interacting with GitHub Copilot in a specific context when asking questions related to development tasks."

learn-pr/github/advanced-github-copilot/includes/2-advanced-github-copilot-features.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ Using specific slash commands to create a question is a good way to get better r
2727

2828
## Agents
2929

30-
Visual Studio Code has a feature called *agents* that allows you to interact with GitHub Copilot. These agents allow you to ask questions using a specific context. For example the `@terminal` agent helps you chat with GitHub Copilot to interact with the terminal.
31-
32-
Another agent is `@workspace`, which is aware of your entire workspace. It allows you to ask questions about the entire project. To use an agent, prefix your question with the agent, for example: `@workspace how can I package this project?`.
30+
Visual Studio Code has a feature called *agents* that allows you to interact with GitHub Copilot. These agents allow you to ask questions using a specific context. For example the `@terminal` agent helps you chat with GitHub Copilot to interact with the terminal.

learn-pr/github/advanced-github-copilot/includes/4-applied-copilot-techniques.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,25 @@ Combining features like slash commands with inline chat allows you to choose the
4040

4141
GitHub Copilot can be customized to provide suggestions based on the context you're working on. For example, you can ask GitHub Copilot to provide suggestions based on the entire workspace or the terminal output.
4242

43-
GitHub Copilot can give you an accurate suggestion for your project without requiring you to open many files. Imagine you need to package your project using a _Dockerfile_. A _Dockerfile_ is a special file that needs to have specific instructions to package your project. You can use the `@workspace` agent to ask GitHub Copilot how to help you out. For example, open GitHub Copilot Chat and type the following command:
43+
GitHub Copilot can give you accurate suggestions for your project without requiring you to open many files. Imagine you need to package your project using a Dockerfile. A Dockerfile is a special file that needs to have specific instructions to package your project. You can use GitHub Copilot Chat to ask how to help you out. For example, open GitHub Copilot Chat and type the following command:
4444

4545
```text
46-
@workspace I need to create a Dockerfile for this project, can you generate one that will help me package it?
46+
I need to create a Dockerfile for this project, can you generate one that will help me package it?
4747
```
4848

4949
You'll get a response back that explains the steps to create a _Dockerfile_ for your project, along with some explanation on what the steps of the file are going to do.
5050

5151
As always, if the suggestions aren't exactly what you are looking for, you can reword the prompt and be more specific. For example, you could ask GitHub Copilot to use a specific step when creating the _Dockerfile_:
5252

5353
```text
54-
@workspace help me create a Dockerfile to package this project but make sure you are using a Virtual Environment for Python.
54+
Help me create a Dockerfile to package this project but make sure you are using a Virtual Environment for Python.
5555
```
5656

57-
In addition to the `@workspace` agent, you can use other agents like `@terminal`, `@file`, and `@directory` to get context-specific suggestions:
57+
Copilot can also provide context-specific suggestions based on where you are working. For example, you can use the `@terminal` agent to get help with errors or commands allowing Copilot to provide suggestions based on the terminal output.
5858

59-
- `@terminal`: Provides suggestions based on the terminal output.
60-
- Example: @terminal How do I fix the error message I'm seeing?
61-
- `@file`: Focuses on the content of a specific file.
62-
- Example: @file Can you help me refactor this function in main.py?
63-
- `@directory`: Considers the contents of a specific directory.
64-
- Example: @directory How can I optimize the scripts in the utils directory?
59+
Example: @terminal How do I fix the error message I'm seeing?
6560

6661
If you're stuck or not getting the results you want, then you can reword the prompt or start writing code for Copilot to autocomplete.
6762

6863
>[!Note]
69-
> Although you can be specific with `@workspace`, by default GitHub Copilot uses open files in your text editor as additional context.
64+
> By default GitHub Copilot uses open files in your text editor as additional context.

learn-pr/github/advanced-github-copilot/includes/5-exercise-update-a-web-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ This test is not quite right, it is not including cities that doesn't exist. Onl
4848

4949
### Step 3: Use an agent to write the documentation
5050

51-
Finally, use the `@workspace` agent to write project documentation and details on how to run the project itself. Open the `README.md` file and use the following prompt in GitHub Copilot Chat:
51+
Finally, use GitHub Copilot Chat Agent mode to write project documentation and details on how to run the project itself. Open the `README.md` file and use the following prompt in GitHub Copilot Chat:
5252

5353
```text
54-
@workspace I want to document how to run this project so that other developers can get started quickly by reading the README.md file.
54+
I want to document how to run this project so that other developers can get started quickly by reading the README.md file.
5555
```
5656

5757
You should get a response that helps you update the README.md file with the necessary information to run the project.

learn-pr/github/advanced-github-copilot/includes/7-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GitHub Copilot is a tool that offers many ways to interact with your project, an
33
Now that you have finished this module, you should be able to:
44

55
- Use GitHub Copilot features like chat, agents, inline chat, and slash commands, which offer more flexibility to accomplish coding tasks.
6-
- Apply the `@workspace` agent using GitHub Copilot Chat to provide more content when trying to get output relevant to your project.
6+
- Use GitHub Copilot Chat to provide context-aware assistance when working on your project and generating relevant output.
77

88
## Delete your Codespaces resources
99

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-actions-cd.exercise-2
3+
title: Exercise - Work with workflow artifacts in GitHub Actions
4+
metadata:
5+
title: Exercise - Work with workflow artifacts in GitHub Actions
6+
description: Validate your knowledge on uploading, managing, and reusing workflow artifacts across jobs and workflows in GitHub Actions.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 04/03/2026
10+
ms.topic: unit
11+
durationInMinutes: 60
12+
content: |
13+
[!include[](includes/exercise-2.md)]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
In this exercise, you use GitHub to validate your knowledge of working with workflow artifacts in GitHub Actions to upload, share, and reuse data across jobs and workflows.
2+
3+
This GitHub exercise is graded automatically once you've attempted a solution to the challenge. The results of your actions and helpful feedback are provided in real time within the `grade-learner` workflow logs.
4+
5+
Here are some helpful tips before you begin the exercise:
6+
7+
- Read the **About this exercise** section in the exercise's repository README to understand how artifacts are created, stored, and reused across workflows.
8+
- Follow the steps provided in the **Instructions** section to successfully upload, preview, download, and reuse workflow artifacts.
9+
- To see the results of your exercise, navigate to the **Actions** tab of your cloned repository and select the most recent run on the **Grading** workflow.
10+
- Stuck on what to do? Revisit the content in the previous unit or check out the **Useful resources** section in the exercise's repository README for additional guidance on workflow artifacts and GitHub Actions.
11+
12+
> [!NOTE]
13+
> A grading script exists under `.github/workflows/grading.yml`. You do not need to modify this workflow to complete this exercise. **Altering the contents in this workflow can break the exercise's ability to validate your actions, provide feedback, or grade the results**.
14+
15+
This exercise is a challenge based on content covered in this module, and it may take several attempts to complete successfully. If you get stuck, we recommend revisiting previous content in this module or exploring the additional resources provided.
16+
17+
When you've finished the exercise in GitHub, return here for:
18+
19+
> [!div class="checklist"]
20+
>
21+
> - A quick knowledge check
22+
> - A summary of what you've learned
23+
> - A badge for completing this module
24+
25+
> [!div class="nextstepaction"]
26+
> [Start the exercise on GitHub](https://github.com/skills/workflow-artifacts)

learn-pr/github/github-actions-cd/index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ units:
4545
- learn.github.github-actions-cd.2-deploy-azure
4646
- learn.github.github-actions-cd.2b-manage-workflow-runs
4747
- learn.github.github-actions-cd.3-create-workflow-deploy-azure
48+
- learn.github.github-actions-cd.exercise-2
4849
- learn.github.github-actions-cd.exercise
4950
- learn.github.github-actions-cd.4-knowledge-check
5051
- learn.github.github-actions-cd.5-summary

learn-pr/github/github-copilot-across-environments/6-knowledge-check.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@ quiz:
4141
- content: "/unittest"
4242
isCorrect: false
4343
explanation: "Incorrect. The /unittest command isn't a valid slash command in GitHub Copilot Chat."
44-
- content: "What is the purpose of the @workspace agent in GitHub Copilot Chat?"
45-
choices:
46-
- content: "To focus only on the current file"
47-
isCorrect: false
48-
explanation: "Incorrect. The @workspace agent doesn't limit the context to just the current file."
49-
- content: "To extend the context of questions to the whole project"
50-
isCorrect: true
51-
explanation: "Correct. The @workspace agent broadens the scope of Copilot's understanding to the entire project or workspace."
52-
- content: "To run terminal commands"
53-
isCorrect: false
54-
explanation: "Incorrect. Running terminal commands isn't the primary purpose of the @workspace agent."
55-
- content: "To change Visual Studio Code settings"
56-
isCorrect: false
57-
explanation: "Incorrect. The @workspace agent isn't used for changing IDE settings."
5844
- content: "What command would you use to get an explanation of a specific command using GitHub Copilot CLI?"
5945
choices:
6046
- content: "gh copilot suggest"

0 commit comments

Comments
 (0)