Authoritative reference for VS Code Copilot customization mechanisms: instructions, prompt files, custom agents, agent skills, MCP servers, hooks, and plugins. Use when deciding which customization type to use, creating new .instructions.md/.prompt.md/.agent.md/SKILL.md/mcp.json files from scratch, or debugging why a customization is not loading. DO NOT USE FOR: routine file edits where the format is already known.
94
92%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Quick-reference for the full VS Code GitHub Copilot customization surface.
Deep-dive content lives in references/ — load on demand, not all at once.
Do NOT load this skill for routine edits to existing files where you already know the format.
For enforcement rules, use the instruction files directly (they auto-load via applyTo globs).
I want to...
├── Define coding standards for ALL files
│ → .github/copilot-instructions.md (always-on)
│
├── Define rules for SPECIFIC file types (by glob)
│ → .instructions.md with applyTo (auto-loaded when files match)
│
├── Store reference content agents read ON DEMAND (not always-on)
│ → SKILL.md with references/ directory
│
├── Create a reusable task I invoke manually with /name
│ → .prompt.md (slash command)
│
├── Create a specialized AI persona with its own tools
│ → .agent.md (custom agent)
│
├── Connect to external tools, APIs, or databases
│ → mcp.json (MCP server)
│
├── Run code at agent lifecycle points (block tools, auto-format)
│ → hooks/*.json (Preview — verify with live docs)
│
└── Bundle multiple customizations for distribution
→ agent plugin (Preview — verify with live docs)| # | Mechanism | File Type | Loading | Scope | Portability |
|---|---|---|---|---|---|
| 1 | Custom Instructions | .instructions.md | Auto (glob match) | Workspace / User | VS Code |
| 2 | Prompt Files | .prompt.md | Manual (/name) | Workspace / User | VS Code |
| 3 | Custom Agents | .agent.md | Manual (picker) | Workspace / User | VS Code + GitHub |
| 4 | Agent Skills | SKILL.md | Auto (on-demand) | Workspace / User | Cross-agent standard |
| 5 | MCP Servers | mcp.json | Auto (on start) | Workspace / User | MCP standard |
| 6 | Hooks | *.json | Auto (on event) | Workspace / User | VS Code + Claude (Preview) |
| 7 | Agent Plugins | marketplace | Auto (on install) | User | VS Code + CLI (Preview) |
| Dimension | Instructions | Skills | Agents | Prompts |
|---|---|---|---|---|
| Purpose | Coding rules/standards | Specialized capabilities | AI personas with tools | Reusable task commands |
| Contains tools? | No | No (references only) | Yes (tool list) | Yes (tool list) |
| Always loaded? | Yes (via glob) | No (on-demand) | No (manual select) | No (manual /invoke) |
| Can include scripts? | No | Yes (scripts/) | No | No |
| Can include resources? | No | Yes (references/, assets/) | No | No |
| Context cost | ~300-600 tok (est.) | ~500-2000 tok (est.) | ~500-1500 tok (est.) | ~200-500 tok (est.) |
| Portability | VS Code only | Open standard | VS Code + GitHub | VS Code only |
Token estimates are approximate. Run the
context-optimizerskill for measured profiling.
.github/skills/{name}/SKILL.md"tools listThese instruction files auto-load for matching files. This skill references but does NOT duplicate them:
| Instruction File | Glob | Enforces |
|---|---|---|
agent-authoring.instructions.md | **/*.agent.md, **/*.prompt.md | Agent authoring + research-first mandate |
agent-skills.instructions.md | **/.github/skills/**/SKILL.md | Skill frontmatter, body limits |
instructions.instructions.md | **/*.instructions.md | Instruction file format, applyTo rules |
context-optimization.instructions.md | Agents, skills, instructions | Context budget, hand-off rules |
Load only the reference file relevant to your current task:
| Reference | When to Load |
|---|---|
| custom-instructions.md | Creating/debugging .instructions.md or copilot-instructions.md |
| prompt-files.md | Creating/debugging .prompt.md files |
| custom-agents.md | Creating/debugging .agent.md files |
| agent-skills.md | Creating/debugging SKILL.md files |
| mcp-servers.md | Configuring mcp.json or MCP servers |
| hooks.md | Working with agent hooks (Preview) |
| agent-plugins.md | Working with agent plugins (Preview) |
Do NOT load all references. Most tasks need only 1-2 reference files. Decision tree questions and mechanism comparisons can be answered from this SKILL.md alone.
Content sourced from official VS Code docs (2026-03-08). Each reference file includes
a "Verify Freshness" section with the URL to check for updates.
Freshness checks are part of the Quarterly Context Audit in AGENTS.md.
ec7b8ff
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.