GitHub CLI Skill for Openclaw

A powerful integration utilizing the GitHub CLI to manage pull requests, monitor workflow runs, and perform advanced repository queries.

yequanzheng
v1.0.0
Mar 19, 2026
0
932
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install self-improving-agent22

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 self-improving-agent22 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 Skill?

The GitHub skill empowers your AI agent to interact seamlessly with the GitHub ecosystem using the official gh CLI. This skill bridges the gap between local development and remote repository management, allowing for deep introspection of project health without leaving the terminal environment.

By leveraging Openclaw Skills, developers can automate the monitoring of CI/CD pipelines, extract specific repository metadata via the GitHub API, and manage the lifecycle of pull requests and issues. It is designed to work efficiently both within git-initialized directories and on remote repositories by specifying owner/repo parameters.

GitHub CLI Skill Use Cases

  • Monitoring CI status on active pull requests to ensure code quality before merging.
  • Auditing failed GitHub Actions workflow runs to identify specific step failures and logs.
  • Automating the retrieval of issue and PR data for project management reporting.
  • Executing advanced repository queries through the GitHub API for data not covered by standard commands.

How GitHub CLI Skill Works

  1. The agent receives a command to interact with a GitHub repository.
  2. It verifies the presence of the gh CLI and authenticates if necessary.
  3. For remote interactions, it appends the --repo flag or uses direct URLs to target specific repositories.
  4. Commands are executed to fetch real-time data such as PR status, run logs, or API responses.
  5. The output is processed, often utilizing JSON and jq filtering for precise data extraction and presentation.

GitHub CLI Skill Setup

To enable this skill, ensure the GitHub CLI is installed and authenticated on your system.

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

# Authenticate with your GitHub account
gh auth login

# Test the skill by listing issues
gh issue list --repo owner/repo

GitHub CLI Skill Data Schema & Taxonomy

The skill utilizes structured output to ensure data integrity and ease of parsing for the AI agent.

Data Type Extraction Method Purpose
PR Status gh pr checks Verifying CI/CD pipeline results.
Workflow Logs gh run view --log-failed Debugging failed automation steps.
API Metadata gh api --jq Custom data retrieval for repo entities.
Structured Lists --json <fields> Generating machine-readable summaries.

GitHub CLI Skill Advanced Features

  • Direct GitHub API access via gh api for limitless extensibility.
  • Granular log inspection with --log-failed to minimize data noise during debugging.
  • Integrated jq support for complex filtering and transformation of JSON responses.
  • Cross-repository support enabling management of multiple projects from a single interface.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*