
Copilot Usage Metrics
- 8.7k installs
- 37.1k repo stars
- Updated July 28, 2026
- github/awesome-copilot
copilot-usage-metrics is an agent skill that Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
About
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API. --- 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. Ask for the org name or enterprise slug if not provided. Determine if they want **aggregated** metrics or **per-user** metrics.
- Copilot Usage Metrics
- 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 Metrics by the numbers
- 8,663 all-time installs (skills.sh)
- +22 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #107 of 4,386 Backend & APIs skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
copilot-usage-metrics capabilities & compatibility
- Capabilities
- copilot usage metrics · copilot usage metrics, adoption, or statistics · how many people are using copilot in their org o · copilot acceptance rates, suggestions, or chat u · per user copilot usage breakdowns
- Use cases
- documentation
What copilot-usage-metrics says it does
--- 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`).
Determine whether the user wants **organization** or **enterprise** level metrics.
Ask for the org name or enterprise slug if not provided.
npx skills add https://github.com/github/awesome-copilot --skill copilot-usage-metricsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 8.7k |
|---|---|
| repo stars | ★ 37.1k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | github/awesome-copilot ↗ |
What problem does copilot-usage-metrics solve for developers using this skill?
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
Who is it for?
Developers who need copilot-usage-metrics patterns described in the cached skill documentation.
Skip if: Skip when docs are empty or the task is outside the skill's documented scope.
When should I use this skill?
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
What you get
Actionable workflows and conventions from SKILL.md for copilot-usage-metrics.
- Copilot adoption and acceptance rate reports
- Per-user usage breakdowns
Files
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:enterprisescope). - 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.
#!/usr/bin/env bash
# Fetch aggregated Copilot usage metrics for an enterprise
# Usage: get-enterprise-metrics.sh <enterprise> [day]
# enterprise - GitHub enterprise slug
# day - (optional) specific day in YYYY-MM-DD format
set -euo pipefail
ENTERPRISE="${1:?Usage: get-enterprise-metrics.sh <enterprise> [day]}"
DAY="${2:-}"
if [ -n "$DAY" ]; then
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/enterprises/$ENTERPRISE/copilot/usage/day?day=$DAY"
else
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/enterprises/$ENTERPRISE/copilot/usage"
fi
#!/usr/bin/env bash
# Fetch per-user Copilot usage metrics for an enterprise
# Usage: get-enterprise-user-metrics.sh <enterprise> [day]
# enterprise - GitHub enterprise slug
# day - (optional) specific day in YYYY-MM-DD format
set -euo pipefail
ENTERPRISE="${1:?Usage: get-enterprise-user-metrics.sh <enterprise> [day]}"
DAY="${2:-}"
if [ -n "$DAY" ]; then
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/enterprises/$ENTERPRISE/copilot/usage/users/day?day=$DAY"
else
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/enterprises/$ENTERPRISE/copilot/usage/users"
fi
#!/usr/bin/env bash
# Fetch aggregated Copilot usage metrics for an organization
# Usage: get-org-metrics.sh <org> [day]
# org - GitHub organization name
# day - (optional) specific day in YYYY-MM-DD format
set -euo pipefail
ORG="${1:?Usage: get-org-metrics.sh <org> [day]}"
DAY="${2:-}"
if [ -n "$DAY" ]; then
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$ORG/copilot/usage/day?day=$DAY"
else
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$ORG/copilot/usage"
fi
#!/usr/bin/env bash
# Fetch per-user Copilot usage metrics for an organization
# Usage: get-org-user-metrics.sh <org> [day]
# org - GitHub organization name
# day - (optional) specific day in YYYY-MM-DD format
set -euo pipefail
ORG="${1:?Usage: get-org-user-metrics.sh <org> [day]}"
DAY="${2:-}"
if [ -n "$DAY" ]; then
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$ORG/copilot/usage/users/day?day=$DAY"
else
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$ORG/copilot/usage/users"
fi
Related skills
How it compares
Pick copilot-usage-metrics for GitHub Copilot org or enterprise analytics via gh; use general analytics skills when tracking application user metrics unrelated to Copilot.
FAQ
What does copilot-usage-metrics do?
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
When should I use copilot-usage-metrics?
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
Is copilot-usage-metrics safe to install?
Review the Security Audits panel on this page before installing in production.