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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- 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.
- Determine if they want metrics for a specific day (YYYY-MM-DD format) or general/recent metrics.
- 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.
常见问题
使用这个工具需要特殊权限吗?
需要。你需要在 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
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。