GitHub 官方:Copilot app 新手篇——用 instructions、skills、custom agents、MCP 教 Copilot 認識你的程式庫
GitHub Copilot app for Beginners: How to teach Copilot about your codebase
摘要分析
GitHub 2026-10-12 的新手系列文教你讓 Copilot 遵守團隊慣例而不用每次重講。四種客製:.github/copilot-instructions.md 放全 repo 規範,.github/instructions 用 applyTo 限定檔案類型;.github/skills/<名稱>/SKILL.md 打包可重複程序;.github/agents 定義跨多檔的專門 agent;再接 Playwright 等 MCP server 讓 Copilot 真的開瀏覽器驗證介面。與 Claude Code 的 CLAUDE.md/skills 概念一致,是跨工具通用的設定觀念。
- 建 .github/copilot-instructions.md 放全 repo 規範
- .github/instructions/*.md 用 applyTo 限定檔案類型
- .github/skills/<name>/SKILL.md 打包重複程序
- .github/agents 定義專門 agent
- 接 Playwright MCP 讓 Copilot 開瀏覽器驗證
In this 2026-10-12 installment of the GitHub Copilot app for Beginners series, Christopher Harrison shows how to give Copilot project context so it follows team conventions without repeated explanations. Four mechanisms: a .github/copilot-instructions.md for repository-wide standards (architecture, naming, testing), with path-specific files under .github/instructions using an applyTo field; agent skills, each in its own folder under .github/skills with a SKILL.md describing when to use it and which scripts to run; custom agents defined under .github/agents for recurring multi-file work such as accessibility reviews; and MCP servers such as Playwright so Copilot can open and interact with the running app in a browser. He recommends starting with a single convention and combining the pieces over time. The concepts mirror CLAUDE.md and skills in Claude Code, making this a tool-agnostic lesson.
- Create .github/copilot-instructions.md
- Path-specific instructions with applyTo
- Skills under .github/skills with SKILL.md
- Custom agents under .github/agents
- Connect Playwright MCP for browser verification
關鍵字:GitHub Copilotcopilot-instructions.mdskillscustom agentsMCP
來源原文:https://github.blog/ai-and-ml/github-copilot/github-copilot-app-for-beginners-how-to-teach-copilot-about-your-codebase/
本頁為報導內容的摘要與分析,版權屬原媒體所有;請以原文為準。
