Skip to content

Commit 8b7b22b

Browse files
committed
Update documentation to reflect GitHub Copilot's Plan mode and enhance clarity on features and usage
1 parent 3e8cac5 commit 8b7b22b

8 files changed

Lines changed: 72 additions & 76 deletions

learn-pr/wwl-azure/generate-documentation-using-github-copilot-tools/8-knowledge-check.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ quiz:
4949
- content: "To provide feedback to the AI for future improvements."
5050
isCorrect: false
5151
explanation: "Incorrect. While feedback can be useful, the primary purpose of reviewing is to ensure the accuracy and completeness of the generated output."
52-
- content: "How can GitHub Copilot Chat assist when encountering an error in the code?"
52+
- content: "Which Chat view modes are available in GitHub Copilot for generating documentation?"
5353
choices:
54-
- content: "It can explain the cause of the error and suggest ways to fix it."
55-
isCorrect: true
56-
explanation: "Correct. Copilot Chat can provide explanations for errors and suggest potential solutions."
57-
- content: "It can prevent errors from occurring in the first place."
54+
- content: "Ask, Edit, and Agent modes."
5855
isCorrect: false
59-
explanation: "Incorrect. Copilot Chat assists in understanding and fixing errors, but it can't prevent them."
60-
- content: "It can automatically fix the error without any user interaction."
56+
explanation: "Incorrect. Edit mode is not one of the available Chat view modes. The three available modes are Ask, Agent, and Plan."
57+
- content: "Ask, Agent, and Plan modes."
58+
isCorrect: true
59+
explanation: "Correct. The Chat view supports Ask, Agent, and Plan modes. Each mode has different strengths for documentation tasks. Ask mode is best for analyzing and previewing documentation. Agent mode is best for multi-file documentation generation. Plan mode creates a detailed implementation plan that can be handed off to agent mode."
60+
- content: "Only Ask and Agent modes."
6161
isCorrect: false
62-
explanation: "Incorrect. While Copilot Chat can suggest fixes, it doesn't automatically apply them."
62+
explanation: "Incorrect. In addition to Ask and Agent modes, the Chat view also supports Plan mode, which creates implementation plans that can be handed off to agent mode for execution."
6363
- content: "What is the primary purpose of project documentation in software development?"
6464
choices:
6565
- content: "To provide a detailed codebase for developers to use."
@@ -71,17 +71,17 @@ quiz:
7171
- content: "To provide essential information for understanding the project's scope and purpose."
7272
isCorrect: true
7373
explanation: "Correct. Project documentation provides essential information for understanding the project's scope, purpose, constraints, dependencies, and requirements."
74-
- content: "How can GitHub Copilot Chat be used in the context of project documentation?"
74+
- content: "What is a key advantage of using agent mode to generate project documentation?"
7575
choices:
76-
- content: "To generate specific sections of the project documentation, such as the project overview, requirements, constraints, dependencies, and summary."
76+
- content: "Agent mode can analyze the entire project structure and generate documentation that links and summarizes content across the codebase."
7777
isCorrect: true
78-
explanation: "Correct. GitHub Copilot Chat can be used to generate specific sections of the project documentation."
79-
- content: "To communicate with the project stakeholders and gather their requirements."
78+
explanation: "Correct. Agent mode can gather information from multiple files and folders, describe complex relationships, include links between documents, and execute batch documentation tasks such as creating README, UsageExamples, and ChangeLog files."
79+
- content: "Agent mode provides only high-level overviews of individual files."
8080
isCorrect: false
81-
explanation: "Incorrect. GitHub Copilot Chat isn't designed for communication with stakeholders."
82-
- content: "To automatically write the entire codebase for the project."
81+
explanation: "Incorrect. Agent mode can analyze the entire project structure and generate detailed documentation across multiple files, not just individual file overviews."
82+
- content: "Agent mode requires the @workspace chat participant to analyze the codebase."
8383
isCorrect: false
84-
explanation: "Incorrect. GitHub Copilot Chat can assist with code suggestions, but it doesn't write the entire codebase."
84+
explanation: "Incorrect. Chat participants like @workspace aren't available in agent mode. You can add context using #codebase and the Attach Context button instead."
8585
- content: "What is the purpose of generating inline code documentation in software development?"
8686
choices:
8787
- content: "To make the code more complex and challenging for other developers."
@@ -93,14 +93,14 @@ quiz:
9393
- content: "To increase the size of the codebase."
9494
isCorrect: false
9595
explanation: "Incorrect. While documentation does add to the size of the codebase, its primary purpose is to improve readability and maintainability, not to increase size."
96-
- content: "How can GitHub Copilot Chat help generate inline code documentation?"
96+
- content: "What is the purpose of the Plan mode in GitHub Copilot Chat?"
9797
choices:
98-
- content: "By automatically writing the entire codebase."
98+
- content: "To directly apply code changes to files without user review."
9999
isCorrect: false
100-
explanation: "Incorrect. GitHub Copilot Chat assists in generating inline code documentation, not in writing the entire codebase."
101-
- content: "By generating inline code comments based on natural language prompts or commands."
100+
explanation: "Incorrect. Plan mode doesn't directly apply changes. It creates an implementation plan that can be reviewed and then handed off to agent mode for execution."
101+
- content: "To create a detailed implementation plan that can be handed off to agent mode for execution."
102102
isCorrect: true
103-
explanation: "Correct. GitHub Copilot Chat can generate inline code comments based on natural language prompts or the '/doc' command."
104-
- content: "By providing real-time chat support with other developers."
103+
explanation: "Correct. Plan mode analyzes the codebase, identifies requirements, and produces a step-by-step plan. Once approved, you can select Start Implementation to hand off the plan to agent mode, or select Open in Editor to save the plan as a Markdown file."
104+
- content: "To provide inline code suggestions directly in the editor."
105105
isCorrect: false
106-
explanation: "Incorrect. GitHub Copilot Chat doesn't provide real-time chat support with other developers. It generates inline code documentation."
106+
explanation: "Incorrect. Plan mode doesn't provide inline suggestions. It creates implementation plans in the Chat view that can be handed off to agent mode or saved as a Markdown file for later use."

