Skip to content

Commit cc9eeac

Browse files
Revert terminology changes per reviewer feedback
Restore 'Copilot' and 'AI agent' terminology to match the original doc's conventions. Keep new substantive content (Writing High-Impact Skills, Gotchas, expanded examples). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ebb3c05 commit cc9eeac

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

instructions/agent-skills.instructions.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
description: 'Guidelines for creating high-quality Agent Skills'
2+
description: 'Guidelines for creating high-quality Agent Skills for GitHub Copilot'
33
applyTo: '**/skills/**/SKILL.md'
44
---
55

66
# Agent Skills File Guidelines
77

8-
Instructions for creating effective and portable Agent Skills that enhance AI agents with specialized capabilities, workflows, and bundled resources.
8+
Instructions for creating effective and portable Agent Skills that enhance GitHub Copilot with specialized capabilities, workflows, and bundled resources.
99

1010
## What Are Agent Skills?
1111

12-
Agent Skills are self-contained folders with instructions and bundled resources that teach agents specialized capabilities. Unlike custom instructions (which define coding standards), skills enable task-specific workflows that can include scripts, examples, templates, and reference data.
12+
Agent Skills are self-contained folders with instructions and bundled resources that teach AI agents specialized capabilities. Unlike custom instructions (which define coding standards), skills enable task-specific workflows that can include scripts, examples, templates, and reference data.
1313

1414
Key characteristics:
15-
- **Portable**: Works across VS Code, Copilot CLI, Copilot coding agent, and other Agent Skills-compatible tools
15+
- **Portable**: Works across VS Code, Copilot CLI, and Copilot coding agent
1616
- **Progressive loading**: Only loaded when relevant to the user's request
1717
- **Resource-bundled**: Can include scripts, templates, examples alongside instructions
1818
- **On-demand**: Activated automatically based on prompt relevance
@@ -51,7 +51,7 @@ license: Complete terms in LICENSE.txt
5151

5252
### Description Best Practices
5353

54-
**CRITICAL**: The `description` field is the PRIMARY mechanism for automatic skill discovery. The agent reads ONLY the `name` and `description` to decide whether to load a skill. If your description is vague, the skill will never be activated.
54+
**CRITICAL**: The `description` field is the PRIMARY mechanism for automatic skill discovery. Copilot reads ONLY the `name` and `description` to decide whether to load a skill. If your description is vague, the skill will never be activated.
5555

5656
**What to include in description:**
5757
1. **WHAT** the skill does (capabilities)
@@ -69,13 +69,13 @@ description: 'Web testing helpers'
6969
```
7070
7171
The poor description fails because:
72-
- No specific triggers (when should the agent load this?)
72+
- No specific triggers (when should Copilot load this?)
7373
- No keywords (what user prompts would match?)
7474
- No capabilities (what can it actually do?)
7575
7676
### Body Content
7777
78-
The body contains detailed instructions that the agent loads AFTER the skill is activated. Recommended sections:
78+
The body contains detailed instructions that Copilot loads AFTER the skill is activated. Recommended sections:
7979
8080
| Section | Purpose |
8181
|---------|---------|
@@ -95,7 +95,7 @@ For content quality principles (what to include and what to leave out), see [Wri
9595

9696
**`# Title`** — One sentence stating what the skill enables. Avoid generic phrasing; be specific about the domain.
9797

98-
**`## When to Use This Skill`** — A bullet list of concrete scenarios that reinforce the description triggers. This helps the agent confirm it loaded the right skill.
98+
**`## When to Use This Skill`** — A bullet list of concrete scenarios that reinforce the description triggers. This helps Copilot confirm it loaded the right skill.
9999

100100
```markdown
101101
## When to Use This Skill
@@ -105,7 +105,7 @@ For content quality principles (what to include and what to leave out), see [Wri
105105
- User wants to debug frontend behavior with browser console logs
106106
```
107107

108-
**`## Prerequisites`** — Only include if the skill requires tools, services, or configuration that the agent cannot assume are available. List exact install commands.
108+
**`## Prerequisites`** — Only include if the skill requires tools, services, or configuration that Copilot cannot assume are available. List exact install commands.
109109

