GitHub for Openclaw

Integrate the GitHub CLI into your AI agent's workflow to manage PRs, issues, and workflow runs.

zhengxinjipai
v1.0.0
Mar 6, 2026
1
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-cli-tool

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-tool 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?

The GitHub skill empowers AI agents to perform complex GitHub operations using the official gh CLI. By leveraging this skill, your agent can monitor CI/CD pipelines, interact with pull requests, and query the GitHub API without leaving the development environment. It is an essential component for any automated development pipeline within the Openclaw Skills ecosystem.

GitHub Use Cases

  • Monitor CI/CD workflow runs and identify failure points in real-time.
  • List, view, and manage pull requests and issues across multiple repositories.
  • Perform advanced data extraction using the GitHub API with JQ filtering for structured analysis.
  • Automate repository maintenance and audit tasks directly from an AI agent interface.

How GitHub Works

  1. The AI agent detects a task requiring interaction with a GitHub repository.
  2. The agent utilizes the gh CLI binary installed on the host system to execute commands.
  3. Authentication is handled via existing GitHub CLI credentials stored on the local machine.
  4. Commands are executed with specific flags like --repo to ensure actions target the correct owner and repository.
  5. Output is captured and parsed as JSON, allowing the agent to process the results programmatically.

GitHub Setup

To use this skill, ensure the GitHub CLI (gh) is installed on your system. You can install it using the following commands based on your environment:

# For macOS users via Homebrew
brew install gh

# For Linux users via APT
sudo apt install gh

After installation, you must authenticate your CLI by running gh auth login to enable Openclaw Skills to interact with your private and public repositories securely.

GitHub Data Schema & Taxonomy

This skill utilizes the standard GitHub CLI response formats to maintain data integrity. By default, it leverages structured JSON output for improved agent comprehension and data manipulation.

Data Category Extraction Method Purpose
Issues gh issue list --json Track project tasks, labels, and bug reports
Pull Requests gh pr view --json Review code changes, CI status, and reviewer feedback
Actions/Runs gh run view --json Inspect CI/CD pipeline logs and step-by-step results
Custom API gh api --jq Access specific GitHub REST API endpoints for metadata

GitHub Advanced Features

  • Multi-repo support: Explicitly target any repository by passing the --repo flag in commands.
  • Targeted Debugging: Use the --log-failed flag to isolate CI errors without downloading entire log files.
  • Structured Data Filtering: Built-in integration with JQ for complex data transformation of GitHub metadata.
  • Extended API Access: Capability to run custom REST API queries for features not covered by standard CLI subcommands.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*