← Back to Skills Marketplace
zhengxinjipai

GitHub CLI

by zhengxinjipai · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
606
Downloads
1
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install github-cli-tool
Description
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.
README (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)"'
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install github-cli-tool
  3. After installation, invoke the skill by name or use /github-cli-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug github-cli-tool
Version 1.0.0
License
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 606 downloads so far.

How do I install GitHub CLI?

Run "/install github-cli-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is GitHub CLI free?

Yes, GitHub CLI is completely free (open-source). You can download, install and use it at no cost.

Which platforms does GitHub CLI support?

GitHub CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created GitHub CLI?

It is built and maintained by zhengxinjipai (@zhengxinjipai); the current version is v1.0.0.

💬 Comments