360 Secure SkillHub
360 安全技能中心

GitHub Automation

该 Skill 通过 python scripts/gh_tool.py 调用 GitHub API,支持创建、列出、关闭和评论 issue,查看 PR 状态与合并情况,列出仓库、提交和分支,以及查看通知、用户资料和收藏仓库;使用 GITHUB_TOKEN 环境变量认证,需要仓库、issue、PR 和通知相关权限。

cloudcompile
cloudcompile
热度 59.31
最近更新 2026-05-18 11:36:54
分类:自动化依赖:代码执行 / 第三方 API应用场景:API 集成 / 工作流 / 任务管理 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add github-automation
Metadata
name
github-automation
description
Automate common GitHub tasks — create issues, check PR status, list repos, manage projects. Use when the user wants to interact with GitHub programmatically without opening the browser.

GitHub Automation

Streamline GitHub workflows from the command line. Create issues, check PRs, manage repos without switching contexts.

Usage

create issue: fix login bug
check my prs
list repos
close issue #123

Features

Issues

  • Create issues with title/body/labels
  • List open/closed issues
  • Close or comment on issues
  • Search issues

Pull Requests

  • Check PR status and reviews
  • List open PRs
  • Comment on PRs
  • Check merge status

Repositories

  • List user/org repos
  • Check repo stats
  • Get recent commits
  • Check branch status

User

  • Check notifications
  • Get user profile info
  • List starred repos

Script

# Create issue
python scripts/gh_tool.py issue create "Title" "Body" --repo owner/repo --labels bug

# List PRs
python scripts/gh_tool.py pr list --repo owner/repo

# Check notifications
python scripts/gh_tool.py notifications

Authentication

Uses GITHUB_TOKEN environment variable. Set it in your env:

export GITHUB_TOKEN=ghp_your_token_here

Token Permissions Needed

  • repo - Repository access
  • issues - Issue management
  • pull_requests - PR access
  • notifications - Read notifications

Examples

create issue in myrepo: bug - login fails with 500 error
check prs for pollinations/pollinations.ai
list my repos
close issue #42 in cloudgptapi

Output

  • Success/failure confirmation
  • Issue/PR numbers and URLs
  • Formatted lists with key info
  • Direct links to GitHub