copilot-usage-analytics

copilot-usage-analytics is a skill for Claude Code from ivegamsft/basecoat. It costs 83 tokens per session (413 once invoked), scanned A, original, MIT.

A guide to analysing GitHub Copilot CLI usage, including estimated session costs, model choices, and available usage data. It also provides report templates for summarising that information.

In plain words
What is it for?
Use it to estimate session costs, review model-routing efficiency, analyse agent dispatch patterns, document Copilot usage APIs, and prepare usage reports.
Why use it?
It helps teams understand which agent sessions or model choices may be expensive and what usage information can actually be retrieved. It separates estimates from data that an API directly provides.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to estimate session costs, review model-routing efficiency, analyse agent dispatch patterns, document Copilot usage APIs, and prepare usage reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivegamsft/basecoat/copilot-usage-analytics
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.

Any agent
npx skills add ivegamsft/basecoat --skill copilot-usage-analytics
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copilot-usage-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivegamsft/basecoat/copilot-usage-analytics/github.svg)](https://agentmods.dev/skills/ivegamsft/basecoat/copilot-usage-analytics)
Your own site
<a href="https://agentmods.dev/skills/ivegamsft/basecoat/copilot-usage-analytics"><img src="https://agentmods.dev/badge/skills/ivegamsft/basecoat/copilot-usage-analytics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copilot-usage-analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivegamsft/basecoat/copilot-usage-analytics"><img src="https://agentmods.dev/badge/skills/ivegamsft/basecoat/copilot-usage-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00083 $0.00413
Opus 5 $0.00042 $0.00206
Sonnet 5 $0.00017 $0.00083
Haiku 4.5 $0.00008 $0.00041

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

Security

Grade A, and why

copilot-usage-analytics 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 5d 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.

skills/copilot-usage-analytics/SKILL.md · 37 lines

What it actually says

Copilot Usage Analytics Skill

Estimate per-session Copilot CLI cost, analyze model-routing efficiency, track agent dispatch patterns, and document which GitHub Copilot usage APIs exist.

Reference Files

File Contents
references/api-landscape-detail.md Full API source table (metrics/billing/Power BI), response format, model routing guidance table
references/cost-estimation-guide.md 6-step estimation workflow, guardrails, agent pairing

Templates in This Skill

Template Purpose
templates/session-cost-estimate-template.md Per-session cost breakdown by dispatch, model, and estimated token usage
templates/model-routing-recommendation-template.md Recommendations for right-sizing model selection per task type
templates/api-landscape.md Reference map of GitHub Copilot usage APIs — what exists, what is missing, and workarounds
templates/usage-report.md Automated-style usage report with Handlebars placeholders for tooling integration

Pairing

Pair with session-analysis when a user asks for session metrics (top tools, assistant message volume, model changes, average turns). Use this skill to translate those findings into cost estimates, expensive-dispatch ranking, and routing ROI.

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 37 lines · 83 tokens per session scan A ce8c5a32d119

Subscribe to this mod's changes

copilot-usage-analytics is a skill published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 413 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

status-card-query

Create and maintain agent-authored Paperclip status cards, or compile a prose interest prompt into bounded CompanySearchQuery objects and write the first summary from the assigned Summarizer run.

paperclipai/paperclip · 40 tokens

anti-sleep

Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

sickn33/agentic-awesome-skills · 22 tokens

after-action-report

Run a structured after-action review (postmortem, retrospective) on a launch, incident, or completed project to capture timeline, root cause analysis, contributing factors, and actionable lessons. Use this skill whenever the user wants to run a postmortem, retrospective, AAR, or after-action review on any past event.…

rampstackco/claude-skills · 139 tokens

email-deliverability

Make sure email actually reaches inboxes. Use this skill when setting up email authentication (SPF, DKIM, DMARC), diagnosing emails landing in spam, planning a domain reputation strategy, monitoring sender reputation, or hardening against email spoofing. Triggers on email deliverability, SPF, DKIM, DMARC, spam folder…

rampstackco/claude-skills · 110 tokens

incident-response

Manage active production incidents through detection, triage, mitigation, communication, and resolution with structured roles and decision-making. Use this skill whenever the user has an active incident, a production issue, a service outage, a security incident, or needs to plan incident response procedures. Triggers…

rampstackco/claude-skills · 117 tokens

media-asset-management

Plan and run a media pipeline for images, video, and downloadable assets. Use this skill when designing image storage and delivery, choosing formats (WebP, AVIF), setting up responsive images, picking a video host, organizing a brand asset library, or auditing a slow image pipeline. Triggers on image pipeline, asset…

rampstackco/claude-skills · 111 tokens