copilot-usage-metrics — GitHub Copilot skill
This skill retrieves GitHub Copilot usage metrics for organizations and enterprises through GitHub CLI and the REST API. Use it to review adoption, suggestions, acceptance rates, or chat activity.
npx skills add github/awesome-copilot --skill copilot-usage-metricsWhat copilot-usage-metrics does
copilot-usage-metrics retrieves aggregated or per-user data for an organization or enterprise. It reports active users, acceptance rate, suggestion counts, and Copilot Chat interactions. Per-user results are shown in tables.
The skill includes four shell scripts: get-org-metrics.sh, get-org-user-metrics.sh, get-enterprise-metrics.sh, and get-enterprise-user-metrics.sh. A day can be passed in YYYY-MM-DD format, and comparisons across days highlight trends. History reaches up to 1 year, with data starting October 10, 2025.
It requires GitHub Enterprise Cloud, gh, an enabled “Copilot usage metrics” policy, and suitable access. Use an enterprise owner or billing manager role, or a token with manage_billing:copilot or read:enterprise. If the API returns 403, check the token scopes and enterprise policy. Install it for organization-level reporting; it does not fit personal Copilot statistics.
What it helps with
- retrieve aggregated Copilot metrics for an organization
- list Copilot usage for each user
- check Copilot suggestion acceptance rates
- compare Copilot figures across dates
- investigate a 403 response from the metrics API
Example prompts for the agent
- Show aggregated Copilot usage metrics for my organization.
- Give me a per-user Copilot breakdown for a day in `YYYY-MM-DD` format.
- Compare enterprise Copilot metrics across several dates and highlight trends.
How to install copilot-usage-metrics
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill copilot-usage-metrics2GitHub CLI
gh skill install github/awesome-copilot copilot-usage-metrics3Manually: put the files in place
.github/skills/copilot-usage-metrics/SKILL.md1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill copilot-usage-metrics -a claude-code2Manually: put the files in place
~/.claude/skills/copilot-usage-metrics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/copilot-usage-metrics/
Manually: put the files in place
.agents/skills/copilot-usage-metrics/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/copilot-usage-metrics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
Platform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/copilot-usage-metricsManually: put the files in place
.devin/skills/copilot-usage-metrics/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Similar
Questions about copilot-usage-metrics
How do I install copilot-usage-metrics in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill copilot-usage-metrics. You can also use gh skill install github/awesome-copilot copilot-usage-metrics.
What does copilot-usage-metrics do?
The skill uses gh and the REST API to retrieve aggregated or per-user GitHub Copilot metrics for organizations and enterprises. It reports active users, suggestions, acceptance rate, and Copilot Chat interactions.
What is required to use Copilot usage metrics?
You need GitHub Enterprise Cloud, an enabled “Copilot usage metrics” policy, and suitable permissions. Use an enterprise owner or billing manager role, or a token with manage_billing:copilot or read:enterprise.
Source text
SKILL.md · MIT
--- 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 <org> [day]` — Get aggregated Copilot usage metrics for an organization. Optionally pass a specific day in YYYY-MM-DD format. - `get-org-user-metrics.sh <org> [day]` — Get per-user Copilot usage metrics for an organization. Optionally pass a specific day. ### Enterprise metrics - `get-enterprise-metrics.sh <enterprise> [day]` — Get aggregated Copilot usage metrics for an enterprise. Optionally pass a specific day. - `get-enterprise-user-metrics.sh <enterprise> [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.
© github · MIT · github/awesome-copilot