本模組聚焦在 Windows 11 筆電上的 Vibe Coding 與 AI Agent 工作環境建置。課堂中會先用一鍵安裝腳本完成主要工具,再透過幾個小型驗證任務確認 VS Code、Python、Node.js、Codex CLI 與 GitHub CLI 都能正常運作。
完成本模組後,教師應能:
gh) 以瀏覽器登入 GitHub,完成專案 clone、推送與 GitHub Pages 部署。| 項目 | 說明 |
|---|---|
| 個人筆電 | Windows 11,具系統管理 (安裝軟體) 權限 |
| 網路 | 可連線下載安裝套件與存取 AI 服務 |
| ChatGPT 帳號 | 免費或 ChatGPT Plus 帳號,供 Codex CLI 與 VS Code Codex 擴充套件共用登入 |
| GitHub 帳號 | 供 GitHub CLI 登入、clone 專案與部署 GitHub Pages 使用 |
| 基本操作 | 能開啟終端機 (terminal) 並輸入指令 |
本工作坊會同時開啟 VS Code、Node.js、Python、終端機與瀏覽器登入頁面,建議筆電至少符合下列規格。標示「建議」者為較順暢的體驗門檻。
| 項目 | 最低需求 | 建議 |
|---|---|---|
| 作業系統 | Windows 11 (64 位元),並已安裝 App Installer (winget) | Windows 11 且更新至最新版 |
| 處理器 | 64 位元 x64 雙核心 | 四核心以上 |
| 記憶體 (RAM) | 8 GB | 16 GB |
| 可用磁碟空間 | 10 GB | 20 GB 以上 |
| 權限 | 具系統管理員權限 (可安裝軟體、允許 UAC) | 同左 |
| 網路 | 穩定寬頻,可存取 GitHub 與 AI 服務 | 同左 |
| 瀏覽器 | Microsoft Edge 或 Chrome (供登入流程使用) | 同左 |
8 GB 記憶體可完成所有任務,但同時開啟 VS Code、瀏覽器與多個終端機時,16 GB 會明顯較順暢。磁碟空間需求包含工具鏈、專案的 node_modules 與 Python 套件。
Windows 11 一鍵安裝腳本與課後指南會在筆電上安裝下列工具:
| 工具 | 用途 |
|---|---|
| VS Code | 程式碼編輯器,也是日後操作 AI Agent 的主要視窗 |
| Git | 版本管理工具,許多 AI 工具會用到 |
| Node.js + npm | JavaScript 執行環境,用來啟動 local web server 與安裝 Codex CLI |
| uv (Python) | 管理 Python 與套件,安裝/更新/移除都很簡單 |
| Codex CLI | OpenAI 的 AI Agent 命令列工具,可用免費或 ChatGPT Plus 帳號 |
| GitHub CLI (gh) | 用瀏覽器登入 GitHub,clone 專案、推送與部署 GitHub Pages |
| VS Code 擴充套件 | Python、Jupyter、GitLens、ESLint,以及 Codex 編程代理 (openai.chatgpt) |
setup-windows.bat 一鍵安裝優先使用本模組提供的 setup-windows.bat。這個批次檔會檢查 winget,再依序安裝 VS Code、Git、Node.js LTS、uv、GitHub CLI、Codex CLI 與常用 VS Code 擴充套件。腳本可重複執行;已安裝的項目會自動略過。
建議操作:
Downloads。& "$HOME\Downloads\setup-windows.bat"
"%USERPROFILE%\Downloads\setup-windows.bat"
code --version
git --version
node --version
npm --version
uv --version
gh --version
codex --version
若腳本顯示 winget not found,請先安裝或更新 Windows 的 App Installer,完成後再重新執行批次檔。
若一鍵安裝失敗,或教師的筆電受學校 IT 權限限制,可改用手動安裝。建議仍優先使用 winget 指令;若 winget 不可用,再從官方下載頁面安裝。
| 工具 | 官方下載/說明 | 建議指令或手動操作 |
|---|---|---|
| App Installer / winget | https://learn.microsoft.com/windows/msix/app-installer/install-update-app-installer | Windows 11 通常已內建。若winget --version 無法執行,請從 Microsoft Store 安裝或更新 App Installer。 |
| VS Code | https://code.visualstudio.com/download | winget install --id Microsoft.VisualStudioCode --source winget --exact |
| Git for Windows | https://git-scm.com/downloads/win | winget install --id Git.Git --source winget --exact |
| Node.js LTS + npm | https://nodejs.org/en/download | winget install --id OpenJS.NodeJS.LTS --source winget --exact |
| uv | https://docs.astral.sh/uv/getting-started/installation/ | winget install --id astral-sh.uv --source winget --exact |
GitHub CLI (gh) |
https://cli.github.com/ | winget install --id GitHub.cli --source winget --exact |
| Codex CLI | https://developers.openai.com/codex/cli | 安裝 Node.js 後執行npm install -g "@openai/codex",再執行 codex 登入。 |
VS Code 擴充套件可在 VS Code 左側 Extensions 視窗搜尋安裝,也可在終端機逐行執行:
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension eamodio.gitlens
code --install-extension dbaeumer.vscode-eslint
code --install-extension openai.chatgpt
手動安裝後,同樣需要關閉並重新開啟終端機,再執行版本檢查:
code --version
git --version
node --version
npm --version
uv --version
gh --version
codex --version
codex 並以瀏覽器登入免費或 ChatGPT Plus 帳號;同一帳號可同時用於 VS Code 的 Codex 擴充套件。hello.txt),確認 AI Agent 能接收指令、產生檔案並回報結果。gh auth login,全程以瀏覽器與一次性代碼登入,不需產生 SSH 金鑰或於終端機輸入密碼,並一次設定好 git 認證與提交身分 (user.name / user.email)。gh repo clone 下載專案,以及用 gh repo create … --push 與 GitHub Pages 把靜態網站發佈成公開網址。| 任務 | 內容 | 驗證重點 |
|---|---|---|
| Python 驗證 | 以 uv 建立專案並安裝 openpyxl、python-docx,讀取 Excel、整理資料並輸出新的 Excel 檔案 | 套件與檔案處理可運作 |
| Word 驗證 | 讀取 Word 文件內容,並產生一份修改後的 Word 檔案 | Office 文件處理可運作 |
| JavaScript 驗證 | 以npx http-server 啟動簡單的 local web server,確認 client-side 與 server-side 程式正常執行 |
Node.js 與 local host 可運作 |
| Codex 驗證 | 請 Codex 建立簡單文字檔、修改範例程式或整理指定資料 | AI Agent 可讀寫工作區檔案並回報結果 |
本模組聚焦在 Windows 11 筆電上的 Vibe Coding 與 AI Agent 工作環境建置。課堂中會先用一鍵安裝腳本完成主要工具,再透過幾個小型驗證任務確認 VS Code、Python、Node.js、Codex CLI 與 GitHub CLI 都能正常運作。
完成本模組後,教師應能:
gh) 以瀏覽器登入 GitHub,完成專案 clone、推送與 GitHub Pages 部署。| 項目 | 說明 |
|---|---|
| 個人筆電 | Windows 11,具系統管理 (安裝軟體) permissions |
| network | 可連線下載安裝套件與存取 AI 服務 |
| ChatGPT 帳號 | 免費或 ChatGPT Plus 帳號,供 Codex CLI 與 VS Code Codex 擴充套件共用登入 |
| GitHub 帳號 | 供 GitHub CLI 登入、clone 專案與部署 GitHub Pages 使用 |
| 基本操作 | 能開啟終端機 (terminal) 並輸入指令 |
本工作坊會同時開啟 VS Code、Node.js、Python、終端機與瀏覽器登入頁面,建議筆電至少符合下列規格。標示「建議」者為較順暢的體驗門檻。
| 項目 | 最低需求 | suggestion |
|---|---|---|
| 作業系統 | Windows 11 (64 位元),並已安裝 App Installer (winget) | Windows 11 且更新至最新版 |
| 處理器 | 64 位元 x64 雙核心 | 四核心以上 |
| 記憶體 (RAM) | 8 GB | 16 GB |
| 可用磁碟空間 | 10 GB | 20 GB 以上 |
| permissions | 具系統管理員permissions (可安裝軟體、允許 UAC) | 同左 |
| network | 穩定寬頻,可存取 GitHub 與 AI 服務 | 同左 |
| 瀏覽器 | Microsoft Edge 或 Chrome (供登入workflow使用) | 同左 |
8 GB 記憶體可完成所有任務,但同時開啟 VS Code、瀏覽器與多個終端機時,16 GB 會明顯較順暢。磁碟空間需求包含工具鏈、專案的 node_modules 與 Python 套件。
Windows 11 一鍵安裝腳本與課後指南會在筆電上安裝下列工具:
| 工具 | 用途 |
|---|---|
| VS Code | 程式碼編輯器,也是日後操作 AI Agent 的主要視窗 |
| Git | 版本管理工具,許多 AI 工具會用到 |
| Node.js + npm | JavaScript 執行環境,用來啟動 local web server 與安裝 Codex CLI |
| uv (Python) | 管理 Python 與套件,安裝/更新/移除都很簡單 |
| Codex CLI | OpenAI 的 AI Agent 命令列工具,可用免費或 ChatGPT Plus 帳號 |
| GitHub CLI (gh) | 用瀏覽器登入 GitHub,clone 專案、推送與部署 GitHub Pages |
| VS Code 擴充套件 | Python、Jupyter、GitLens、ESLint,以及 Codex 編程代理 (openai.chatgpt) |
優先使用本模組提供的 setup-windows.bat。這個批次檔會檢查 winget,再依序安裝 VS Code、Git、Node.js LTS、uv、GitHub CLI、Codex CLI 與常用 VS Code 擴充套件。腳本可重複執行;已安裝的項目會自動略過。
建議操作:
Downloads。& "$HOME\Downloads\setup-windows.bat"
"%USERPROFILE%\Downloads\setup-windows.bat"
code --version
git --version
node --version
npm --version
uv --version
gh --version
codex --version
若腳本顯示 winget not found,請先安裝或更新 Windows 的 App Installer,完成後再重新執行批次檔。
若一鍵安裝失敗,或教師的筆電受學校 IT 權限限制,可改用手動安裝。建議仍優先使用 winget 指令;若 winget 不可用,再從官方下載頁面安裝。
| 工具 | 官方下載/說明 | suggestion指令或手動操作 |
|---|---|---|
| App Installer / winget | https://learn.microsoft.com/windows/msix/app-installer/install-update-app-installer | Windows 11 通常已內建。若winget --version 無法執行,請從 Microsoft Store 安裝或更新 App Installer。 |
| VS Code | https://code.visualstudio.com/download | winget install --id Microsoft.VisualStudioCode --source winget --exact |
| Git for Windows | https://git-scm.com/downloads/win | winget install --id Git.Git --source winget --exact |
| Node.js LTS + npm | https://nodejs.org/en/download | winget install --id OpenJS.NodeJS.LTS --source winget --exact |
| uv | https://docs.astral.sh/uv/getting-started/installation/ | winget install --id astral-sh.uv --source winget --exact |
GitHub CLI (gh) |
https://cli.github.com/ | winget install --id GitHub.cli --source winget --exact |
| Codex CLI | https://developers.openai.com/codex/cli | 安裝 Node.js 後執行npm install -g "@openai/codex",再執行 codex 登入。 |
VS Code 擴充套件可在 VS Code 左側 Extensions 視窗搜尋安裝,也可在終端機逐行執行:
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension eamodio.gitlens
code --install-extension dbaeumer.vscode-eslint
code --install-extension openai.chatgpt
手動安裝後,同樣需要關閉並重新開啟終端機,再執行版本檢查:
code --version
git --version
node --version
npm --version
uv --version
gh --version
codex --version
codex 並以瀏覽器登入免費或 ChatGPT Plus 帳號;同一帳號可同時用於 VS Code 的 Codex 擴充套件。hello.txt),確認 AI Agent 能接收指令、產生檔案並回報結果。gh auth login,全程以瀏覽器與一次性代碼登入,不需產生 SSH 金鑰或於終端機輸入密碼,並一次settings好 git 認證與提交身分 (user.name / user.email)。gh repo clone 下載專案,以及用 gh repo create … --push 與 GitHub Pages 把靜態網站發佈成公開網址。| 任務 | Content | 驗證重點 |
|---|---|---|
| Python 驗證 | 以 uv 建立專案並安裝 openpyxl、python-docx,讀取 Excel、整理data並輸出新的 Excel 檔案 | 套件與檔案處理可運作 |
| Word 驗證 | 讀取 Word 文件Content,並產生一份修改後的 Word 檔案 | Office 文件處理可運作 |
| JavaScript 驗證 | 以npx http-server 啟動簡單的 local web server,確認 client-side 與 server-side 程式正常執行 |
Node.js 與 local host 可運作 |
| Codex 驗證 | 請 Codex 建立簡單文字檔、修改範例程式或整理指定data | AI Agent 可讀寫workspace檔案並回報結果 |