搜索

PythonReactSEOPDF
GitHub Skill

github-cli

GitHub CLI (gh) wrapper for PR status, issues, and repository operations

GantisStorm☆ 62 仓库 Stars6 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

GitHub CLI helper skill for common gh operations. Requires gh CLI installed and authenticated.

Note: For creating/updating PR descriptions, use /mr-description-creator instead.

Actions

PR Operations

View PR status:

/github-cli pr status

View PR checks:

/github-cli pr checks

Merge PR:

/github-cli pr merge

View PR in browser:

/github-cli pr view --web

List PRs:

/github-cli pr list

Issue Operations

List issues:

/github-cli issue list

Create issue:

/github-cli issue create

View issue:

/github-cli issue view <number>

Repository Operations

View repo:

/github-cli repo view

Instructions

Step 1: Validate Environment

# Check gh is installed
gh --version

# Check gh is authenticated
gh auth status

If not installed, report: "Install gh CLI: https://cli.github.com" If not authenticated, report: "Run: gh auth login"

Step 2: Parse and Execute

Parse $ARGUMENTS and pass directly to gh:

gh $ARGUMENTS

Step 3: Report Result

Show gh output directly to user.

Examples

# View PR status
/github-cli pr status

# View PR checks (CI status)
/github-cli pr checks

# Merge current PR
/github-cli pr merge

# List open PRs
/github-cli pr list

# View PR in browser
/github-cli pr view --web

# List issues
/github-cli issue list

# Create issue interactively
/github-cli issue create

# View repo info
/github-cli repo view

# API calls
/github-cli api repos/{owner}/{repo}/pulls

# Any gh command works
/github-cli release list
/github-cli workflow list

Error Handling

Scenario Action
gh not installed "Install gh: https://cli.github.com"
Not authenticated "Run: gh auth login"
gh command fails Show gh error output

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-02
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!