GitHub CLI (gh) for Openclaw

A comprehensive command-line interface for GitHub that brings repositories, issues, pull requests, and GitHub Actions directly to your terminal.

tag-assistant
v1.0.0
Feb 16, 2026
6
11.7k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-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 github-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)?

GitHub CLI, or gh, is the official tool for interacting with GitHub from the command line. It streamlines the development workflow by allowing developers to manage the entire lifecycle of a project—from creating repositories and forking to managing complex pull request reviews and CI/CD pipelines through GitHub Actions. By integrating this into Openclaw Skills, users can automate repetitive tasks and interact with GitHub's REST and GraphQL APIs without leaving their terminal environment or coding agent interface.

This skill provides a bridge between local development and cloud-based collaboration, offering deep integration with features like Codespaces, Gists, and Projects V2. Whether you are scripting bulk issue updates or verifying software attestations, this tool is an essential component of the modern developer's toolkit within the ecosystem of Openclaw Skills.

GitHub CLI (gh) Use Cases

  • Automating repository creation and configuration for new projects.
  • Managing pull request lifecycles including creation, checkout, and merging.
  • Monitoring and re-running GitHub Actions workflows directly from the CLI.
  • Scripting bulk operations like closing stale issues or updating secrets across multiple repositories.
  • Interacting with Projects V2 for agile task management and roadmap tracking.
  • Developing and using custom extensions to expand CLI functionality.

How GitHub CLI (gh) Works

  1. Authenticate using gh auth login to establish a secure connection with your GitHub account or enterprise instance.
  2. Configure local defaults such as preferred git protocol, editor, and target repositories using gh config and gh repo set-default.
  3. Execute high-level commands for core entities like gh repo, gh pr, and gh issue to perform standard development tasks.
  4. Use the gh api command for advanced data retrieval or mutations via REST or GraphQL when specific subcommands are unavailable.
  5. Process and filter output using integrated JSON support and JQ expressions for seamless piping into other tools.
  6. Extend the base functionality by installing community-driven extensions or using the built-in Copilot suggestions.

GitHub CLI (gh) Setup

To get started with this component of Openclaw Skills, install the GitHub CLI using your preferred package manager:

# For macOS users
brew install gh

# For Debian/Ubuntu users
sudo apt install gh

After installation, authenticate your session:

gh auth login

Ensure you have the necessary scopes (like repo, workflow, or project) depending on your intended usage within the context of Openclaw Skills.

GitHub CLI (gh) Data Schema & Taxonomy

The GitHub CLI skill organizes data primarily through standard GitHub objects and terminal output formats. It supports structured data handling through several mechanisms:

Feature Description
JSON Output Most commands support --json followed by field names for structured data access.
JQ Filtering Use the --jq flag to parse and filter JSON responses directly in the CLI.
Go Templates Use the --template flag for custom terminal formatting and report generation.
Metadata Commands like gh repo view return comprehensive repository metadata including stars, languages, and visibility.

GitHub CLI (gh) Advanced Features

  • Full support for GraphQL API queries and mutations for complex data operations within Openclaw Skills.
  • Management of environment secrets and variables for GitHub Actions and Dependabot.
  • Integration with GitHub Codespaces for remote development environment management.
  • Command aliasing via gh alias to create custom, shortened workflows.
  • Attestation verification for securing software supply chains.
  • Programmatic scripting support with GH_PROMPT_DISABLED=1 for headless automation using Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*