Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
microsoft avatar

Agent Customization

  • 51 installs
  • 10k repo stars
  • Updated May 20, 2026
  • microsoft/vscode-copilot-chat

agent-customization is a VS Code workflow skill for creating, updating, and debugging copilot instructions, prompts, agents, hooks, and SKILL.md files.

About

The agent-customization skill is a VS Code workflow for creating, updating, reviewing, fixing, or debugging agent customization files such as copilot-instructions.md, AGENTS.md, .instructions.md, .prompt.md, .agent.md, SKILL.md, and hooks JSON. It routes among primitives: workspace instructions for always-on project rules, file instructions scoped by applyTo globs, MCP for external systems, hooks for deterministic lifecycle shell commands, custom agents for isolated subagent workflows, prompts for single parameterized tasks, and skills for on-demand bundled workflows with scripts or templates. A four-step creation process determines workspace versus user profile scope, selects the right primitive via a decision flow table, writes files at documented paths with required YAML frontmatter, and validates description presence and syntax. Edge cases distinguish instructions from skills, skills from prompts, skills from custom agents, and hooks from instructions. Pitfalls warn that description is the discovery surface, YAML frontmatter silent failures hide errors, and applyTo ** loads instructions on every interaction. Triggers include saving coding preferences, troubleshooting ignored s.

  • Decision flow table picks instructions, prompts, agents, hooks, or skills.
  • Documents file locations for workspace and user-level customization.
  • Four-step creation process with scope, primitive, file, and validation.
  • Edge-case guidance for instructions versus skills and hooks versus rules.
  • Warns that description and applyTo patterns control discovery and context.

Agent Customization by the numbers

  • 51 all-time installs (skills.sh)
  • Ranked #7,162 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

agent-customization capabilities & compatibility

Capabilities
primitive decision flow for instructions prompts · workspace and user level file path guidance · yaml frontmatter validation and creation checkli · applyto pattern and tool restriction configurati · edge case routing between customization primitiv
Use cases
orchestration · planning
From the docs

What agent-customization says it does

Description is the discovery surface.
SKILL.md
YAML frontmatter silent failures.
SKILL.md
Create, update, review, fix, or debug VS Code agent customization files
SKILL.md
npx skills add https://github.com/microsoft/vscode-copilot-chat --skill agent-customization

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs51
repo stars10k
Security audit3 / 3 scanners passed
Last updatedMay 20, 2026
Repositorymicrosoft/vscode-copilot-chat

How do I create or fix VS Code agent customization files so instructions and skills are discovered and applied correctly?

Create, update, review, fix, or debug VS Code agent customization files including instructions, prompts, agents, hooks, and skills.

Who is it for?

Teams configuring VS Code Copilot instructions, skills, hooks, and custom agents with applyTo patterns and tool restrictions.

Skip if: Skip for general coding questions, runtime error diagnosis, MCP server setup, or VS Code extension development.

When should I use this skill?

User saves coding preferences, troubleshoots ignored instructions, configures applyTo patterns, or fixes YAML frontmatter syntax.

What you get

Correctly placed customization files with valid YAML frontmatter, meaningful descriptions, and the right primitive for the task.

Files

SKILL.mdMarkdownGitHub ↗

Agent Customization

Decision Flow

PrimitiveWhen to Use
Workspace InstructionsAlways-on, applies everywhere in the project
File InstructionsExplicit via applyTo patterns, or on-demand via description
MCPIntegrates external systems, APIs, or data
HooksDeterministic shell commands at agent lifecycle points (block tools, auto-format, inject context)
Custom AgentsSubagents for context isolation, or multi-stage workflows with tool restrictions
PromptsSingle focused task with parameterized inputs
SkillsOn-demand workflow with bundled assets (scripts/templates)

Quick Reference

Consult the reference docs for templates, domain examples, advanced frontmatter options, asset organization, anti-patterns, and creation checklists. If the references are not enough, load the official documentation links for each primitive.

TypeFileLocationReference
Workspace Instructionscopilot-instructions.md, AGENTS.md.github/ or rootLink
File Instructions*.instructions.md.github/instructions/Link
Prompts*.prompt.md.github/prompts/Link
Hooks*.json.github/hooks/Link
Custom Agents*.agent.md.github/agents/Link
SkillsSKILL.md.github/skills/<name>/, .agents/skills/<name>/, .claude/skills/<name>/Link

User-level: {{VSCODE_USER_PROMPTS_FOLDER}}/ (.prompt.md, .instructions.md, *.agent.md; not skills) Customizations roam with user's settings sync

Creation Process

If you need to explore or validate patterns in the codebase, use a read-only subagent. If the ask-questions tool is available, use it to interview the user and clarify requirements.

Follow these steps when creating any customization file.

1. Determine Scope

Ask the user where they want the customization:

  • Workspace: For project-specific, team-shared customizations → .github/ folder
  • User profile: For personal, cross-workspace customizations → {{VSCODE_USER_PROMPTS_FOLDER}}/

2. Choose the Right Primitive

Use the Decision Flow above to select the appropriate file type based on the user's need.

3. Create the File

Create the file directly at the appropriate path:

  • Use the location tables in each reference file
  • Include required frontmatter as needed
  • Add the body content following the templates

4. Validate

After creating:

  • Confirm the file is in the correct location
  • Verify frontmatter syntax (YAML between --- markers)
  • Check that description is present and meaningful

Edge Cases

Instructions vs Skill? Does this apply to most work, or specific tasks? Most → Instructions. Specific → Skill.

Skill vs Prompt? Both appear as slash commands in chat (type /). Multi-step workflow with bundled assets → Skill. Single focused task with inputs → Prompt.

Skill vs Custom Agent? Same capabilities for all steps → Skill. Need context isolation (subagent returns single output) or different tool restrictions per stage → Custom Agent.

Hooks vs Instructions? Instructions guide agent behavior (non-deterministic). Hooks enforce behavior via shell commands at lifecycle events like PreToolUse or PostToolUse — they can block operations, require approval, or run formatters deterministically. See hooks reference.

Common Pitfalls

Description is the discovery surface. The description field is how the agent decides whether to load a skill, instruction, or agent. If trigger phrases aren't IN the description, the agent won't find it. Use the "Use when..." pattern with specific keywords.

YAML frontmatter silent failures. Unescaped colons in values, tabs instead of spaces, name that doesn't match folder name — all cause silent failures with no error message. Always quote descriptions that contain colons: description: "Use when: doing X".

`applyTo: "" burns context.** This means "always included for every file request" — it loads the instruction into the context window on every interaction, even when irrelevant. Use specific globs (*/.py, src/api/**`) unless the instruction truly applies to all files.

Related skills

FAQ

What does agent-customization produce?

VS Code customization files at documented paths with valid frontmatter, descriptions, and the appropriate primitive type for the workflow.

When should I use agent-customization?

When creating, updating, or debugging copilot-instructions.md, SKILL.md, .agent.md, hooks, or related customization files.

Is agent-customization safe to install?

Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.