| name | copilot-setup-audit |
| description | 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. |
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:
{
"github.copilot.chat.codeGeneration.useInstructionFiles": true,
"chat.useAgentsMdFile": true,
"chat.useAgentSkills": true,
"chat.mcp.enabled": true,
"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