You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 07-putting-it-together/README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ In this chapter, you'll bring together everything you've learned into complete w
10
10
11
11
By the end of this chapter, you'll be able to:
12
12
13
-
- Combine agents, skills, and MCP in unified workflows
13
+
- Combine agents, skills, and MCP (Model Context Protocol) in unified workflows
14
14
- Build complete features using multi-tool approaches
15
15
- Set up basic automation with hooks
16
16
- Apply best practices for professional development
@@ -37,7 +37,7 @@ Individually, each section sounds limited. Together, conducted well, they create
37
37
38
38
## Idea to Merged PR in One Session
39
39
40
-
This is the culmination of everything you've learned. Traditional development of a feature like "list unread books" means switching between your editor, terminal, test runner, and GitHub UI, losing context each time you switch. Watch what happens when you combine all your tools in one terminal session:
40
+
This is the culmination of everything you've learned. Instead of switching between your editor, terminal, test runner, and GitHub UI and losing context each time, you can combine all your tools in one terminal session. We'll break down this pattern in the [Integration Pattern](#the-integration-pattern-for-power-users) section below.
41
41
42
42
```bash
43
43
# Start Copilot in interactive mode
@@ -80,7 +80,7 @@ copilot
80
80
# TEST
81
81
> Generate comprehensive tests for the new feature
82
82
83
-
# SHIP
83
+
# SHIP (uses GitHub MCP from Chapter 06)
84
84
> /review
85
85
> Create a pull request titled "Feature: Add list unread books command"
86
86
```
@@ -98,7 +98,7 @@ copilot
98
98
99
99
---
100
100
101
-
**Traditional approach**: Switching between editor, terminal, test runner, docs, and GitHub UI, losing context each time
101
+
**Traditional approach**: Switching between editor, terminal, test runner, docs, and GitHub UI. Each switch causes context loss and friction.
102
102
103
103
**The key insight**: You directed specialists like an architect. They handled the details. You handled the vision.
104
104
@@ -236,7 +236,7 @@ copilot
236
236
>
237
237
> ⚠️ **Performance note**: This hook calls `copilot -p` for each staged file, which takes several seconds per file. For large commits, consider limiting to critical files or running reviews manually with `/review` instead.
238
238
239
-
Set up automated code review on your commits:
239
+
A **git hook** is a script that Git runs automatically at certain points, For example, right before a commit. You can use this to run automated checks on your code. Here's how to set up an automated Copilot review on your commits:
240
240
241
241
```bash
242
242
@@ -278,6 +278,8 @@ EOF
278
278
chmod +x .git/hooks/pre-commit
279
279
```
280
280
281
+
> ⚠️ **macOS users**: The `timeout`command is not included by default on macOS. Install it with `brew install coreutils` or replace `timeout 60` with a simple invocation without a timeout guard.
282
+
281
283
> 📚 **Official Documentation**: [Use hooks](https://docs.github.com/copilot/how-tos/copilot-cli/use-hooks) and [Hooks configuration reference](https://docs.github.com/copilot/reference/hooks-configuration) for the complete hooks API.
282
284
>
283
285
> 💡 **Built-in alternative**: Copilot CLI also has a built-in hooks system (`copilot hooks`) that can run automatically on events like pre-commit. The manual git hook above gives you full control, while the built-in system is simpler to configure. See the docs above to decide which approach fits your workflow.
@@ -391,12 +393,12 @@ Always gather context before asking for analysis:
391
393
# Good
392
394
> Get the details of issue #42
393
395
> /agent
394
-
# Select backend
396
+
# Select python-reviewer
395
397
> Analyze this issue
396
398
397
399
# Less effective
398
400
> /agent
399
-
# Select backend
401
+
# Select python-reviewer
400
402
> Fix login bug
401
403
# Agent doesn't have issue context
402
404
```
@@ -406,7 +408,7 @@ Always gather context before asking for analysis:
406
408
```bash
407
409
# Agent analyzes
408
410
> /agent
409
-
# Select security
411
+
# Select python-reviewer
410
412
> Review this authentication code
411
413
412
414
# Skill executes (automatically triggered by your prompt)
@@ -522,7 +524,7 @@ Document your workflow as you go.
522
524
523
525
**Success criteria**: You've completed the feature from idea to commit using Copilot CLI, including planning, implementation, tests, documentation, and review.
524
526
525
-
> 💡 **Bonus**: If you have agents set up from Chapter 04, try using `/agent` to switch to your error-handler agent for implementation review and your doc-writer agent for the README update.
527
+
> 💡 **Bonus**: If you have agents set up from Chapter 04, try creating and using custom agents. For example, an error-handler agent for implementation review and a doc-writer agent for the README update.
0 commit comments