GitHub Skill for Openclaw

A powerful integration that leverages the GitHub CLI to automate pull requests, issues, and workflow monitoring directly within your AI agent environment.

xiaomaju-888
v1.0.0
Apr 5, 2026
0
766
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-xiaoshu

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-xiaoshu 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 Skill?

The GitHub skill enables your AI agent to interact seamlessly with the GitHub platform by utilizing the official gh CLI tool. It serves as a bridge for developers to automate repetitive tasks like checking CI/CD status, managing issue lifecycles, and querying the GitHub API for advanced repository metadata. By incorporating Openclaw Skills like this into your development environment, you can significantly reduce context switching and accelerate your software delivery lifecycle.

This skill is designed to provide granular control over repository management, allowing for high-level operations like PR reviews or low-level API queries. It ensures that your AI coding assistant has the same level of access and capability as a developer using the terminal, making it an essential component of modern Openclaw Skills collections.

GitHub Skill Use Cases

  • Monitoring CI/CD status and analyzing logs for specific pull requests to debug failed builds.
  • Automating the management of repository issues, including listing, viewing, and filtering tasks.
  • Fetching structured repository data using the GitHub API for custom reporting and analysis.
  • Listing and inspecting the details of recent GitHub Actions workflow runs to ensure deployment health.

How GitHub Skill Works

  1. The AI agent invokes the gh CLI commands to communicate securely with GitHub's servers.
  2. Repository context is established either automatically via the current working directory or explicitly using the --repo flag.
  3. Specific subcommands such as pr, issue, or run are executed to perform actions or retrieve real-time data.
  4. Structured data is requested using the --json flag, allowing the agent to programmatically parse repository information.
  5. Results are refined using jq expressions to provide the most relevant and concise technical answers to the user.

GitHub Skill Setup

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

# Check if the GitHub CLI is installed and authenticated
gh auth status

# If not authenticated, follow the prompts to log in
gh auth login

# Verify connectivity to your target repository
gh repo view owner/repo

GitHub Skill Data Schema & Taxonomy

The GitHub skill organizes and retrieves data using structured formats provided by the GitHub CLI. Below is how data is typically handled:

Data Type Retrieval Method Description
Pull Request Metadata gh pr view --json Includes status, mergeability, check results, and author details.
CI/CD Logs gh run view --log-failed Detailed output from GitHub Actions steps that encountered errors.
Issue Objects gh issue list --json Structured lists containing issue numbers, titles, and labels.
Custom API Data gh api Raw JSON responses from any GitHub REST API endpoint.

GitHub Skill Advanced Features

  • Direct integration with GitHub Actions for real-time CI/CD debugging and failed step log analysis.
  • Powerful data extraction capabilities using the gh api command combined with jq for complex data manipulation.
  • Programmatic interaction support via the --json flag, a core strength for agents using Openclaw Skills.
  • Support for multi-repository management using the global --repo flag to act on repositories outside the current path.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*