GitHub for Openclaw

A powerful skill enabling AI agents to manage GitHub repositories, pull requests, and CI/CD pipelines using the official GitHub CLI.

hucy
v1.0.0
Apr 7, 2026
0
638
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install logo-generator-12

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 logo-generator-12 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 provides a comprehensive interface for AI agents to interact with GitHub repositories using the official gh CLI tool. By integrating this capability into Openclaw Skills, developers can automate complex version control tasks, manage the lifecycle of pull requests, and monitor repository health directly through natural language or automated triggers. This skill acts as a bridge between the AI agent and the GitHub ecosystem, ensuring that repository management remains efficient and scriptable.

Whether you are triaging issues, checking the status of automated tests, or fetching specific metadata via the GitHub API, this skill provides the necessary commands and structured output to make those operations seamless. It is an essential component for any developer looking to enhance their automation capabilities with Openclaw Skills.

GitHub Use Cases

  • Monitoring CI/CD pipeline health and identifying specific failure points in GitHub Actions workflow runs.
  • Managing pull request lifecycles including checking status, reviewing titles, and verifying contributors.
  • Retrieving and filtering repository issues to streamline project management and task tracking.
  • Executing advanced repository queries through the GitHub REST API when standard CLI commands are insufficient.

How GitHub Works

  1. The AI agent initiates a command using the gh CLI, targeting a specific repository or the current local git directory.
  2. For operations involving CI/CD, the agent uses the gh run or gh pr checks commands to poll status information.
  3. Complex data retrieval is handled by the gh api subcommand, which fetches raw repository data in JSON format.
  4. Data is frequently filtered using the --jq flag to extract only the most relevant fields for the agent's current task.
  5. The agent processes the filtered output to determine the next logical step, such as fetching logs for a failed build or listing the latest issues.

GitHub Setup

To use this skill within Openclaw Skills, ensure the GitHub CLI is installed and authenticated on your local machine.

# Install the GitHub CLI
brew install gh

# Authenticate with your GitHub account
gh auth login

Once authenticated, the skill can execute commands against any repository you have permissions for. Use the --repo flag if you are operating outside of a git-initialized directory.

GitHub Data Schema & Taxonomy

The skill leverages GitHub's structured data model. Most commands support the --json flag for programmatic access. Key data structures include:

Command Object Type Primary Fields Managed
gh pr Pull Request number, title, state, user, mergeable, checks
gh issue Issue number, title, labels, assignee, state
gh run Workflow Run id, status, conclusion, event, createdAt
gh api Custom Flexible access to any endpoint supported by the GitHub REST API

GitHub Advanced Features

  • Advanced log inspection using the --log-failed flag to isolate errors in CI/CD pipelines without downloading full log files.
  • Structured data processing via integration with jq, allowing Openclaw Skills to parse complex JSON payloads with high precision.
  • Direct access to the GitHub REST API via the gh api subcommand for experimental or low-level repository interactions.
  • Explicit repository targeting using the --repo owner/repo syntax, enabling the agent to work across multiple projects simultaneously.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*