learn-pr/wwl-azure/generate-documentation-using-github-copilot-tools/includes/1-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ After completing this module, you’ll be able to:
1414

1515
- Describe how GitHub Copilot uses natural language processing and machine learning to interpret user prompts and provide relevant responses.
1616
- Use GitHub Copilot to brainstorm new apps or features, explore coding tools and techniques, evaluate issues and potential fixes, and explain complex or unfamiliar code.
17-
- Generate project documentation using GitHub Copilot's Ask, Edit, and Agent modes.
17+
- Generate project documentation using GitHub Copilot's Ask, Agent, and Plan modes.
1818
- Generate inline code documentation using GitHub Copilot's Chat view, Inline chat, and Smart actions.
1919
- Complete a lab exercise that involves using GitHub Copilot to analyze and document a codebase.
2020

learn-pr/wwl-azure/generate-documentation-using-github-copilot-tools/includes/2-review-github-copilot-explain-document-features.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following GitHub Copilot features can be used to generate inline code docume
1818

1919
- Ask mode: Use the ask mode to suggest inline code documentation for a code file, class, or method. Review the suggested inline documentation in the Chat view. Request updates as needed in the chat conversation. Once you're satisfied with the proposed documentation, you can insert the suggested documentation into the corresponding code file.
2020

21-
- Edit mode: Use the edit mode to suggest inline code documentation for a code file, class, or method. Review the suggested documentation in the editor, navigating between suggested updates. Accept or reject individual suggestions, or modify suggestions as needed.
21+
- Plan mode: Use the Plan mode to create a detailed implementation plan for your documentation tasks. The Plan mode can be used to analyze the codebase, identify documentation requirements, and produce a step-by-step plan. Once the plan is approved, you can hand it off to agent mode for execution.
2222

2323
- Agent mode: Use the agent mode to autonomously generate inline code documentation for specified code projects, files, classes, or methods. Have the agent perform other tasks during or after the documentation process. Accept or reject the updates when the agent has completed the assigned tasks.
2424

@@ -32,12 +32,12 @@ The following GitHub Copilot features can be used to generate project documentat
3232

3333
- Chat view in ask mode: Use the ask mode to analyze the codebase and gain an understanding of the code projects, files, and classes. Use ask mode to preview suggested project documentation. Review suggestions and request updates or other details as needed. Insert the suggested documentation into a project documentation file (README.md).
3434

35-
- Chat view in Edit mode: Generate a project documentation file (README.md).
35+
- Chat view in Plan mode: Create a detailed implementation plan for project documentation, then hand off to agent mode for execution.
3636

3737
- Chat view in agent mode: Generate a collection of project documentation files: create/update the README.md, create/update the UsageExamples.md, and create/update the ChangeLog.md. Include links between the documentation files, cross-reference classes and methods, and ensure consistency across docs.
3838

