copilot-setup-audit

A repository audit for GitHub Copilot customization files and their setup. It checks items such as agents, prompts, instructions, skills, hooks, and tool configurations.

In plain words
What is it for?
Use it when setting up Copilot in a repository, reviewing an existing setup, migrating older chat modes, or improving team-wide consistency.
Why use it?
It reveals missing files, misplaced configuration, outdated patterns, and consistency or best-practice issues in a team setup.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/trsdn/github-copilot-agent/copilot-setup-audit
Any agent
npx skills add trsdn/github-copilot-agent --skill copilot-setup-audit
Clone the repo
git clone --depth 1 https://github.com/trsdn/github-copilot-agent

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.03853
Opus 5 $0.00022 $0.01927
Sonnet 5 $0.00009 $0.00771
Haiku 4.5 $0.00004 $0.00385

Measured 2d ago against content hash c20419cbd2e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

copilot-setup-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/copilot-setup-audit/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 412 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 412 lines · 44 tokens per session scan A c20419cbd2e9

Subscribe to this mod's changes

copilot-setup-audit is a skill published in the GitHub repository trsdn/github-copilot-agent (3 stars, last pushed 9d ago), licensed MIT. It adds 44 tokens to every session and 3,853 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

[object Object]

Skill "[object Object]" from microsoft/apm, covering what this package does, getting started, available primitives and included workflows.

microsoft/apm · 8 tokens

apm-usage

Activate when the user asks about APM (Agent Package Manager): installing, configuring, authoring, or troubleshooting AI-agent packages, dependencies, compilation, MCP servers, policy, or any apm CLI command.

microsoft/apm · 49 tokens

contract-skill

Hermetic Agent Plugins lifecycle contract.

microsoft/apm · 10 tokens

create-skill-sample

This skill should be used when the user asks to "create a new skill sample", "add a skill", "scaffold a new skill", "contribute a skill", "create a GitHub Copilot skill", "build a custom skill", or needs to create a new GitHub Copilot custom skill sample with proper folder structure, SKILL.md, README, and sample.json…

pnp/copilot-prompts · 102 tokens

create-system-prompt

This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a new agent", "build an agent", or needs to create a new agent instruction sample with proper folder structure, README…

pnp/copilot-prompts · 99 tokens

copilot-studio-agent-documenter

Generate comprehensive documentation for Microsoft Copilot Studio agents from exported Dataverse solutions using the Power Platform CLI. Use when asked, to analyse the solution with the agents file and create documentation from the contents.

pnp/copilot-prompts · 47 tokens