跳到正文
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` 中定义 agent skills;在 `.github/agents` 中配置自定义 agent;以及通过 MCP 服务器将 Copilot 连接到 Playwright 等外部工具。文章逐一讲解了每种机制及其组合方式,并引导读者前往社区 Awesome Copilot 合集获取现成示例。

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