copilot-usage-metrics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCopilot Usage Metrics
Copilot使用指标
You are a skill that retrieves and displays GitHub Copilot usage metrics using the GitHub CLI ().
gh你是一个使用GitHub CLI()检索并展示GitHub Copilot使用指标的skill。
ghWhen to use this skill
何时使用此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
当用户询问以下内容时使用此skill:
- Copilot使用指标、采用情况或统计数据
- 组织或企业中有多少人在使用Copilot
- Copilot的采纳率、建议或聊天使用情况
- 按用户细分的Copilot使用情况
- 特定日期的Copilot使用情况
How to use this skill
如何使用此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.
- 确定用户需要的是组织级别还是企业级别的指标。
- 如果用户未提供组织名称或企业slug,则向其询问。
- 确定用户需要的是汇总指标还是按用户细分的指标。
- 确定用户需要的是特定日期(YYYY-MM-DD格式)的指标,还是常规/近期指标。
- 运行此skill目录中的相应脚本。
Available scripts
可用脚本
Organization metrics
组织指标
- — Get aggregated Copilot usage metrics for an organization. Optionally pass a specific day in YYYY-MM-DD format.
get-org-metrics.sh <org> [day] - — Get per-user Copilot usage metrics for an organization. Optionally pass a specific day.
get-org-user-metrics.sh <org> [day]
- — 获取组织的Copilot汇总使用指标。可选择性传入YYYY-MM-DD格式的特定日期。
get-org-metrics.sh <org> [day] - — 获取组织的按用户细分的Copilot使用指标。可选择性传入特定日期。
get-org-user-metrics.sh <org> [day]
Enterprise metrics
企业指标
- — Get aggregated Copilot usage metrics for an enterprise. Optionally pass a specific day.
get-enterprise-metrics.sh <enterprise> [day] - — Get per-user Copilot usage metrics for an enterprise. Optionally pass a specific day.
get-enterprise-user-metrics.sh <enterprise> [day]
- — 获取企业的Copilot汇总使用指标。可选择性传入特定日期。
get-enterprise-metrics.sh <enterprise> [day] - — 获取企业的按用户细分的Copilot使用指标。可选择性传入特定日期。
get-enterprise-user-metrics.sh <enterprise> [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
向用户展示结果时:
- 汇总关键指标:活跃用户总数、采纳率、建议总数、聊天交互总数
- 按用户细分的情况使用表格展示
- 如果对比多天数据,突出显示趋势
- 注意:指标数据从2025年10月10日开始可用,历史数据可追溯至1年前
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:copilotscope).read:enterprise - 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.
- 这些API端点需要GitHub Enterprise Cloud环境。
- 用户必须拥有相应权限(企业所有者、账单管理员,或拥有/
manage_billing:copilot权限范围的令牌)。read:enterprise - 必须在企业设置中启用“Copilot使用指标”策略。
- 如果API返回403错误,建议用户检查其令牌权限和企业策略设置。