| 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
โโโ hooks/ # Hook configurations
โ โโโ *.json
โโโ plugin/ # Inert plugin manifest examples
โ โโโ *.example.json
โโโ toolsets/ # Inert tool-set examples
โ โโโ *.example.jsonc
โโโ copilot-instructions.md # Workspace-wide instructions
โโโ (optional) AGENTS.md # Alternative: root-level agent instructions
.vscode/
โโโ settings.json # Workspace settings
โโโ mcp.example.json # Inert MCP example (copy to mcp.json to enable)
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 |
.github/hooks/ exists | | Optional, for lifecycle automation |
.github/toolsets/ exists | | Optional, for tool-set examples |
.vscode/ exists | | Recommended for workspace settings |
.vscode/mcp.example.json exists | | Recommended inert MCP example |
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 (chat.useAgentsMdFile) | Optional |
AGENTS.md (nested in subfolders) | Folder-scoped instructions (chat.useNestedAgentsMdFiles, experimental) | Optional |
CLAUDE.md (root, .claude/CLAUDE.md, or ~/.claude/CLAUDE.md) | Claude-compatible always-on instructions (chat.useClaudeMdFile) | Optional |
.claude/rules/*.md | Claude Rules format (uses paths instead of applyTo) | 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. Hooks (Lifecycle Automation)
Hook File Checks
Recommended Hooks
| Hook Event | Purpose | Example |
|---|
PreToolUse | Block dangerous commands | Security policy enforcement |
PostToolUse | Auto-format after edits | Run Prettier/ESLint after file changes |
SessionStart | Inject project context | Add environment info to session |
Stop | Enforce quality gates | Require test runs before finishing |
Hook configuration locations
| Location | Scope |
|---|
.github/hooks/*.json | Workspace (shared with team) |
Agent frontmatter hooks: | Agent-scoped (preview) |
7. MCP Servers
MCP File Checks
MCP Locations
| Location | Scope | Top-level key |
|---|
.vscode/mcp.json | VS Code workspace | servers |
| User profile MCP config | VS Code user/profile | servers |
.github/agents/*.agent.md mcp-servers | GitHub Copilot cloud agent | YAML mcp-servers |
Plugin .mcp.json | Agent plugin | mcpServers |
8. Tool Sets
Tool Set Checks
9. Agent Plugins (Preview)
Plugin Checks
10. Organization and Enterprise Customizations
Org/Enterprise Checks
11. 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.mcp.access": "all",
"github.copilot.chat.organizationInstructions.enabled": true,
"github.copilot.chat.organizationCustomAgents.enabled": true,
"chat.useNestedAgentsMdFiles": true,
"chat.useClaudeMdFile": true,
"chat.useCustomizationsInParentRepositories": true,
"chat.customAgentInSubagent.enabled": true,
"chat.useCustomAgentHooks": true,
"chat.plugins.enabled": true,
"chat.plugins.marketplaces": ["github/awesome-copilot"],
"chat.autopilot.enabled": true,
"chat.mcp.discovery.enabled": true
}
Setting Checks
12. 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 |
Deprecated Settings
| Deprecated Setting | Replacement |
|---|
github.copilot.chat.codeGeneration.instructions | .github/copilot-instructions.md |
github.copilot.chat.testGeneration.instructions | *.instructions.md with applyTo |
13. 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 |
| Hooks | โ
/โ ๏ธ/โ | X/Y |
| MCP Servers | โ
/โ ๏ธ/โ | X/Y |
| Tool Sets | โ
/โ ๏ธ/โ | X/Y |
| Agent Plugins | โ
/โ ๏ธ/โ | X/Y |
| Org/Enterprise | โ
/โ ๏ธ/โ | 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