3939
> [!IMPORTANT]
40-
> When you use the Chat view in agent mode, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions Copilot takes on your behalf. The total premium requests used will depend on the complexity of the task, the number of steps involved, and the model selected.
40+
> When you use the Chat view in agent mode, each prompt you enter counts as one premium request, multiplied by the model's multiplier. GitHub Copilot may take several follow-up actions to complete your task, but these follow-up actions don't count toward your premium request usage. Only the prompts you enter are billed. The total premium requests used depends on how many prompts you enter and the model selected. The Free Plan for GitHub Copilot gets 50 premium requests per month. Check plan descriptions for more details about premium request limits for each GitHub Copilot subscription.
4141
4242
## Summary
4343

learn-pr/wwl-azure/generate-documentation-using-github-copilot-tools/includes/3-examine-github-copilot-prompts-keywords.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ GitHub Copilot uses the following keywords to help you specify the context and i
1818

1919
- Chat participants: Chat participants are like experts in a specific field that help GitHub Copilot generate better responses. Chat participants are specified using the `@` symbol.
2020

21-
- Slash commands: Slash commands help to describe the intent (the goal or objective) of your prompt. One of Copilot Chat's tasks when answering questions is to determine the intent, understanding what you want to do. Slash commands can help clarify your intent.
21+
- Slash commands: Slash commands help to describe the intent (the goal or objective) of your prompt. One of GitHub Copilot Chat's tasks when answering questions is to determine the intent, understanding what you want to do. Slash commands can help clarify your intent.
2222

2323
- Chat variables: Chat variables provide domain-specific context. You can reference a chat variable in your chat prompt by using the `#` symbol. By using a chat variable, you can be more specific about the context that you include in your chat prompt.
2424

2525
### Chat participants
2626

2727
GitHub Copilot Chat provides better responses when it understands the context that you're interested in and can apply the best resources. You can help GitHub Copilot Chat generate better responses by adding a Chat participant to your prompts. Chat participants are like experts in a specific field that provide better responses. Chat participants are specified using the `@` symbol.
2828

29-
Currently, Copilot Chat supports the following built-in chat participants:
29+
Currently, GitHub Copilot Chat supports the following built-in chat participants:
3030

3131
- `@workspace`: The `@workspace` participant can help answer questions about the code in your workspace or suggest ways to refactor or improve your code.
3232
- `@vscode`: The `@vscode` participant knows about commands and features in the Visual Studio Code editor itself, and can help you use them.
3333
- `@terminal`: The `@terminal` participant can help with the integrated terminal shell and its contents.
3434
- `@github`: The `@github` participant can help get answers grounded in web search, code search, and your enterprise's knowledge bases.
3535

36-
You can prefix your prompt with a specific chat participant to help Copilot generate a more relevant response.
36+
You can prefix your prompt with a specific chat participant to help GitHub Copilot generate a more relevant response.
3737

3838
### Slash commands
3939

40-
Slash commands help Copilot Chat understand your intent when you ask a question. Are you learning about a code base (`/explain`), do you want help with fixing an issue (`/fix`), or are you creating test cases (`/tests`)? By letting Copilot Chat know what you're trying to do, it can tune its reply to your task and provide helpful commands, settings, and code snippets.
40+
Slash commands help GitHub Copilot Chat understand your intent when you ask a question. Are you learning about a code base (`/explain`), do you want help with fixing an issue (`/fix`), or are you creating test cases (`/tests`)? By letting GitHub Copilot Chat know what you're trying to do, it can tune its reply to your task and provide helpful commands, settings, and code snippets.
4141

4242
Chat participants are often bundled with slash commands. The slash command is a concise way to explain your intent to the chat participant. The `/explain` slash command is often bundled with the `@workspace` chat participant. The combination of a chat participant and a slash command is a powerful way to clarify your intent.
4343

@@ -110,7 +110,7 @@ About the `#codebase` keyword:
110110

111111
- The `#codebase` keyword is a tool that performs a codebase search based on the user prompt and adds the relevant code as context to the chat prompt.
112112
- When you use the `#codebase` keyword, the language model remains in control and can combine `#codebase` with other tools for editing scenarios.
113-
- The `#codebase` keyword can be used in all chat modes (Ask, Edit, and Agent).
113+
- The `#codebase` keyword can be used in all chat modes (Ask, Agent, and Plan).
114114
- Examples: "`add a tooltip to this button, consistent with other button #codebase`", "`add unit tests and run them #codebase`"
115115

116116
GitHub recommends using `#codebase` in your chat prompts, as it provides more flexibility.

0 commit comments

Comments
 (0)