| name | skill-creator |
| description | Guide for how to create a new agent skill in VS Code |
Skill Instructions
Skills are stored in directories with a SKILL.md file that defines the skill's behavior. VS Code supports two types of skills:
- Project skills, stored in your repository:
.github/skills/ (recommended) or .claude/skills/ (legacy, for backward compatibility)
- Personal skills, stored in your user profile:
~/.copilot/skills/ (recommended) or ~/.claude/skills/ (legacy, for backward compatibility)
To create a skill:
-
Create a .github/skills directory in your workspace.
-
Create a subdirectory for your skill. Each skill should have its own directory (for example, .github/skills/webapp-testing).
-
Create a SKILL.md file in the skill directory with the following structure:
Markdown
---
name: skill-name
description: Description of what the skill does and when to use it
---
# Skill Instructions
Your detailed instructions, guidelines, and examples go here...
-
Optionally, add scripts, examples, or other resources to your skill's directory.
For example, a skill for testing web applications might include:
SKILL.md - Instructions for running tests
test-template.js - A template test file
examples/ - Example test scenarios
The SKILL.md file is a Markdown file with YAML frontmatter that defines the skill's metadata and behavior.
The header is formatted as YAML frontmatter with the following fields:
| Field | Required | Description |
|---|
name | Yes | A unique identifier for the skill. Must be lowercase, using hyphens for spaces (for example,webapp-testing). Maximum 64 characters. |
description | Yes | A description of what the skill doesand when to use it . Be specific about both capabilities and use cases to help Copilot decide when to load the skill. Maximum 1024 characters. |
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 within the skill directory using relative paths. For example, to reference a script in your skill directory, use [test script](./test-template.js).
The examples skills are stored at C:\Codes\KMK_Chatbot.github\skills\skill-creator\examples