Skip to content

Commit ab4b404

Browse files
trsdnCopilot
andcommitted
docs: add agentskills.io spec fields, plugin settings, and CLAUDE.md audit checks
- skill-builder: add license, compatibility, metadata, allowed-tools fields and scripts/references/assets directory structure from agentskills.io spec - compatibility-checker: add terminal sandbox, MCP discovery, autopilot, and plugin settings (chat.plugins.enabled/marketplaces/paths) - setup-audit: add CLAUDE.md and .claude/agents/ to audit checklists, add plugins/autopilot/MCP discovery to recommended settings - new-agent prompt: add Claude agent format (.claude/agents/) section - new-skill prompt: add license, compatibility, metadata optional fields Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a38a954 commit ab4b404

6 files changed

Lines changed: 71 additions & 8 deletions

File tree

.github/prompts/copilot-new-agent.prompt.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ When done, list the created file path and how to select the agent in the VS Code
6262

6363
> **Deprecated:** `infer` is deprecated. Use `user-invocable` and `disable-model-invocation` instead.
6464

65+
## Claude agent format (alternative)
66+
67+
VS Code also supports the Claude agent format in `.claude/agents/`:
68+
- Uses plain `.md` files (not `.agent.md`)
69+
- `tools` is a comma-separated string (e.g., `"Read, Grep, Glob, Bash"`) instead of YAML array
70+
- Supports `disallowedTools` as comma-separated string
71+
- VS Code maps Claude tool names to corresponding VS Code tools
72+
6573
## Reference docs
6674

6775
- Custom agents (VS Code): https://code.visualstudio.com/docs/copilot/customization/custom-agents

.github/prompts/copilot-new-skill.prompt.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Create a new Agent Skill in this repository.
2727
- Optionally set `argument-hint` for hint text when invoked as a slash command
2828
- Optionally set `user-invocable: false` to hide from `/` menu (still auto-loaded by Copilot)
2929
- Optionally set `disable-model-invocation: true` to require manual invocation only
30+
- Optionally set `license` for the skill's license
31+
- Optionally set `compatibility` for environment requirements (max 500 chars)
32+
- Optionally set `metadata` with `author`, `version`, or other key-value pairs
3033
4. In the Markdown body, include:
3134
- What the skill accomplishes
3235
- When to use it (specific triggers)

.github/skills/copilot-compatibility-checker/SKILL.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,17 @@ When diagnosing issues, consult these sources for the latest information:
115115

116116
| Feature | Setting | Since Version | Status |
117117
|---------|---------|---------------|--------|
118-
| Agent plugins | N/A | Preview | **Preview** |
119-
| Plugin marketplaces | N/A | Preview | **Preview** |
118+
| Agent plugins | `chat.plugins.enabled` | Preview | **Preview** |
119+
| Plugin marketplaces | `chat.plugins.marketplaces` | Preview | **Preview** |
120+
| Local plugins | `chat.plugins.paths` | Preview | **Preview** |
121+
122+
### CLAUDE.md / Claude Compatibility
123+
124+
| Feature | Setting | Since Version | Status |
125+
|---------|---------|---------------|--------|
126+
| `CLAUDE.md` instructions | `chat.useClaudeMdFile` | Stable | Stable |
127+
| `.claude/agents/` format | Auto-discovered | Stable | Stable |
128+
| `.claude/rules/` instructions | `chat.instructionsFilesLocations` | Stable | Stable |
120129

121130
### Prompt Files
122131

@@ -130,8 +139,12 @@ When diagnosing issues, consult these sources for the latest information:
130139
| Feature | Setting | Since Version | Status |
131140
|---------|---------|---------------|--------|
132141
| Terminal tool auto-approval | `chat.tools.autoApprove` | 1.103 | Stable |
142+
| Terminal sandboxing | `chat.tools.terminal.sandbox.enabled` | Preview | **Preview** |
133143
| MCP servers | `chat.mcp.enabled` | 1.102 | Stable |
144+
| MCP sandbox | `sandboxEnabled` in `mcp.json` | Preview | **Preview** |
145+
| MCP auto-discovery | `chat.mcp.discovery.enabled` | Preview | **Preview** |
134146
| Background agents | `chat.agent.background.enabled` | 1.107 | **Experimental** |
147+
| Autopilot mode | `chat.autopilot.enabled` | Preview | **Preview** |
135148

136149
## Diagnostic Steps
137150

