GitHub CLI Integration for Openclaw

A powerful integration that enables AI agents to manage GitHub repositories, pull requests, and CI/CD pipelines using the official gh CLI.

yqghlx
v0.0.1
Apr 1, 2026
0
810
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-test

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-test 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 Integration?

The GitHub skill provides a robust interface for AI agents to interact with GitHub repositories directly through the gh CLI. By leveraging this tool, agents can move beyond simple code edits to perform complex repository management tasks, such as tracking development lifecycles and monitoring automation status. This integration is a cornerstone of the Openclaw Skills ecosystem for developers seeking to automate their GitHub workflows.

It allows for deep inspection of repository states, including issues, pull requests, and GitHub Actions. Whether working within a local git directory or targeting remote repositories via URL, this skill ensures that your AI coding agent has full visibility and control over the collaborative aspects of your codebase.

GitHub CLI Integration Use Cases

  • Automating the review and status tracking of pull requests.
  • Monitoring and debugging failed GitHub Actions workflow runs.
  • Programmatic retrieval of repository metadata using advanced API queries.
  • Generating reports on project issues and contributors directly into the workspace.

How GitHub CLI Integration Works

  1. The agent identifies a GitHub-related task, such as checking a PR status or listing issues.
  2. It constructs a command using the gh CLI, ensuring the correct repository context is provided via the --repo flag if necessary.
  3. The skill executes the command and captures the output, often utilizing --json and --jq flags for precise data parsing.
  4. The agent processes the structured data to provide insights, fix CI failures, or update repository items.

GitHub CLI Integration Setup

To use this integration within Openclaw Skills, ensure the GitHub CLI is installed and authenticated on your system.

# Install gh CLI (example for macOS)
brew install gh

# Authenticate with your GitHub account
gh auth login

GitHub CLI Integration Data Schema & Taxonomy

The skill primarily processes structured data returned from the GitHub API. Key data structures include:

Feature Data Type Description
Pull Requests JSON Object Includes fields like number, title, state, and CI check results.
Workflow Runs List/Object Contains run IDs, statuses, and step-by-step logs.
Issues JSON List Filterable lists of repository issues with metadata.
API Responses Dynamic Custom schemas returned via the gh api endpoint and filtered by JQ.

GitHub CLI Integration Advanced Features

  • Advanced JSON filtering and transformation using integrated JQ support.
  • Deep CI/CD integration with the ability to fetch and analyze failed workflow logs specifically.
  • Raw API access via gh api to reach endpoints not covered by standard CLI subcommands.
  • Support for multi-repository management by explicitly defining the owner/repo context.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*