← 返回 Skills 市场
zhengxinjipai

GitHub CLI

作者 zhengxinjipai · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
606
总下载
1
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install github-cli-tool
功能描述
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
使用说明 (SKILL.md)

GitHub Skill

Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.

Pull Requests

Check CI status on a PR:

gh pr checks 55 --repo owner/repo

List recent workflow runs:

gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

gh run view \x3Crun-id> --repo owner/repo

View logs for failed steps only:

gh run view \x3Crun-id> --repo owner/repo --log-failed

API for Advanced Queries

The gh api command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'

JSON Output

Most commands support --json for structured output. You can use --jq to filter:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
安全使用建议
This skill simply gives the agent recipes for using the official gh CLI. Before installing: ensure you trust the agent to run gh commands under your account (those commands will use whichever GitHub credentials are already configured on the machine), prefer installing gh from your OS package manager (brew/apt) or GitHub's official releases, and be cautious about granting autonomous action if you want to prevent the agent from performing write operations (merges, issue edits, workflow reruns) — consider limiting the token or testing with read-only commands first.
功能分析
Type: OpenClaw Skill Name: github-cli-tool Version: 1.0.0 The skill is a standard wrapper for the official GitHub CLI (`gh`). The `SKILL.md` and `skill.json` files contain legitimate usage examples and installation instructions via trusted package managers (brew, apt), with no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name and description match the declared requirements (the gh binary). The brew/apt install entries are appropriate for installing GitHub CLI.
Instruction Scope
SKILL.md only instructs running gh commands (pr, run, api, issue) and explains flags; it does not request unrelated files, environment variables, or external endpoints.
Install Mechanism
Installers are standard package managers (brew, apt) for the gh formula/package — low-risk and proportionate to the skill's purpose.
Credentials
The skill requests no env vars, which is appropriate. Note: gh uses whatever local GitHub authentication is configured (gh auth, GITHUB_TOKEN, or credential helpers), so the skill will operate with your existing GitHub credentials if present.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or modify other skills' configs; autonomous invocation is allowed but is the platform default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-cli-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-cli-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the GitHub CLI integration skill. - Provides instructions for using the `gh` CLI for issues, pull requests, workflow runs, and advanced API queries. - Includes example commands for checking PR statuses and workflow runs. - Describes use of `--repo`, `--json`, and `--jq` options for more control and output customization. - Details installation options for the GitHub CLI via Homebrew and apt.
元数据
Slug github-cli-tool
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

GitHub CLI 是什么?

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 606 次。

如何安装 GitHub CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-cli-tool」即可一键安装,无需额外配置。

GitHub CLI 是免费的吗?

是的,GitHub CLI 完全免费(开源免费),可自由下载、安装和使用。

GitHub CLI 支持哪些平台?

GitHub CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitHub CLI?

由 zhengxinjipai(@zhengxinjipai)开发并维护,当前版本 v1.0.0。

💬 留言讨论