@@ -226,6 +239,9 @@ Enable all experimental features:
226239
"chat.mcp.enabled": true,
227240
"chat.useCustomAgentHooks": true,
228241
"chat.useClaudeMdFile": true,
242+
"chat.plugins.enabled": true,
243+
"chat.autopilot.enabled": true,
244+
"chat.mcp.discovery.enabled": true,
229245
"github.copilot.chat.customAgents.showOrganizationAndEnterpriseAgents": true
230246
}
231247
```

.github/skills/copilot-setup-audit/SKILL.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Check for correct directory structure:
5959
| `.github/copilot-instructions.md` | Workspace-wide coding guidelines | **High** |
6060
| `.github/instructions/*.instructions.md` | File-type specific rules | Medium |
6161
| `AGENTS.md` (root) | Multi-agent workspace instructions | Optional |
62+
| `CLAUDE.md` (root, `.claude/`, `~/.claude/`) | Cross-tool compatibility | Optional |
6263

6364
#### Instruction Quality Checks
6465

@@ -84,8 +85,8 @@ Check for correct directory structure:
8485

8586
#### Agent File Checks
8687

87-
- [ ] All agents have `.agent.md` extension
88-
- [ ] Agents are in `.github/agents/` directory
88+
- [ ] All agents have `.agent.md` extension (or `.md` in `.claude/agents/`)
89+
- [ ] Agents are in `.github/agents/` directory (or `.claude/agents/` for Claude format)
8990
- [ ] YAML frontmatter is valid
9091
- [ ] `description` is present and descriptive
9192
- [ ] `name` is set (recommended)
@@ -217,7 +218,10 @@ Check for recommended settings:
217218
"chat.useNestedAgentsMdFiles": true,
218219
"chat.customAgentInSubagent.enabled": true,
219220
"chat.useCustomAgentHooks": true,
220-
"chat.useClaudeMdFile": true
221+
"chat.useClaudeMdFile": true,
222+
"chat.plugins.enabled": true,
223+
"chat.autopilot.enabled": true,
224+
"chat.mcp.discovery.enabled": true
221225
}
222226
```
223227

.github/skills/copilot-skill-builder/SKILL.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Detailed instructions, guidelines, and examples...
5151
| `argument-hint` | No | Hint text shown in chat input when invoked as a slash command |
5252
| `user-invocable` | No | Controls `/` slash command visibility (default: `true`). Set to `false` for background skills |
5353
| `disable-model-invocation` | No | Controls auto-loading by Copilot (default: `false`). Set to `true` for manual-only skills |
54+
| `license` | No | License name or reference to a bundled license file (from [agentskills.io](https://agentskills.io/) spec) |
55+
| `compatibility` | No | Environment requirements — intended product, system packages, network access. Max 500 chars |
56+
| `metadata` | No | Arbitrary key-value mapping for additional metadata (e.g., `author`, `version`) |
57+
| `allowed-tools` | No | Space-delimited list of pre-approved tools the skill may use (experimental) |
5458

5559
### Body content
5660

@@ -126,14 +130,36 @@ The description determines when Copilot loads your skill. Be specific:
126130
```
127131
.github/skills/
128132
└── webapp-testing/
129-
├── SKILL.md # Main skill file
130-
├── test-template.js # Reusable test template
131-
├── playwright.config.ts # Example config
133+
├── SKILL.md # Main skill file (required)
134+
├── scripts/ # Executable code agents can run
135+
│ └── test-template.js
136+
├── references/ # Additional documentation
137+
│ └── REFERENCE.md
138+
├── assets/ # Static resources (templates, schemas)
139+
│ └── config-template.json
132140
└── examples/
133141
├── login-test.js
134142
└── api-test.js
135143
```
136144

145+
### Recommended directories (from agentskills.io spec)
146+
147+
| Directory | Purpose |
148+
|-----------|---------|
149+
| `scripts/` | Executable code (Python, Bash, JavaScript). Should be self-contained with helpful error messages |
150+
| `references/` | Additional documentation loaded on demand (keep files focused for efficient context use) |
151+
| `assets/` | Static resources: templates, images, data files, schemas |
152+
153+
### Progressive disclosure guidelines
154+
155+
Skills load progressively to minimize context usage:
156+
157+
1. **Metadata** (~100 tokens): `name` and `description` loaded at startup for all skills
158+
2. **Instructions** (< 5000 tokens recommended): Full SKILL.md body loaded when activated
159+
3. **Resources** (as needed): Files in `scripts/`, `references/`, `assets/` loaded only when required
160+
161+
Keep your main SKILL.md under **500 lines**. Move detailed reference material to separate files.
162+
137163
## Reference documentation
138164

139165
- [Agent Skills in VS Code](https://code.visualstudio.com/docs/copilot/customization/agent-skills)

.github/skills/copilot-skill-builder/skill-template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ description: {{skill-description}}
44
# argument-hint: {{optional hint text for slash command}}
55
# user-invocable: true
66
# disable-model-invocation: false
7+
# license: {{optional license name or file reference}}
8+
# compatibility: {{optional environment requirements}}
9+
# metadata:
10+
# author: {{optional author}}
11+
# version: "1.0"
12+
# allowed-tools: {{optional space-delimited list of pre-approved tools (experimental)}}
713
---
814

915
# {{Skill Title}}

0 commit comments

Comments
 (0)