110110
```markdown
111111
## Prerequisites
@@ -135,7 +135,7 @@ For content quality principles (what to include and what to leave out), see [Wri
135135
- **Never** call `billing.charge()` without checking `user.hasPaymentMethod` first —
136136
the SDK throws an unrecoverable error instead of returning a failure.
137137
- The `currency` field expects ISO 4217 codes, not display names.
138-
The agent often writes "dollars" instead of "USD".
138+
Copilot often writes "dollars" instead of "USD".
139139
```
140140

141141
**`## Troubleshooting`** — Reactive fixes for known issues, presented as a table of symptom → solution pairs. Each row should be self-contained and actionable.
@@ -154,16 +154,16 @@ For content quality principles (what to include and what to leave out), see [Wri
154154

155155
## Bundling Resources
156156

157-
Skills can include additional files that the agent accesses on-demand:
157+
Skills can include additional files that Copilot accesses on-demand:
158158

159159
### Supported Resource Types
160160

161161
| Folder | Purpose | Loaded into Context? | Example Files |
162162
|--------|---------|---------------------|---------------|
163163
| `scripts/` | Executable automation that performs specific operations | When executed | `helper.py`, `validate.sh`, `build.ts` |
164-
| `references/` | Documentation the agent reads to inform decisions | Yes, when referenced | `api_reference.md`, `schema.md`, `workflow_guide.md` |
165-
| `assets/` | **Static files used AS-IS** in output (not modified by the agent) | No | `logo.png`, `brand-template.pptx`, `custom-font.ttf` |
166-
| `templates/` | **Starter code/scaffolds that the agent MODIFIES** and builds upon | Yes, when referenced | `viewer.html` (insert algorithm), `hello-world/` (extend) |
164+
| `references/` | Documentation the AI agent reads to inform decisions | Yes, when referenced | `api_reference.md`, `schema.md`, `workflow_guide.md` |
165+
| `assets/` | **Static files used AS-IS** in output (not modified by the AI agent) | No | `logo.png`, `brand-template.pptx`, `custom-font.ttf` |
166+
| `templates/` | **Starter code/scaffolds that the AI agent MODIFIES** and builds upon | Yes, when referenced | `viewer.html` (insert algorithm), `hello-world/` (extend) |
167167

168168
### Directory Structure Example
169169

@@ -195,12 +195,12 @@ Skills can include additional files that the agent accesses on-demand:
195195
- A `report-template.html` copied as output format
196196
- A `custom-font.ttf` applied to text rendering
197197

198-
**Templates** are starter code/scaffolds that **the agent actively modifies**:
199-
- A `scaffold.py` where the agent inserts logic
200-
- A `config.template` where the agent fills in values based on user requirements
201-
- A `hello-world/` project directory that the agent extends with new features
198+
**Templates** are starter code/scaffolds that **the AI agent actively modifies**:
199+
- A `scaffold.py` where the AI agent inserts logic
200+
- A `config.template` where the AI agent fills in values based on user requirements
201+
- A `hello-world/` project directory that the AI agent extends with new features
202202

203-
**Rule of thumb**: If the agent reads and builds upon the file content → `templates/`. If the file is used as-is in output → `assets/`.
203+
**Rule of thumb**: If the AI agent reads and builds upon the file content → `templates/`. If the file is used as-is in output → `assets/`.
204204

205205
### Referencing Resources in SKILL.md
206206

@@ -224,7 +224,7 @@ Skills use three-level loading for efficiency:
224224
|-------|------------|------|
225225
| 1. Discovery | `name` and `description` only | Always (lightweight metadata) |
226226
| 2. Instructions | Full `SKILL.md` body | When request matches description |
227-
| 3. Resources | Scripts, examples, docs | Only when the agent references them |
227+
| 3. Resources | Scripts, examples, docs | Only when Copilot references them |
228228

229229
This means:
230230
- Install many skills without consuming context
@@ -279,21 +279,21 @@ Scripts enable evolution: even simple operations benefit from being implemented
279279

280280
## Writing High-Impact Skills
281281

282-
### Focus on What the Agent Doesn't Know
282+
### Focus on What Copilot Doesn't Know
283283

284-
Do not include information the agent already knows from its training data — standard language syntax, common library usage, or well-documented API behavior. Every line in a skill should teach something the agent would otherwise get wrong or miss entirely. If the information is on the first page of official docs, leave it out. Focus on internal conventions, non-obvious defaults, version-specific quirks, and domain-specific workflows that change the agent's behavior.
284+
Do not include information Copilot already knows from its training data — standard language syntax, common library usage, or well-documented API behavior. Every line in a skill should teach something Copilot would otherwise get wrong or miss entirely. If the information is on the first page of official docs, leave it out. Focus on internal conventions, non-obvious defaults, version-specific quirks, and domain-specific workflows that change Copilot's behavior.
285285

286286
### Context Budget Awareness
287287

288-
All skill descriptions share a limited portion of the available context window during discovery. Your description competes with every other installed skill for the agent's attention. Keep descriptions concise and keyword-dense — aim for the shortest text that still communicates WHAT, WHEN, and relevant KEYWORDS. Verbose descriptions don't just waste your own budget; they reduce visibility for every other skill in the system.
288+
All skill descriptions share a limited portion of the available context window during discovery. Your description competes with every other installed skill for Copilot's attention. Keep descriptions concise and keyword-dense — aim for the shortest text that still communicates WHAT, WHEN, and relevant KEYWORDS. Verbose descriptions don't just waste your own budget; they reduce visibility for every other skill in the system.
289289

290290
### Gotchas Are Your Highest-Signal Content
291291

292-
The `## Gotchas` section is consistently the most valuable part of any skill — proactive warnings that prevent mistakes before they happen. This is distinct from `## Troubleshooting`, which provides reactive fixes after something goes wrong. Treat gotchas as a living section: every time the agent produces a wrong result, add a gotcha. Bold the key constraint, then explain why (e.g., "**Never** call `X()` without checking `Y` first — the SDK throws an unrecoverable error").
292+
The `## Gotchas` section is consistently the most valuable part of any skill — proactive warnings that prevent mistakes before they happen. This is distinct from `## Troubleshooting`, which provides reactive fixes after something goes wrong. Treat gotchas as a living section: every time Copilot produces a wrong result, add a gotcha. Bold the key constraint, then explain why (e.g., "**Never** call `X()` without checking `Y` first — the SDK throws an unrecoverable error").
293293

294294
### Prefer Flexible Guidelines Over Rigid Steps
295295

296-
Use numbered steps only for concrete, repeatable procedures (build, deploy, environment setup) where the sequence genuinely matters. For open-ended tasks (debugging, refactoring, code review), provide decision criteria and reference information instead — the agent needs flexibility to adapt to the user's specific situation.
296+
Use numbered steps only for concrete, repeatable procedures (build, deploy, environment setup) where the sequence genuinely matters. For open-ended tasks (debugging, refactoring, code review), provide decision criteria and reference information instead — Copilot needs flexibility to adapt to the user's specific situation.
297297

298298
```markdown
299299
# ❌ Too rigid
@@ -310,7 +310,7 @@ When fixing error handling in API handlers:
310310

311311
### Use Progressive Disclosure for Large Skills
312312

313-
If your SKILL.md exceeds ~200 lines, consider splitting detailed content into subdirectories. This reduces context consumption — the agent loads only the core instructions initially and pulls reference material on demand.
313+
If your SKILL.md exceeds ~200 lines, consider splitting detailed content into subdirectories. This reduces context consumption — Copilot loads only the core instructions initially and pulls reference material on demand.
314314

315315
```markdown
316316
## Reference Files
@@ -359,7 +359,7 @@ Before publishing a skill:
359359
- [ ] `name` is lowercase with hyphens, ≤64 characters
360360
- [ ] `description` clearly states **WHAT** it does, **WHEN** to use it, and relevant **KEYWORDS**
361361
- [ ] `description` is concise and keyword-dense (respects context budget)
362-
- [ ] Body focuses on information the agent wouldn't know from training data
362+
- [ ] Body focuses on information Copilot wouldn't know from training data
363363
- [ ] Body includes when to use, prerequisites (if applicable), and core instructions
364364
- [ ] `## Gotchas` section present if skill involves non-obvious behavior, API quirks, or common traps
365365
- [ ] SKILL.md body under 500 lines (consider splitting into `references/` at ~200 lines; 500 is the hard maximum)

0 commit comments

Comments
 (0)