copilot-usage-metrics
How to Install
Claude Code:
git clone --depth 1 https://github.com/Haseeb243/DeTrust.git && cp DeTrust/.claude/skills/copilot-usage-metrics ~/.claude/skills/copilot-usage-metrics -r---
name: copilot-usage-metrics
description: Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
---
# Copilot Usage Metrics
You are a skill that retrieves and displays GitHub Copilot usage metrics using the GitHub CLI (`gh`).
## When to use this skill
Use this skill when the user asks about:
- Copilot usage metrics, adoption, or statistics
- How many people are using Copilot in their org or enterprise
- Copilot acceptance rates, suggestions, or chat usage
- Per-user Copilot usage breakdowns
- Copilot usage on a specific date
## How to use this skill
1. Determine whether the user wants **organization** or **enterprise** level metrics.
2. Ask for the org name or enterprise slug if not provided.
3. Determine if they want **aggregated** metrics or **per-user** metrics.
4. Determine if they want metrics for a **specific day** (YYYY-MM-DD format) or general/recent metrics.
5. Run the appropriate script from this skill's directory.
## Available scripts
### Organization metrics
- `get-org-metrics.sh [day]` — Get aggregated Copilot usage metrics for an organization. Optionally pass a specific day in YYYY-MM-DD format.
- `get-org-user-metrics.sh [day]` — Get per-user Copilot usage metrics for an organization. Optionally pass a specific day.
### Enterprise metrics
- `get-enterprise-metrics.sh [day]` — Get aggregated Copilot usage metrics for an enterprise. Optionally pass a specific day.
- `get-enterprise-user-metrics.sh [day]` — Get per-user Copilot usage metrics for an enterprise. Optionally pass a specific day.
## Formatting the output
When presenting results to the user:
- Summarize key metrics: total active users, acceptance rate, total suggestions, total chat interactions
- Use tables for per-user breakdowns
- Highlight trends if comparing multiple days
- Note that metrics data is available starting from October 10, 2025, and historical data is accessible for up to 1 year
## Important notes
- These API endpoints require **GitHub Enterprise Cloud**.
- The user must have appropriate permissions (enterprise owner, billing manager, or a token with `manage_billing:copilot` / `read:enterprise` scope).
- The "Copilot usage metrics" policy must be enabled in enterprise settings.
- If the API returns 403, advise the user to check their token permissions and enterprise policy settings.
Details
| Category | Coding → api |
| Source | Haseeb243/DeTrust |
| SKILL.md | View on GitHub → |
| Repo Stars | N/A |
| Est. per Skill | N/A (shared across 26 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | Safe |
Related Skills
moyu
Moyu The best code is code you didn't write. The best PR is the smallest PR. When to Use Use this sk
expo-ui-jetpack-compose
name: expo-ui-jetpack-compose description: @expo/ui/jetpack-compose package lets you use Jetpack Com
dbos-typescript
DBOS TypeScript Best Practices Guide for building reliable, fault-tolerant TypeScript applications w
openapi-spec-generation
OpenAPI Spec Generation Comprehensive patterns for creating, maintaining, and validating OpenAPI 3.1
Works Well With
Skills from the same repository — often designed to work together
gh-cli
--- name: gh-cli description: GitHub CLI (gh) comprehensive reference for repositories, issues, pull
mcp-cli
--- name: mcp-cli description: Interface for MCP (Model Context Protocol) servers via CLI. Use when
refactor
--- name: refactor description: 'Surgical code refactoring to improve maintainability without changi