360 Secure SkillHub
360 安全技能中心

GitHub Team Collaboration

面向 GitHub 团队的协作工具,支持 PR 自动分配审查者与状态查询、Issue 分类与指派、里程碑/冲刺进度跟踪,以及审查时长和贡献者等团队指标分析。通过 GITHUB_TOKEN 调用 GitHub API,脚本以 Python 函数形式使用。

kaiyuelv
kaiyuelv
热度 39.72
最近更新 2026-05-11 17:44:22
分类:协作依赖:代码执行 / 第三方 API应用场景:代码审查 / 任务管理 / 工作流 / 报告撰写 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github-team-collaboration
Metadata
name
github-team-collaboration
description
GitHub team collaboration toolkit for managing team workflows, code reviews, issue tracking, sprint planning, and team metrics. Supports PR automation, issue triage, milestone management, and team productivity analytics. Use when teams need to coordinate development workflows, automate code review processes, track sprint progress, or analyze team collaboration metrics on GitHub.

GitHub Team Collaboration

A comprehensive toolkit for managing GitHub team workflows, code reviews, and project coordination.

Features

  • Pull Request Automation: Auto-assign reviewers, check PR status, merge strategies
  • Issue Management: Triage, label, assign, and track issues
  • Sprint Planning: Milestone management, burndown charts, velocity tracking
  • Team Metrics: PR review time, issue resolution time, contributor stats
  • Workflow Automation: Branch protection, status checks, release management

Usage

Manage Pull Requests

from scripts.github_team import list_open_prs, assign_reviewers

# List open PRs
prs = list_open_prs("myorg", "myrepo")

# Auto-assign reviewers
assign_reviewers("myorg", "myrepo", 123, ["alice", "bob"])

Track Sprint Progress

from scripts.github_team import get_milestone_progress

# Get sprint progress
progress = get_milestone_progress("myorg", "myrepo", "Sprint-15")
print(f"Closed: {progress['closed_issues']}/{progress['total_issues']}")

Team Metrics

from scripts.github_team import get_team_metrics

# Analyze team metrics
metrics = get_team_metrics("myorg", "myrepo", days=30)
print(f"Avg review time: {metrics['avg_review_time']} hours")

GitHub API Authentication

Set your GitHub token as an environment variable:

export GITHUB_TOKEN="ghp_your_token_here"

Supported Operations

  • Repository management
  • Pull request lifecycle
  • Issue tracking and triage
  • Milestone and project management
  • Team member activity
  • Release management
  • Webhook configuration