LaunchKit · 2026
Back to Skills

gh

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull.

4
2.6k downloads
by @trumppo

Setup & Installation

openclaw skills install @trumppo/gh

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install gh

What This Skill Does

Runs authenticated GitHub operations from the terminal using the gh CLI. Covers repo creation, cloning, forking, issue management, pull requests, and releases. Prefers explicit, idempotent commands and returns URLs for created resources.

Keeps the full GitHub workflow in the terminal, eliminating browser context switches when managing repos, issues, and PRs alongside code.

When to use it

  • Create a private GitHub repo from a local project directory
  • File and comment on issues without switching to the browser
  • Open a pull request from the current branch
  • Fork a repo and clone it locally for upstream contribution
  • Publish a versioned release with notes

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: open a pull request for my current branch

AGENT
  1. 1Check auth status with gh auth status
  2. 2View current repo context to confirm owner and default branch
  3. 3Run gh pr create with a title and body based on recent commits
  4. 4Return the pull request URL
OUTPUT

Pull request URL, e.g. https://github.com/owner/repo/pull/42

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

GitHub accountGitHub CLI (gh) installed