agentleFS
jonathan-vellajonathan-vella/bmit-2026/.github/skills/copilot-customization/SKILL.md

copilot-customization

Skill3 starsChanged 8 months agoMITArchived repositoryView on GitHub

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.

The file

Files
SKILL.md

Copilot Customization

Quick-reference for the full VS Code GitHub Copilot customization surface. Deep-dive content lives in references/ — load on demand, not all at once.


When to Use This Skill

  • Deciding which customization mechanism fits a new requirement
  • Creating a new customization file from scratch (need the frontmatter schema)
  • Debugging why an instruction/skill/agent/prompt is not loading
  • Reviewing a customization file for spec compliance
  • Comparing mechanisms (instructions vs skills vs agents vs prompts)

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).

Quick Decision Tree

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)

The 7 Customization Mechanisms

#MechanismFile TypeLoadingScopePortability
1Custom Instructions.instructions.mdAuto (glob match)Workspace / UserVS Code
2Prompt Files.prompt.mdManual (/name)Workspace / UserVS Code
3Custom Agents.agent.mdManual (picker)Workspace / UserVS Code + GitHub
4Agent SkillsSKILL.mdAuto (on-demand)Workspace / UserCross-agent standard
5MCP Serversmcp.jsonAuto (on start)Workspace / UserMCP standard
6Hooks*.jsonAuto (on event)Workspace / UserVS Code + Claude (Preview)
7Agent PluginsmarketplaceAuto (on install)UserVS Code + CLI (Preview)

Comparison: Instructions vs Skills vs Agents vs Prompts

DimensionInstructionsSkillsAgentsPrompts
PurposeCoding rules/standardsSpecialized capabilitiesAI personas with toolsReusable task commands
Contains tools?NoNo (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?NoYes (scripts/)NoNo
Can include resources?NoYes (references/, assets/)NoNo
Context cost~300-600 tok (est.)~500-2000 tok (est.)~500-1500 tok (est.)~200-500 tok (est.)
PortabilityVS Code onlyOpen standardVS Code + GitHubVS Code only

Token estimates are approximate. Run the context-optimizer skill for measured profiling.

How They Interact

  1. Tool list priority: Prompt tools > Agent tools > Default agent tools
  2. Instruction combining: Multiple instruction files are merged (no guaranteed order)
  3. Skill progressive loading: Discovery (name+description) → Instructions (SKILL.md body) → Resources (references/)
  4. Agent + Skill: Agents can reference skills via "Read .github/skills/{name}/SKILL.md"
  5. MCP tools: Available to agents and prompts via their tools list

Existing Enforcement Rules

These instruction files auto-load for matching files. This skill references but does NOT duplicate them:

Instruction FileGlobEnforces
agent-authoring.instructions.md**/*.agent.md, **/*.prompt.mdAgent authoring standards
agent-skills.instructions.md**/.github/skills/**/SKILL.mdSkill frontmatter, body limits
instructions.instructions.md**/*.instructions.mdInstruction file format, applyTo rules
agent-research-first.instructions.mdAgents, output, skillsResearch-before-implementation mandate
context-optimization.instructions.mdAgents, skills, instructionsContext budget, hand-off rules

Reference Index

Load only the reference file relevant to your current task:

ReferenceWhen to Load
custom-instructions.mdCreating/debugging .instructions.md or copilot-instructions.md
prompt-files.mdCreating/debugging .prompt.md files
custom-agents.mdCreating/debugging .agent.md files
agent-skills.mdCreating/debugging SKILL.md files
mcp-servers.mdConfiguring mcp.json or MCP servers
hooks.mdWorking with agent hooks (Preview)
agent-plugins.mdWorking 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.

Freshness

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.