Copilot Setup Audit
This skill provides comprehensive checklists and best practices for auditing a repository's GitHub Copilot customization setup.
When to use this skill
- Setting up Copilot customizations in a new repository
- Reviewing an existing setup for improvements
- Migrating from legacy patterns (chat modes → agents)
- Ensuring team-wide consistency
- Onboarding new team members to the Copilot setup
Audit Checklist
1. Directory Structure
Check for correct directory structure:
.github/
├── agents/ # Custom agents
│ └── *.agent.md
├── prompts/ # Prompt templates
│ └── *.prompt.md
├── instructions/ # Scoped instructions
│ └── *.instructions.md
├── skills/ # Agent skills
│ └── */SKILL.md
├── copilot-instructions.md # Workspace-wide instructions
└── (optional) AGENTS.md # Alternative: root-level agent instructions
.vscode/
└── settings.json # Workspace settings
Directory Checks
| Check |
Status |
Notes |
.github/ exists |
|
Required for most customizations |
.github/agents/ exists |
|
Required for custom agents |
.github/prompts/ exists |
|
Required for prompt templates |
.github/instructions/ exists |
|
Recommended for scoped instructions |
.github/skills/ exists |
|
Optional, for Agent Skills |
.vscode/ exists |
|
Recommended for workspace settings |
2. Custom Instructions
Files to check
| File |
Purpose |
Priority |
.github/copilot-instructions.md |
Workspace-wide coding guidelines |
High |
.github/instructions/*.instructions.md |
File-type specific rules |
Medium |
AGENTS.md (root) |
Multi-agent workspace instructions |
Optional |
Instruction Quality Checks
Recommended Instructions by Project Type
| Project Type |
Suggested applyTo Patterns |
| TypeScript/JavaScript |
**/*.ts, **/*.tsx, **/*.js, **/*.jsx |
| Python |
**/*.py |
| Go |
**/*.go |
| Rust |
**/*.rs |
| Documentation |
**/*.md, **/docs/** |
| Tests |
**/*.test.*, **/*.spec.*, **/tests/** |
| Config |
**/*.json, **/*.yaml, **/*.yml |
3. Custom Agents
Agent File Checks
Recommended Agents
Consider creating agents for these common workflows:
| Agent |
Purpose |
Suggested Tools |
| Planner |
Generate implementation plans without editing |
search, fetch, githubRepo, usages |
| Reviewer |
Code review and security analysis |
search, usages, problems |
| Documenter |
Generate and update documentation |
search, editFiles |
| Tester |
Write and run tests |
search, editFiles, runCommand |
| Debugger |
Diagnose and fix issues |
search, editFiles, runCommand, problems |
Agent Quality Checks
4. Prompt Files
Prompt File Checks
Recommended Prompts
Consider creating prompts for repetitive tasks:
| Prompt |
Purpose |
/new-component |
Scaffold a new UI component |
/new-api-endpoint |
Create a new API endpoint |
/add-tests |
Generate tests for selected code |
/explain |
Explain selected code |
/refactor |
Refactor with specific pattern |
/document |
Generate documentation |
/review |
Code review checklist |
5. Agent Skills
Skill Checks
Recommended Skills
Consider creating skills for:
| Skill |
Purpose |
| Project-specific patterns |
Document unique conventions, architecture |
| API documentation |
Include API specs, schemas |
| Deployment procedures |
Step-by-step deployment guides |
| Troubleshooting |
Common issues and solutions |
| Testing strategies |
Project-specific test patterns |
6. Settings Configuration
Workspace Settings (.vscode/settings.json)
Check for recommended settings:
{
// Enable instruction files
"github.copilot.chat.codeGeneration.useInstructionFiles": true,
// Enable AGENTS.md support
"chat.useAgentsMdFile": true,
// Enable Agent Skills (preview)
"chat.useAgentSkills": true,
// Enable MCP servers
"chat.mcp.enabled": true,
// Optional experimental features
"chat.useNestedAgentsMdFiles": true,
"chat.customAgentInSubagent.enabled": true
}
Setting Checks
7. Legacy/Deprecated Patterns
Files to migrate or remove
| Deprecated |
Migrate To |
.github/chatmodes/*.chatmode.md |
.github/agents/*.agent.md |
*.instructions.md at repo root |
.github/instructions/*.instructions.md |
.claude/skills/ |
.github/skills/ (recommended) |
~/.claude/skills/ |
~/.copilot/skills/ (recommended) |
Deprecated Settings
| Deprecated Setting |
Replacement |
github.copilot.chat.codeGeneration.instructions |
.github/copilot-instructions.md |
github.copilot.chat.testGeneration.instructions |
*.instructions.md with applyTo |
8. Security & Best Practices
Security Checks
Version Control
Audit Report Template
# Copilot Setup Audit Report
**Repository**: [name]
**Date**: [date]
**Auditor**: [name/tool]
## Summary
| Category | Status | Score |
|----------|--------|-------|
| Directory Structure | ✅/⚠️/❌ | X/Y |
| Instructions | ✅/⚠️/❌ | X/Y |
| Custom Agents | ✅/⚠️/❌ | X/Y |
| Prompt Files | ✅/⚠️/❌ | X/Y |
| Agent Skills | ✅/⚠️/❌ | X/Y |
| Settings | ✅/⚠️/❌ | X/Y |
| Legacy Patterns | ✅/⚠️/❌ | X/Y |
| Security | ✅/⚠️/❌ | X/Y |
## Findings
### Critical (must fix)
-
### Warnings (should fix)
-
### Suggestions (nice to have)
-
## Recommended Actions
1.
2.
3.
## Files to Create
- [ ]
- [ ]
## Files to Migrate
- [ ]
- [ ]
Reference Documentation
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: copilot-setup-audit-23description: Audit repository Copilot customization setup. Use this skill to analyze existing configuration, identify missing files, check for best practices, and suggest improvements for agents, prompts, instructions, and skills. Use when this capability is needed.4---56# Copilot Setup Audit78This skill provides comprehensive checklists and best practices for auditing a repository's GitHub Copilot customization setup.910## When to use this skill1112- Setting up Copilot customizations in a new repository13- Reviewing an existing setup for improvements14- Migrating from legacy patterns (chat modes → agents)15- Ensuring team-wide consistency16- Onboarding new team members to the Copilot setup1718## Audit Checklist1920### 1. Directory Structure2122Check for correct directory structure:2324```25.github/26├── agents/ # Custom agents27│ └── *.agent.md28├── prompts/ # Prompt templates29│ └── *.prompt.md30├── instructions/ # Scoped instructions31│ └── *.instructions.md32├── skills/ # Agent skills33│ └── */SKILL.md34├── copilot-instructions.md # Workspace-wide instructions35└── (optional) AGENTS.md # Alternative: root-level agent instructions36.vscode/37└── settings.json # Workspace settings38```3940#### Directory Checks4142| Check | Status | Notes |43|-------|--------|-------|44| `.github/` exists | | Required for most customizations |45| `.github/agents/` exists | | Required for custom agents |46| `.github/prompts/` exists | | Required for prompt templates |47| `.github/instructions/` exists | | Recommended for scoped instructions |48| `.github/skills/` exists | | Optional, for Agent Skills |49| `.vscode/` exists | | Recommended for workspace settings |5051### 2. Custom Instructions5253#### Files to check5455| File | Purpose | Priority |56|------|---------|----------|57| `.github/copilot-instructions.md` | Workspace-wide coding guidelines | **High** |58| `.github/instructions/*.instructions.md` | File-type specific rules | Medium |59| `AGENTS.md` (root) | Multi-agent workspace instructions | Optional |6061#### Instruction Quality Checks6263- [ ] Instructions are concise and actionable64- [ ] No duplicate rules across instruction files65- [ ] `applyTo` globs are specific (not overly broad)66- [ ] Instructions reference relevant tools with `#tool:` syntax where helpful67- [ ] No deprecated settings used (`codeGeneration.instructions`, `testGeneration.instructions`)6869#### Recommended Instructions by Project Type7071| Project Type | Suggested `applyTo` Patterns |72|--------------|------------------------------|73| TypeScript/JavaScript | `**/*.ts`, `**/*.tsx`, `**/*.js`, `**/*.jsx` |74| Python | `**/*.py` |75| Go | `**/*.go` |76| Rust | `**/*.rs` |77| Documentation | `**/*.md`, `**/docs/**` |78| Tests | `**/*.test.*`, `**/*.spec.*`, `**/tests/**` |79| Config | `**/*.json`, `**/*.yaml`, `**/*.yml` |8081### 3. Custom Agents8283#### Agent File Checks8485- [ ] All agents have `.agent.md` extension86- [ ] Agents are in `.github/agents/` directory87- [ ] YAML frontmatter is valid88- [ ] `description` is present and descriptive89- [ ] `name` is set (recommended)90- [ ] `tools` list is explicit (avoid giving all tools)91- [ ] No deprecated `.chatmode.md` files exist9293#### Recommended Agents9495Consider creating agents for these common workflows:9697| Agent | Purpose | Suggested Tools |98|-------|---------|-----------------|99| Planner | Generate implementation plans without editing | `search`, `fetch`, `githubRepo`, `usages` |100| Reviewer | Code review and security analysis | `search`, `usages`, `problems` |101| Documenter | Generate and update documentation | `search`, `editFiles` |102| Tester | Write and run tests | `search`, `editFiles`, `runCommand` |103| Debugger | Diagnose and fix issues | `search`, `editFiles`, `runCommand`, `problems` |104105#### Agent Quality Checks106107- [ ] Agents have clear, focused purposes108- [ ] Tool lists are minimal and intentional109- [ ] Handoffs defined for workflow agents110- [ ] `infer: false` set for agents that shouldn't be used as subagents111112### 4. Prompt Files113114#### Prompt File Checks115116- [ ] All prompts have `.prompt.md` extension117- [ ] Prompts are in `.github/prompts/` directory118- [ ] YAML frontmatter is valid119- [ ] `description` helps users understand the prompt120- [ ] `agent` is specified when needed121- [ ] `tools` list matches the prompt's needs122- [ ] Variables use correct syntax: `${input:name}`, `${file}`, etc.123124#### Recommended Prompts125126Consider creating prompts for repetitive tasks:127128| Prompt | Purpose |129|--------|---------|130| `/new-component` | Scaffold a new UI component |131| `/new-api-endpoint` | Create a new API endpoint |132| `/add-tests` | Generate tests for selected code |133| `/explain` | Explain selected code |134| `/refactor` | Refactor with specific pattern |135| `/document` | Generate documentation |136| `/review` | Code review checklist |137138### 5. Agent Skills139140#### Skill Checks141142- [ ] Skills use `SKILL.md` filename143- [ ] Skills are in `.github/skills/<name>/` directories144- [ ] YAML frontmatter has `name` and `description`145- [ ] Description is specific (helps Copilot decide when to load)146- [ ] Supporting files are referenced with relative paths147148#### Recommended Skills149150Consider creating skills for:151152| Skill | Purpose |153|-------|---------|154| Project-specific patterns | Document unique conventions, architecture |155| API documentation | Include API specs, schemas |156| Deployment procedures | Step-by-step deployment guides |157| Troubleshooting | Common issues and solutions |158| Testing strategies | Project-specific test patterns |159160### 6. Settings Configuration161162#### Workspace Settings (.vscode/settings.json)163164Check for recommended settings:165166```json167{168 // Enable instruction files169 "github.copilot.chat.codeGeneration.useInstructionFiles": true,170 171 // Enable AGENTS.md support172 "chat.useAgentsMdFile": true,173 174 // Enable Agent Skills (preview)175 "chat.useAgentSkills": true,176 177 // Enable MCP servers178 "chat.mcp.enabled": true,179 180 // Optional experimental features181 "chat.useNestedAgentsMdFiles": true,182 "chat.customAgentInSubagent.enabled": true183}184```185186#### Setting Checks187188- [ ] Instruction files enabled (`useInstructionFiles: true`)189- [ ] Experimental features enabled as needed190- [ ] No conflicting or deprecated settings191- [ ] Settings committed to repo (shared with team)192193### 7. Legacy/Deprecated Patterns194195#### Files to migrate or remove196197| Deprecated | Migrate To |198|------------|------------|199| `.github/chatmodes/*.chatmode.md` | `.github/agents/*.agent.md` |200| `*.instructions.md` at repo root | `.github/instructions/*.instructions.md` |201| `.claude/skills/` | `.github/skills/` (recommended) |202| `~/.claude/skills/` | `~/.copilot/skills/` (recommended) |203204#### Deprecated Settings205206| Deprecated Setting | Replacement |207|--------------------|-------------|208| `github.copilot.chat.codeGeneration.instructions` | `.github/copilot-instructions.md` |209| `github.copilot.chat.testGeneration.instructions` | `*.instructions.md` with `applyTo` |210211### 8. Security & Best Practices212213#### Security Checks214215- [ ] No sensitive data in instruction files216- [ ] Terminal commands in prompts are safe and scoped217- [ ] MCP server configurations are reviewed218- [ ] Shared skills are audited before use219220#### Version Control221222- [ ] All customization files are committed223- [ ] `.gitattributes` marks `*.md` files appropriately224- [ ] Sensitive configurations in `.gitignore` if needed225226## Audit Report Template227228```markdown229# Copilot Setup Audit Report230231**Repository**: [name]232**Date**: [date]233**Auditor**: [name/tool]234235## Summary236237| Category | Status | Score |238|----------|--------|-------|239| Directory Structure | ✅/⚠️/❌ | X/Y |240| Instructions | ✅/⚠️/❌ | X/Y |241| Custom Agents | ✅/⚠️/❌ | X/Y |242| Prompt Files | ✅/⚠️/❌ | X/Y |243| Agent Skills | ✅/⚠️/❌ | X/Y |244| Settings | ✅/⚠️/❌ | X/Y |245| Legacy Patterns | ✅/⚠️/❌ | X/Y |246| Security | ✅/⚠️/❌ | X/Y |247248## Findings249250### Critical (must fix)251- 252253### Warnings (should fix)254- 255256### Suggestions (nice to have)257- 258259## Recommended Actions2602611. 2622. 2633. 264265## Files to Create266267- [ ] 268- [ ] 269270## Files to Migrate271272- [ ] 273- [ ] 274```275276## Reference Documentation277278- [Customization Overview](https://code.visualstudio.com/docs/copilot/customization/overview)279- [Custom Instructions](https://code.visualstudio.com/docs/copilot/customization/custom-instructions)280- [Custom Agents](https://code.visualstudio.com/docs/copilot/customization/custom-agents)281- [Prompt Files](https://code.visualstudio.com/docs/copilot/customization/prompt-files)282- [Agent Skills](https://code.visualstudio.com/docs/copilot/customization/agent-skills)283- [Awesome Copilot](https://github.com/github/awesome-copilot)284285---286> Converted and distributed by [TomeVault](https://tomevault.io/claim/trsdn) — claim your Tome and manage your conversions.287<!-- tomevault:4.0:skill_md:2026-04-13 -->