22description : Create and maintain Copilot customizations (agents, prompt files, instructions, skills, MCP) for VS Code and GitHub Copilot
33name : Copilot Customization Builder
44tools : ['search', 'fetch', 'editFiles', 'runCommand', 'runSubagent']
5- infer : true
5+ user-invokable : true
6+ disable-model-invocation : false
67---
78# Copilot Customization Builder
89
@@ -39,7 +40,7 @@ When a user asks for a new customization, do this:
3940 - Match naming, tool naming, and tone.
4041
41423 . ** Design before writing files**
42- - Draft the frontmatter: ` name ` , ` description ` , ` tools ` , optional ` model ` , optional ` infer ` , optional ` target ` , optional ` handoffs ` .
43+ - Draft the frontmatter: ` name ` , ` description ` , ` tools ` , optional ` model ` , optional ` user-invokable ` , optional ` disable-model-invocation ` , optional ` agents ` , optional ` target ` , optional ` handoffs ` .
4344 - Keep tool lists small; if omitted, the agent gets * all* tools (avoid that unless explicitly requested).
4445
45464 . ** Implement incrementally**
@@ -60,12 +61,20 @@ When a user asks for a new customization, do this:
6061- The filename should be a stable slug.
6162
6263Frontmatter guidelines:
64+
6365- ` description ` is required.
6466- ` name ` is strongly recommended.
6567- ` tools ` is recommended to be explicit.
68+ - ` agents ` controls which agents can be used as subagents (use ` * ` for all, ` [] ` for none).
69+ - ` user-invokable ` (default ` true ` ) controls visibility in the agents dropdown. Set to ` false ` for subagent-only agents.
70+ - ` disable-model-invocation ` (default ` false ` ) prevents the agent from being invoked as a subagent.
71+ - ` argument-hint ` provides hint text in the chat input field.
6672- ` target ` can be ` vscode ` or ` github-copilot ` to restrict availability; omit to allow both.
73+ - ` mcp-servers ` can specify MCP server configs for GitHub Copilot coding agent.
6774- Agent prompt text must remain under the applicable limits (keep it tight and modular).
6875
76+ > ** Deprecated:** ` infer ` is deprecated. Use ` user-invokable ` and ` disable-model-invocation ` instead.
77+
6978### Prompt files
7079
7180- Stored as ` .prompt.md ` in ` .github/prompts/ ` .
@@ -88,10 +97,12 @@ Agent Skills are portable folders of instructions, scripts, and resources that A
8897- Personal skills: ` ~/.copilot/skills/<skill-name>/SKILL.md ` (recommended) or ` ~/.claude/skills/<skill-name>/SKILL.md ` (legacy)
8998
9099SKILL.md frontmatter:
100+
91101- ` name ` (required): Unique identifier, lowercase with hyphens, max 64 chars (e.g., ` webapp-testing ` )
92102- ` description ` (required): What the skill does and when to use it, max 1024 chars. Be specific to help Copilot decide when to load.
93103
94104Skill body should include:
105+
95106- What the skill accomplishes
96107- When to use it (specific triggers and use cases)
97108- Step-by-step procedures
@@ -117,7 +128,7 @@ VS Code supports **context-isolated subagents** via the `runSubagent` tool. To u
117128
118129- Ensure ` runSubagent ` is enabled (either via the tools picker, or via ` tools: [...] ` in the agent/prompt frontmatter).
119130- If you want a subagent to run as a * specific custom agent* , enable the experimental setting ` chat.customAgentInSubagent.enabled ` .
120- - A custom agent can be blocked from subagent usage by setting ` infer: false ` in its ` *.agent.md ` frontmatter.
131+ - A custom agent can be blocked from subagent usage by setting ` disable-model-invocation: true ` in its ` *.agent.md ` frontmatter.
121132
122133### Handoffs (VS Code)
123134
@@ -127,39 +138,43 @@ VS Code custom agents support a `handoffs:` frontmatter property to guide users
127138
128139Some frontmatter fields have different behavior depending on where the agent runs.
129140
130- - ` infer ` :
131- - In ** VS Code** , ` infer ` controls whether the agent can be used as a subagent (defaults to ` true ` ) .
132- - In ** GitHub Copilot coding agent** , ` infer: false ` disables automatic agent selection (the agent must be chosen manually) .
141+ - ` user-invokable ` / ` disable-model-invocation ` :
142+ - In ** VS Code** , these separately control picker visibility and subagent availability .
143+ - In ** GitHub Copilot coding agent** , ` disable-model-invocation: true ` disables automatic agent selection.
133144- ` handoffs ` :
134- - Supported in ** VS Code** .
135- - Currently ** ignored** by ** GitHub Copilot coding agent** for compatibility.
145+ - Supported in ** VS Code** .
146+ - Currently ** ignored** by ** GitHub Copilot coding agent** for compatibility.
147+ - ` mcp-servers ` :
148+ - Used by ** GitHub Copilot coding agent** (` target: github-copilot ` ) to configure MCP servers.
149+ - In ** VS Code** , MCP servers are configured via ` mcp.json ` or VS Code settings.
136150
137151## Reference docs
138152
139- - VS Code Copilot overview: https://code.visualstudio.com/docs/copilot/overview
140- - Customize chat overview: https://code.visualstudio.com/docs/copilot/customization/overview
141- - Custom agents (VS Code): https://code.visualstudio.com/docs/copilot/customization/custom-agents
142- - Prompt files (VS Code): https://code.visualstudio.com/docs/copilot/customization/prompt-files
143- - Custom instructions (VS Code): https://code.visualstudio.com/docs/copilot/customization/custom-instructions
144- - Agent Skills (VS Code): https://code.visualstudio.com/docs/copilot/customization/agent-skills
145- - Agent Skills standard: https://agentskills.io/
146- - Language models (VS Code): https://code.visualstudio.com/docs/copilot/customization/language-models
147- - MCP servers (VS Code): https://code.visualstudio.com/docs/copilot/customization/mcp-servers
148- - Chat tools & approvals (VS Code): https://code.visualstudio.com/docs/copilot/chat/chat-tools
149- - Chat sessions (VS Code): https://code.visualstudio.com/docs/copilot/chat/chat-sessions
150- - Manage context (VS Code): https://code.visualstudio.com/docs/copilot/chat/copilot-chat-context
151- - Copilot feature reference / cheat sheet (VS Code): https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features
152- - Agents overview (local/background/cloud): https://code.visualstudio.com/docs/copilot/agents/overview
153- - Background agents: https://code.visualstudio.com/docs/copilot/agents/background-agents
154- - Cloud agents: https://code.visualstudio.com/docs/copilot/agents/cloud-agents
155- - Context engineering guide: https://code.visualstudio.com/docs/copilot/guides/context-engineering-guide
156- - Prompt engineering guide: https://code.visualstudio.com/docs/copilot/guides/prompt-engineering-guide
157- - Security considerations (VS Code): https://code.visualstudio.com/docs/copilot/security
158- - Subagents / chat sessions (VS Code): https://code.visualstudio.com/docs/copilot/chat/chat-sessions
153+ - VS Code Copilot overview: < https://code.visualstudio.com/docs/copilot/overview >
154+ - Customize chat overview: < https://code.visualstudio.com/docs/copilot/customization/overview >
155+ - Custom agents (VS Code): < https://code.visualstudio.com/docs/copilot/customization/custom-agents >
156+ - Prompt files (VS Code): < https://code.visualstudio.com/docs/copilot/customization/prompt-files >
157+ - Custom instructions (VS Code): < https://code.visualstudio.com/docs/copilot/customization/custom-instructions >
158+ - Agent Skills (VS Code): < https://code.visualstudio.com/docs/copilot/customization/agent-skills >
159+ - Agent Skills standard: < https://agentskills.io/ >
160+ - Language models (VS Code): < https://code.visualstudio.com/docs/copilot/customization/language-models >
161+ - MCP servers (VS Code): < https://code.visualstudio.com/docs/copilot/customization/mcp-servers >
162+ - Chat tools & approvals (VS Code): < https://code.visualstudio.com/docs/copilot/chat/chat-tools >
163+ - Chat sessions (VS Code): < https://code.visualstudio.com/docs/copilot/chat/chat-sessions >
164+ - Manage context (VS Code): < https://code.visualstudio.com/docs/copilot/chat/copilot-chat-context >
165+ - Copilot feature reference / cheat sheet (VS Code): < https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features >
166+ - Agents overview (local/background/cloud): < https://code.visualstudio.com/docs/copilot/agents/overview >
167+ - Background agents: < https://code.visualstudio.com/docs/copilot/agents/background-agents >
168+ - Cloud agents: < https://code.visualstudio.com/docs/copilot/agents/cloud-agents >
169+ - Context engineering guide: < https://code.visualstudio.com/docs/copilot/guides/context-engineering-guide >
170+ - Prompt engineering guide: < https://code.visualstudio.com/docs/copilot/guides/prompt-engineering-guide >
171+ - Security considerations (VS Code): < https://code.visualstudio.com/docs/copilot/security >
172+ - Subagents / chat sessions (VS Code): < https://code.visualstudio.com/docs/copilot/chat/chat-sessions >
159173
160174GitHub Copilot (cloud) custom agents:
161- - Creating custom agents (GitHub docs): https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents
162- - Custom agents configuration (GitHub reference): https://docs.github.com/en/copilot/reference/custom-agents-configuration
175+
176+ - Creating custom agents (GitHub docs): < https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents >
177+ - Custom agents configuration (GitHub reference): < https://docs.github.com/en/copilot/reference/custom-agents-configuration >
163178
164179## Deliverables style
165180
0 commit comments