翻篇收录说明
翻篇网页快照

Copilot customization cheat sheet - GitHub Docs

https://docs.github.com/en/copilot/reference/customization-cheat-sheet

最近抓取:2026-12-03 01:29:33(北京时间)

最近内容变化:2026-11-30 05:01:17(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Compare the different customization options for GitHub Copilot.

正文摘录

In this articleCopilot customization cheat sheetCompare the different customization options for GitHub Copilot.Copy markdownIn this articleGitHub Copilot offers several customization features that let you tailor its behavior to your workflow, your team's standards, and your project's needs. Use the tables below to find the right one for your use case. Feature overview This table shows what each customization feature is and where it lives. FeatureWhat it isFilename and locationCustom instructionsAlways-on context that automatically applies to every interaction within its defined scope.github/copilot-instructions.md (repo-wide), .github/instructions/*.instructions.md (path-specific), AGENTS.md (third-party agents), or personal/org settings via UI on GitHubPrompt filesReusable, standalone prompt template with input variables.github/prompts/*.prompt.mdCustom agentsSpecialist persona with its own instructions, tool restrictions, and context.github/agents/AGENT-NAME.md (repository), /agents/AGENT-NAME.md in the organization's .github or .github-private repository (org-level), /agents/AGENT-NAME.md in a designated .github-private repository (enterprise-level), or user profileSubagentsSeparate agent spawned by the main agent to handle delegated work in an isolated contextN/A (runtime process, not a user-configured file)Agent skillsFolder of instructions, scripts, and resources that Copilot loads when relevant to a task.github/skills/<skill-name>/SKILL.md, .claude/skills/<skill-name>/SKILL.md, or .agents/skills/<skill-name>/SKILL.md (project); ~/.copilot/skills/<skill-name>/SKILL.md or ~/.agents/skills/<skill-name>/SKILL.md (personal)HooksCustom shell commands that execute deterministically at specific points in an agent's workflow.github/hooks/*.jsonModel Context Protocol (MCP)Connection to external systems, APIs, and databasesmcp.json (path varies by IDE), repository MCP settings on GitHub (applies to Copilot in the cloud and Copilot code review), or mcp-servers property in custom agent configurations Usage comparison This table helps you decide which customization feature to use. FeatureHow to triggerBest forExample use casesCustom instructionsAutomaticStandards, guidelines, or expectations that apply broadly across a contextEnforce coding standards, accessibility rules, review checklistsPrompt filesManual: reference directly in chat or use the prompt file pickerFocused single tasks you run once with different inputs each timeGenerate unit tests, run a code review checklistCustom agentsManual: select from the agent dropdown in your IDE, on GitHub, or in Copilot CLIProjects or processes with distinct stages that need specialized capabilities or strict handoffsReact reviewer agent, read-only auditing agentSubagentsAutomatic, or reference a subagent directly in your promptComplex subtasks that should run in isolation from the main agentCodebase research, running test suitesAgent skillsAutomatic: chosen by Copilot when relevant to your promptMulti-step workflows with bundled assets that should be loaded as neededGitHub Actions failure debugging, deployment procedures, release note draftingHooksAutomatic: at configured lifecycle eventsTasks that need to run at a specific point in the agent lifecycle, with guaranteed executionRun a formatter after every file edit, approve or deny tool executions, prevent credential leaks with secret scanningModel Context Protocol (MCP)Automatic, or ask for a specific tool by nameTasks that require access to external tools or real-time dataManage issues and PRs (GitHub MCP server), automate browser testing (Playwright MCP server)Copilot connectorsAutomatic when relevant, or ask for a connected serviceTasks that combine repository context with external project informationFind requirements in connected documents, then propose code changes and tests IDE and surface support This table shows which customization features are supported in each IDE and surface. For the full Copilot feature matrix, see Copilot feature matrix. GitHub recommends using the latest stable IDE, Copilot CLI, and Copilot extension versions to get the best Copilot experience. Key: ✓ = supported ✗ = not supported P = under preview FeatureVS CodeVisual StudioJetBrains IDEsEclipseXcodeGitHub .comCopilot CLICustom instructions✓✓PPP✓✓Prompt files✓✓P✗P✗✗Custom agents✓✓PPP✓✓Subagents✓✗PPP✗✓Agent skills✓✓P✗✗✓✓HooksP✗✗✗✗✓✓MCP servers✓✓✓✓✓✓✓ Connectors are in public preview in the GitHub Copilot app, GitHub Copilot CLI, Visual Studio Code, Copilot in the cloud, and GitHub Mobile. In Copilot in the cloud, they work in sessions running in a cloud sandbox, but not in sessions running on GitHub Actions. See Copilot connectors. For a detailed breakdown of which types of custom instructions are supported in each IDE and surface, see Support for different types of custom instructions. Agent Customizations editor in JetBrains IDEs In JetBrains IDEs, you can use the Agent Customizations editor to manage multiple Copilot customizations from one place. In the GitHub Copilot Chat panel, click the settings icon in the top-right, then click Customizations. From the editor, you can: View and edit custom agents Manage reusable skills Configure workspace or personal instructions Manage prompt files Choose Workspace customizations for the current project or Personal customizations that follow you across projects For steps to create repository instructions and prompt files in JetBrains IDEs, see Adding repository custom instructions for GitHub Copilot in your IDE. Further reading Customization library—a curated collection of examples