Agent Skills reference

Use this reference for supported Agent Skill directories, SKILL.md frontmatter fields, forked subagent execution, and extension contributions in Visual Studio Code.

For step-by-step instructions to discover, create, invoke, and verify skills, see Use Agent Skills in VS Code.

Skill locations

Store project skills in the repository when you want to share them with contributors. Store personal skills in your home directory to use them across workspaces. Each skill has its own directory containing SKILL.md.

The following table gives a supported project and personal location for each harness, not every directory it recognizes. The Agent Customizations editor offers creation locations for the selected harness.

Harness Skill directories
Copilot Project: .github/skills/
Personal: ~/.copilot/skills/
Anthropic Claude Project: .claude/skills/
Personal: ~/.claude/skills/
OpenAI Codex Project: .agents/skills/
Personal: ~/.agents/skills/
Local The Local harness is deprecated and will be removed in February 2027. Move your workflows to the Copilot harness before then. Learn more about Local harness deprecation. Project: .github/skills/
Personal: ~/.copilot/skills/

Codex

To reuse repository skills with OpenAI Codex, configure the experimental Codex integration. In addition to native .agents/skills/ discovery, this integration discovers workspace skills in .github/skills/ before your first prompt, without additional skill-location configuration.

If skills in .github/skills/ have duplicate names across workspace roots, the primary root takes precedence.

The Codex harness is disabled when Copilot enterprise-managed settings apply, unless your administrator explicitly permits it. Contact the IT team that deployed the settings to discuss access.

Local (Deprecated)

Local sessions also read project skills from .claude/skills/ and .agents/skills/, and personal skills from ~/.claude/skills/ and ~/.agents/skills/.

The deprecated chat.agentSkillsLocations Open in VS Code Open in VS Code Insiders setting adds other skill locations for Local sessions and remains available for compatibility. When another harness runs in VS Code, the editor forwards skills from these locations. Independent harness clients do not inherit this setting. To use these skills from native locations, move them to supported locations.

Monorepos

If you open a subfolder of a monorepo, check the parent repository discovery requirements before storing skills above the open workspace folder.

SKILL.md file format

The SKILL.md file is a Markdown file with YAML frontmatter that defines the skill's metadata and behavior.

Header (required)

The header is formatted as YAML frontmatter with the following fields:

Field Required Description
name Yes A unique identifier for the skill. Only lowercase letters, numbers, and hyphens are allowed (for example, webapp-testing). Do not use slashes, colons, dots, or namespace prefixes. Must match the parent directory name. Maximum 64 characters. Names with invalid characters cause the skill to silently fail to load.
description Yes A description of what the skill does and when to use it. Be specific about both capabilities and use cases to help Copilot decide when to load the skill. Maximum 1024 characters.
argument-hint No Hint text shown in the chat input field when the skill is invoked as a slash command. Helps users understand what additional information to provide (for example, [test file] [options]).
user-invocable No Controls whether the skill appears as a slash command in the chat menu. Defaults to true. Set to false to hide the skill from the / menu while still enabling the agent to load it automatically.
disable-model-invocation No Controls whether the agent can automatically load the skill based on relevance. Defaults to false. Set to true to require manual invocation through the / slash command only.
context Forked skill context is experimental and might change or be removed. No Controls how the skill is loaded. Defaults to inline (the skill's instructions are added to the parent agent's context). Set to fork to run the skill in a dedicated subagent context. See Run a skill in a forked context.
Important

When a skill is distributed through a plugin, the plugin name is automatically used as a command prefix (for example, /my-plugin:test-runner). Do not manually add namespace prefixes to the skill name field. Using prefixes like myorg/skillname or myorg:skillname causes the skill to silently fail to load.

Body

The skill body contains the instructions, guidelines, and examples that Copilot should follow when using this skill. Write clear, specific instructions that describe:

  • What the skill helps accomplish
  • When to use the skill
  • Step-by-step procedures to follow
  • Examples of the expected input and output
  • References to any included scripts or resources

You can reference files by using Markdown links or the #file: syntax. For files within the skill directory, use paths relative to the SKILL.md file, such as [test script](./test-template.js). To reference your environment user home folder, use ~, or start a path with ~/, such as #file:~/skill-resources/test-template.js. Use Unix-style / path separators to keep skills portable across operating systems.

Run a skill in a forked context

By default, when VS Code loads a skill, the skill's instructions are added to the parent agent's context window. For large skills, or skills whose intermediate reasoning isn't relevant to the rest of your conversation, you can instead run the skill in a forked context. In a forked context, the skill executes in a dedicated subagent and only its final result is returned to the parent agent. This keeps your main conversation's context clean.

To run a skill in a forked context, set the context field in the SKILL.md frontmatter to fork:

---
name: review-pr
description: Review a pull request for code quality, style, and correctness. Use when asked to review a PR.
context: fork
---

# PR review

Follow these steps to review the pull request...

Use context: fork for skills that:

  • Read many files or run lengthy investigations whose details don't need to stay in the main conversation
  • Produce a focused result (such as a summary, a report, or a small set of edits) that the parent agent can act on directly
  • Should not influence the parent agent's behavior beyond their final output
Note

To run a skill in a forked context, enable the github.copilot.chat.skillTool.enabled Open in VS Code Open in VS Code Insiders setting in VS Code.

Contribute skills from extensions

Extensions can contribute skills using the chatSkills contribution point in their package.json. The path must point to a directory that contains a SKILL.md file, following the Agent Skills specification.

Required folder structure

The skill directory must follow this structure:

extension-root/
└── skills/
    └── my-skill/           # Directory name must match the `name` field in SKILL.md
        └── SKILL.md         # Required

Register the skill in package.json

Add the chatSkills contribution point in your extension's package.json. The path property must point to the corresponding SKILL.md file:

{
  "contributes": {
    "chatSkills": [
      {
        "path": "./skills/my-skill/SKILL.md"
      }
    ]
  }
}
Important

The name field in the SKILL.md frontmatter must match the parent directory name. For example, if the directory is skills/my-skill/, the name field must be my-skill. If the name does not match, the skill is not loaded.

The SKILL.md file follows the same format as project and personal skills. For example:

---
name: my-skill
description: Description of what the skill does and when to use it.
---

# My Skill

Detailed instructions for the skill...

Agent Skills standard

Agent Skills is an open standard that enables portability across different AI agents. Skills you create in VS Code work with multiple agents, including:

  • GitHub Copilot in VS Code: Available in chat and agent mode
  • GitHub Copilot CLI: Accessible when working in the terminal
  • GitHub Copilot app: Available in the dedicated desktop experience
  • OpenAI Codex integration (Experimental): Discovers workspace skills in .github/skills/ after you set up the integration

Learn more about the Agent Skills standard at agentskills.io.