Copilot setup audit
Skill trsdn/github-copilot-cli/.github/skills/copilot-setup-audit
Blueprint for customizing GitHub Copilot CLI — custom agents, instructions, skills, and MCP configurations. Terminal-only. No VS Code.
npx -y skills add trsdn/github-copilot-cli --skill copilot-setup-auditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Audit a repository's Copilot CLI customization setup and suggest improvements. Use when the user wants to review their Copilot configuration, find gaps, validate agents, skills, instructions, hooks, plugins, or MCP setup, or optimize their CLI customization setup.
SKILL.md
8.4 KB, as published. Nobody here has run it
Copilot CLI Setup Audit
This skill audits a repository's GitHub Copilot CLI customization setup and provides actionable recommendations.
When to use this skill
- User asks to audit or review their Copilot setup
- User wants to optimize their CLI customization
- User asks "what's missing from my Copilot config?"
- Setting up a new project and want best-practice guidance
Audit Checklist
1. Custom Instructions
Check for existence and content of:
| File | Location | Purpose |
|---|---|---|
copilot-instructions.md | .github/ | Repository-wide instructions |
*.instructions.md | .github/instructions/ | Path-specific instructions |
AGENTS.md | Root directory | Agent instructions |
CLAUDE.md | Root directory | Cross-tool compatibility |
GEMINI.md | Root directory | Cross-tool compatibility |
Validate:
- YAML frontmatter is valid
applyToglobs match intended files (for scoped instructions)- Instructions are specific and actionable, not vague
- No conflicting instructions between files
2. Custom Agents
Check for agents in:
| Location | Type |
|---|---|
.github/agents/*.agent.md | Repository-level |
.claude/agents/*.agent.md | Alternative project-level |
~/.copilot/agents/*.agent.md | User-level |
Validate:
descriptionis present (required)nameis present (recommended)toolslist is explicit and minimal (security best practice)target, if present, is eithergithub-copilotorvscodedisable-model-invocationanduser-invocableare intentional when presentmcp-servers, if present, uses the MCP configuration schema- Prompt text is under 30,000 characters
3. Agent Skills
Check for skills in:
| Location | Type |
|---|---|
.github/skills/*/SKILL.md | Project skills |
.agents/skills/*/SKILL.md | Alternative project skills |
.claude/skills/*/SKILL.md | Alternative project skills |
~/.copilot/skills/*/SKILL.md | Personal skills |
~/.agents/skills/*/SKILL.md | Shared personal skills |
Validate:
nameanddescriptionare present in frontmatter- Description is specific enough for Copilot to decide when to load
- Skill directory name matches the
namefield - Optional
allowed-toolsis narrow and does not pre-approve shell access without a clear reason - Optional
user-invocableanddisable-model-invocationfields match the intended invocation model - Additional resources (scripts, examples) are referenced correctly
4. Hooks
Check for hooks in .github/hooks/*.json.
Validate:
- JSON is valid and uses
version: 1 - Hook events are intentional (
sessionStart,preToolUse,permissionRequest,notification, etc.) - Command hooks use short timeouts and scoped working directories when possible
- HTTP hooks use HTTPS for security-sensitive events and avoid broad environment variable exposure
5. MCP Configuration
Check MCP configuration in:
| File | Scope |
|---|---|
.github/mcp.json | Repository |
.mcp.json | Workspace |
~/.copilot/mcp-config.json | User |
Validate:
- Valid JSON structure
- Built-in MCP servers are understood: GitHub, Playwright, fetch, and time
- Any additional MCP servers configured
- Tool filters are explicit (
tools) and do not expose more tools than needed - Secrets are not committed; use environment expansion for sensitive values
- OAuth and
/mcp authrequirements are documented for remote servers - OIDC is only enabled for servers designed to receive Copilot-issued identity tokens
filterMappingis intentional and safe for the server output shape- Remote servers are trusted and comply with enterprise allowlists where applicable
6. Plugins
Check whether the repository relies on plugin-provided skills, agents, or commands.
Validate:
- Plugin usage is documented for collaborators
- Plugin-provided skills do not duplicate local project skills unless intentionally overridden
- Local customizations remain usable without private plugins when possible
7. Permission Policy
Check CLI permission defaults and documented automation patterns.
Validate:
- Automation examples use explicit
--allow-tool,--deny-tool,--allow-url, and--deny-urlpatterns - Shell approvals are scoped, for example
shell(git:*), instead of blanketshellwhere possible - Dangerous operations such as
git push, package publishing, or destructive filesystem commands are denied or gated --allow-all/--yolois documented only for trusted local use, not shared automation
8. Programmatic Usage
Check whether the repository documents scripted or CI use of Copilot CLI.
Validate:
- Prompt-mode examples use
copilot --promptor-p - Machine-readable output uses
--output-format=jsonwhen downstream parsing is expected - Non-interactive runs define needed tool, path, and URL permissions up front
- Token guidance prefers
COPILOT_GITHUB_TOKENand least-privilege fine-grained tokens - Shared logs do not capture secrets, full prompts, or sensitive source snippets
9. OpenTelemetry Monitoring
Check whether monitoring is needed for team, CI, or enterprise usage.
Validate:
- OTel configuration is documented when agent usage must be observable
- OTel exporter variables such as
OTEL_EXPORTER_OTLP_ENDPOINTorCOPILOT_OTEL_FILE_EXPORTER_PATHare intentional - Content capture is disabled by default and only enabled in trusted environments
- Monitoring docs explain that traces can include agent turns, LLM calls, tool execution, token usage, and errors
10. Built-in Agents and Advanced Commands
Check whether built-in capabilities are documented before adding custom equivalents.
Validate:
- Built-in agents such as
explore,research,task,code-review, andgeneral-purposeare considered - Advanced commands such as
/pr,/delegate,/remote,/keep-alive,/undo, and/rewindare documented if used - Experimental commands are marked as experimental where applicable
11. Alternative Command Format
Check for Claude-style command files if the repository uses cross-agent command workflows.
Validate:
.claude/commands/*.mdfiles are documented as lower-priority command-style alternatives to skills- Command files do not duplicate higher-priority project skills unless intentionally overridden
12. Project-Type Detection
Detect the project type from:
package.json→ Node.js / JavaScript / TypeScriptrequirements.txt/pyproject.toml→ Pythongo.mod→ GoCargo.toml→ Rust*.csproj/*.sln→ .NETpom.xml/build.gradle→ Java
Tailor recommendations to the detected project type.
Audit Report Format
## Copilot CLI Setup Audit Report
### ✅ What's Working Well
- [Specific positive findings]
### ⚠️ Warnings
- [Non-critical issues]
### ❌ Issues to Fix
- [Critical problems]
### 💡 Suggestions
- [Recommended improvements]
### Recommended Next Steps
1. [Priority-ordered actions]
Common Recommendations
For all projects
- Add
.github/copilot-instructions.mdwith project context, build commands, and testing approach - Add
AGENTS.mdat root with key conventions and architecture notes - Create at least one custom agent for the project's primary workflow
For specific languages
TypeScript/JavaScript:
- Add
*.instructions.mdwithapplyTo: "**/*.ts,**/*.tsx"for TS conventions - Consider a skill for running/debugging tests
Python:
- Add instructions for virtual environment, linting (ruff/flake8), and type hints
- Consider a skill for package management (pip/poetry/uv)
Go:
- Add instructions for
go fmt,go vet, and module conventions - Consider a skill for Go test patterns
Diagnostic Commands
Suggest the user run these in their Copilot CLI session:
/instructions # View which instruction files are loaded
/skills list # See available skills
/agent # See available agents
/env # Show loaded instructions, MCP servers, skills, agents, plugins, LSPs, and extensions
/mcp show # Check MCP server configuration
/plugin list # Check installed plugins
/usage # Review session usage metrics
/context # Inspect context window usage