pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://docs.github.com/zh/copilot/reference/customization-cheat-sheet

=""/>
Skip to main content

Copilot自定义指南

比较 GitHub Copilot 的不同自定义选项。

GitHub 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 location
Custom 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 GitHub
Prompt filesReusable, standalone prompt template with input variables.github/prompts/*.prompt.md
Custom agentsSpecialist persona with its own instructions, tool restrictions, and context.github/agents/AGENT-NAME.md (repo), agents/AGENT-NAME.md in .github-private repo (org/enterprise), or user profile
SubagentsSeparate 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 (project) or ~/.copilot/skills/<skill-name>/SKILL.md (personal)
MCP serversConnection to external systems, APIs, and databasesmcp.json (path varies by IDE), repo settings on GitHub (coding agent), 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 cases
Custom instructionsAutomaticStandards, guidelines, or expectations that apply broadly across a contextEnforce coding standards, accessibility rules, review checklists
Prompt 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 checklist
Custom 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 agent
SubagentsAutomatic, or reference a subagent directly in your promptComplex subtasks that should run in isolation from the main agentCodebase research, running test suites
Agent 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 drafting
MCP serversAutomatic, 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)

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 CLI
Custom instructionsPPP
Prompt filesPP
Custom agentsPPP
SubagentsPPP
Agent skillsP
MCP servers

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.

Further reading

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy