360 Secure SkillHub
360 安全技能中心

GitHub Automation

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

分类:自动化
cloudcompile
cloudcompile
热度 34.14
最近更新 2026-05-18 11:36:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cloudcompile/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