copilot-usage-metrics — скилл для GitHub Copilot
Скилл запрашивает метрики использования GitHub Copilot для организаций и enterprise через GitHub CLI и REST API. Нужен для проверки внедрения, подсказок и Copilot Chat.
npx skills add github/awesome-copilot --skill copilot-usage-metricsЧто делает copilot-usage-metrics
copilot-usage-metrics собирает сводные или пользовательские данные по организации либо enterprise. Он выводит активных пользователей, долю принятых подсказок, число предложений и взаимодействия с Copilot Chat. Для разбивки по людям использует таблицы.
В скилле есть четыре shell-скрипта: get-org-metrics.sh, get-org-user-metrics.sh, get-enterprise-metrics.sh и get-enterprise-user-metrics.sh. Можно передать день в формате YYYY-MM-DD; при сравнении дат скилл выделяет тренды. История доступна до 1 year, а данные начинаются с October 10, 2025.
Нужны GitHub Enterprise Cloud, gh, включённая политика «Copilot usage metrics» и права enterprise owner, billing manager либо токен со scope manage_billing:copilot или read:enterprise. При 403 стоит проверить scope токена и настройки политики. Ставьте скилл, если отвечаете за Copilot в организации; для личной статистики он не подходит.
Какие задачи решает
- получить сводные метрики Copilot для организации
- показать использование Copilot по каждому пользователю
- проверить долю принятых подсказок
- сравнить показатели Copilot по датам
- разобраться с ошибкой 403 при запросе метрик
Примеры запросов агенту
- Покажи сводные метрики использования Copilot для моей организации.
- Выведи разбивку Copilot по пользователям за конкретный день в формате
YYYY-MM-DD. - Сравни метрики enterprise по нескольким датам и выдели тренды.
Как установить copilot-usage-metrics
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill copilot-usage-metrics2GitHub CLI
gh skill install github/awesome-copilot copilot-usage-metrics3Вручную: положить файлы
.github/skills/copilot-usage-metrics/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill copilot-usage-metrics -a claude-code2Вручную: положить файлы
~/.claude/skills/copilot-usage-metrics/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/copilot-usage-metrics/
Вручную: положить файлы
.agents/skills/copilot-usage-metrics/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/copilot-usage-metrics/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/copilot-usage-metricsВручную: положить файлы
.devin/skills/copilot-usage-metrics/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора674
Весь набор →Похожие
Вопросы о copilot-usage-metrics
Как установить copilot-usage-metrics в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill copilot-usage-metrics. Также доступна команда gh skill install github/awesome-copilot copilot-usage-metrics.
Что делает copilot-usage-metrics?
Скилл получает через gh и REST API сводные либо пользовательские метрики GitHub Copilot для организации или enterprise. Он показывает активных пользователей, подсказки, acceptance rate и активность Copilot Chat.
Что нужно для работы с метриками Copilot?
Потребуются GitHub Enterprise Cloud, включённая политика «Copilot usage metrics» и подходящие права. Подойдут роли enterprise owner, billing manager или токен со scope manage_billing:copilot либо read:enterprise.
Исходный текст
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