GitHub CLI Integration for Openclaw

A powerful integration utilizing the gh CLI to manage GitHub repositories, pull requests, and automated workflows directly through your AI agent.

yequanzheng
v1.0.1
Mar 19, 2026
0
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install fdksafs3

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 fdksafs3 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 enables seamless interaction with the GitHub platform by leveraging the official gh CLI. It allows developers and AI agents to perform complex repository management tasks without leaving the terminal or the agentic environment. By providing a structured way to interface with git-based projects, it serves as a critical component of the Openclaw Skills library for automated development lifecycles.

This skill is particularly effective for monitoring project health, managing code reviews, and executing advanced API queries. Whether you are debugging a failed CI/CD pipeline or listing issues with specific metadata, this integration ensures high efficiency and technical precision for any Openclaw Skills user.

GitHub CLI Integration Use Cases

  • Monitoring CI/CD status for pull requests to ensure code quality before merging.
  • Identifying and debugging failed steps within GitHub Action workflow runs.
  • Fetching granular repository data using the GitHub API for custom reporting.
  • Automating issue management and pull request tracking across multiple repositories.

How GitHub CLI Integration Works

  1. The AI agent invokes the GitHub skill using the gh command-line interface.
  2. Commands are scoped to specific repositories using the --repo flag or direct URLs for non-local contexts.
  3. The skill retrieves real-time data from GitHub, such as PR statuses or workflow logs.
  4. Results are processed, often utilizing --json and --jq filters to provide the agent with structured, actionable information.
  5. The agent interprets the CLI output to perform follow-up actions like fixing code or notifying team members.

GitHub CLI Integration Setup

To enable this skill within the Openclaw Skills environment, ensure the GitHub CLI is installed and authenticated:

# Install GitHub CLI
brew install gh

# Authenticate with your GitHub account
gh auth login

# Verify installation
gh --version

GitHub CLI Integration Data Schema & Taxonomy

The skill utilizes structured JSON output to ensure data integrity between GitHub and the AI agent. Key data points include:

Data Category Output Type Common Fields
Pull Requests JSON number, title, state, user.login
Workflow Runs List/Log run-id, status, conclusion
API Queries Custom JSON Configurable via --jq filters
Issues JSON number, title, labels

GitHub CLI Integration Advanced Features

  • Direct API access via gh api for retrieving data points not covered by standard subcommands.
  • Advanced filtering using .jq syntax to streamline complex JSON responses for agent processing.
  • Real-time CI/CD log analysis using the --log-failed flag to pinpoint deployment bottlenecks.
  • Support for multi-repo management in a single session by explicitly defining the owner/repo context.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*