GitHub CLI Automation (gh-view) for Openclaw

A comprehensive skill for end-to-end GitHub operations directly from the command line using the GitHub CLI.

iiroak
v1.0.0
Apr 11, 2026
0
779
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gh-complete

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 gh-complete 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 Automation (gh-view)?

This skill enables AI agents to interact with the full GitHub ecosystem through the official GitHub CLI (gh). It provides a robust interface for managing repositories, issues, pull requests, and automation workflows without needing a graphical interface or browser. By integrating this into Openclaw Skills, developers can bridge the gap between their local development environment and GitHub cloud features through structured, repeatable command execution.

The skill is built to support the complete lifecycle of software development, from initial repository creation and branch management to CI/CD monitoring and release distribution. It emphasizes the use of structured JSON output and JQ filtering, making it an ideal choice for programmatic automation and multi-agent workflows.

GitHub CLI Automation (gh-view) Use Cases

  • Managing pull requests and code reviews programmatically to streamline the PR lifecycle.
  • Automating issue creation, labeling, and state transitions based on project triggers.
  • Monitoring and triggering GitHub Actions workflows and managing CI/CD runs.
  • Handling repository administration tasks like forking, syncing, and secret management.
  • Performing global searches across code, commits, and organizations to gather technical intelligence.

How GitHub CLI Automation (gh-view) Works

  1. The user installs the GitHub CLI on their system and authenticates using interactive login or environment-based tokens.
  2. The AI agent identifies the specific GitHub domain (e.g., Pull Requests, Issues, Actions) required for the current task.
  3. The skill executes the corresponding gh command, utilizing the --repo flag for explicit context if necessary.
  4. For automation tasks, the skill requests structured data using the --json flag to ensure parseable responses.
  5. The agent processes the output using JQ filters or direct JSON parsing to inform the next steps in the development workflow.

GitHub CLI Automation (gh-view) Setup

Install on Debian/Ubuntu

sudo apt update && sudo apt install gh -y

Authentication

Before use, authenticate with your GitHub account:

gh auth login

Verify Installation

gh --version

GitHub CLI Automation (gh-view) Data Schema & Taxonomy

The skill leverages structured JSON for all primary operations. Key data schemas include:

Resource Primary Fields
Pull Requests number, title, state, author, statusCheckRollup
Issues number, title, state, labels, assignee
Repositories name, description, owner, visibility, url
Workflow Runs id, status, conclusion, workflow_id, log-failed
Projects list, view, item-list, field-list

All commands support the --json <fields> and --jq <filter> flags for precise data extraction.

GitHub CLI Automation (gh-view) Advanced Features

  • Direct REST and GraphQL API access via gh api for functionality not covered by standard subcommands.
  • Comprehensive management of GitHub Codespaces, including lifecycle control and SSH connectivity.
  • Extensibility through GitHub Extensions, allowing for custom commands and specialized tools.
  • Advanced security management for repository, organization, and environment-level secrets and variables.
  • Integration with artifact attestations and repository rulesets for enterprise-grade governance.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*