跳至正文
GitHub Blog · AI & ML· Christopher Harrison·· 2026-10-13AI 評分36

GitHub Copilot 入門:讓 Copilot 認識你程式碼庫的四種方法

GitHub Copilot app for Beginners: How to teach Copilot about your codebase

AI 導讀

GitHub 的 Copilot for Beginners 系列說明了四種為 Copilot 提供專案脈絡的方式:在 `.github/copilot-instructions.md` 中設定自訂指示,並在 `.github/instructions` 中放置路徑專屬檔案;在 `.github/skills` 中定義代理技能;在 `.github/agents` 中設定自訂代理;以及透過 MCP 伺服器將 Copilot 連接至 Playwright 等外部工具。文章逐一介紹每種機制及其組合方式,並指引讀者前往社群 Awesome Copilot 集合取得現成範例。

來源:GitHub Blog · AI & ML · github.blog