跳到正文
Skillpedia
分析与电子表格40k · #7131

copilot-usage-metrics

它能做什么

这个工具可以查看你的公司或组织中有多少人在使用 GitHub Copilot,以及他们是如何使用的。它既可以提供总体汇总,也可以查看每个人的详细数据。

适用场景

  • ✓查看团队内 Copilot 的采用情况。
  • ✓了解 Copilot 提供了多少条建议。
  • ✓分析某一天的 Copilot 使用情况。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/copilot-usage-metrics/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/copilot-usage-metrics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请查看我的组织“TechCorp”在 2024 年 3 月 15 日的 Copilot 使用情况。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具通过特殊命令(脚本)直接从 GitHub 获取信息。它会先询问你想查看哪个组织或企业,以及你希望看到总体汇总还是每位用户的明细。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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 Enterprise Cloud 账户上拥有管理员权限,并且已启用 Copilot 使用策略。

能看到哪些数据?

你可以看到使用 Copilot 的人数、建议采纳率、提供的建议数量,以及 Copilot 聊天的互动次数。

能查看几年前的数据吗?

Copilot 使用数据从 2025 年 10 月 10 日开始提供,可以查看最长一年的数据。

详情

作者的原始描述

Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7131
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能