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: content/1.posts/77.github-copilot-lessons-nuxt-blog.md
+42-15Lines changed: 42 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ Last December, I upgraded my Nuxt blog with the help of GitHub Copilot and I lea
17
17
18
18
## Plan your changes
19
19
20
-
Whether it's a technology upgrade, a complex feature to implement or a complete redesign, it's important to ask your AI assistant to plan the complex changes before implementing them. It does not matter if you use the [built-in Plan agent](https://code.visualstudio.com/docs/copilot/agents/planning), a custom agent or just a simple prompt, asking your AI assistant to plan the changes will help you identify the AI mistakes, see what could be improved, and challenge the assistant.
20
+
Whether it's a technology upgrade, a complex feature to implement or a complete redesign, it's important to ask your AI assistant to plan the complex changes before implementing them. It does not matter if you use the [built-in Plan agent](https://code.visualstudio.com/docs/copilot/agents/planning), a custom agent or just a simple prompt, asking your AI assistant to plan the changes will help you identify the AI mistakes, see what could be improved, and challenge the assistant. Then, you can choose to let the assistant implement the plan, or implement it yourself with the help of the plan.
21
21
22
-
For my blog upgrade, GitHub Copilot gave me a checklist with the differents seps of the process and it was very useful
22
+
For my blog upgrade, GitHub Copilot gave me a checklist with the differents steps of the migration and it was very useful not to forget anything important and do things in the right order.
23
23
24
24
## Specifications matter
25
25
@@ -57,27 +57,54 @@ If you need a guided process to create your specifications and have AI implement
57
57
58
58
## Use the appropriate MCP Servers
59
59
60
+
Today, everyone is talking about context engineering. And one way to improve the context of your AI assistant is to use the appropriate MCP servers.
61
+
MCP servers can provide you the up-to-date documentation or code samples of the technologies you are using.
62
+
63
+
My website is a Nuxt application using the Nuxt UI component library, so I have configured the Nuxt and Nuxt UI MCP servers for GitHub Copilot to have access to the latest documentation.
64
+
65
+
```json [./vscode/mcp.json]
66
+
{
67
+
"servers": {
68
+
"nuxt-ui": {
69
+
"type": "http",
70
+
"url": "https://ui.nuxt.com/mcp"
71
+
},
72
+
"nuxt": {
73
+
"type": "http",
74
+
"url": "https://nuxt.com/mcp"
75
+
},
76
+
"io.github.ChromeDevTools/chrome-devtools-mcp": {
77
+
"type": "stdio",
78
+
"command": "npx",
79
+
"args": [
80
+
"chrome-devtools-mcp@0.12.1"
81
+
],
82
+
"gallery": "https://api.mcp.github.com",
83
+
"version": "0.12.1"
84
+
}
85
+
},
86
+
"inputs": []
87
+
}
88
+
```
89
+
90
+
As you can see, I also added the Chrome DevTools MCP server to be able to let GitHub Copilot interact with the website in local development from the browser.
91
+
60
92
## Use Git Worktrees
61
93
94
+
With git worktrees, you can checkout multiple branches at the same time in different directories. That's something I was using before to review pull requests on a worktree to avoid swithing branches on the directory I was working on. In the context of my migration it was useful to have the previous version of the website available in a worktree while working in another directory.
95
+
96
+
However, when git worktrees really shine is when you want to parallelize work across multiple branches using multiple AI agents. Most of the AI assistants have built-in support for delegating tasks to agents in a specific worktree, so that every agent can work on its own branch without interfering with the others.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
100
+
That's something I really recommend using especially to avoid context switching. When you are focused on a specific task, and you spot something to fix that is not related to your current task, you can just delegate it to a background agent that would work in a different worktree without interrupting your flow or messing with your file.
66
101
67
-
```typescript [example.ts]
68
-
// Sample code block
69
-
const example ="Hello World";
70
-
console.log(example);
71
-
```
102
+
## Try different LLMs
72
103
73
-
## Another Section
104
+
Models keep improving and different companies are producing competitive new models. Don't hesitate to try new models, to use different types of models (faster, more accurate, etc.) depending on the context or the task. If you are not satisfied with what has implemented you favorite LLM on a task, try to do the same task again with a different model to get better results.
74
105
75
-
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
106
+
An interesting idea could be to use git worktrees to implement the same task with different models on different branches at the same time.
76
107
77
-
### Subsection
108
+
##WYPIWYG with an integrated browser
78
109
79
-
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.
0 commit comments