GitHub CLI (gh) for Openclaw

A powerful AI skill for executing authenticated GitHub operations directly through the command line.

alvisdunlop
v1.0.5
Apr 16, 2026
0
845
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install alvis-gh-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install alvis-gh-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GitHub CLI (gh)?

The GitHub CLI (gh) skill empowers AI agents to interact directly with the GitHub ecosystem using official command-line tools. By leveraging Openclaw Skills, developers can automate repository management, issue tracking, and the complete pull request lifecycle without leaving their terminal or IDE context. This skill ensures consistent, idempotent operations for both private and public projects, making it an essential component for modern DevOps and collaborative development environments.

GitHub CLI (gh) Use Cases

  • Authenticating and checking GitHub account status via the command line.
  • Creating, cloning, and forking repositories with proper visibility settings.
  • Managing project issues by listing, creating, and adding comments to track progress.
  • Streamlining the pull request process from initial creation to final merging.
  • Automating software releases by generating version tags and detailed release notes.

How GitHub CLI (gh) Works

  1. Verify the current authentication status and repository context using core gh commands to ensure the agent has the necessary permissions.
  2. Execute specific GitHub operations such as repository creation or issue listing based on the requested developer task.
  3. Utilize explicit flags like --confirm to handle automated workflows safely without requiring interactive user prompts.
  4. Capture and report command output, including URLs for newly created resources, to provide immediate feedback within the Openclaw Skills framework.

GitHub CLI (gh) Setup

To use this skill, ensure the GitHub CLI is installed and configured on your system. Run the following command to verify your login status:

gh auth status

If you are not logged in, follow the prompts from gh auth login. To verify your current repository context, use:

gh repo view --json nameWithOwner,url,defaultBranchRef

GitHub CLI (gh) Data Schema & Taxonomy

This skill interacts with GitHub's API through the CLI and processes data according to the following structure:

Data Type Description Key Fields
Repository Metadata for GitHub repositories nameWithOwner, url, visibility, defaultBranchRef
Issues Project task tracking and management title, body, number, comments
Pull Requests Code review and integration workflows title, branch, mergeStatus, prNumber
Releases Versioned software distribution data tagName, title, notes, target

All operations within Openclaw Skills prefer explicit flags to maintain a clear metadata taxonomy and avoid ambiguous command states.

GitHub CLI (gh) Advanced Features

  • Idempotent repository creation using the --source and --remote flags for existing local projects.
  • Automated pull request merging using explicit methods such as --merge, --rebase, or --squash.
  • Support for private repository defaults to maintain security standards during automated creation.
  • Deep integration with local git environments for seamless upstream pushing and remote management.
  • High-limit data retrieval for issues and pull requests to support large-scale project auditing and management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*