MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
Coding Agents & IDEs
💻

Github

Control GitHub from your AI agent — manage issues, PRs, CI runs, and raw API queries via the `gh` CLI.

Peter Steinbergerv1.0.0
ProductivityAutomationAPICLIDeveloper Tool
Connecting to VM...
Connecting to VM...
npx clawhub@latest install github
153Current Installs
1.5kAll-time Installs
📦
v1.0.0Version
View Source(ClawHub)

Github Skill Overview

The GitHub skill gives your AI agent direct access to GitHub through the official gh CLI. It covers the full day-to-day workflow: triaging issues, reviewing and checking pull requests, monitoring CI pipeline runs, and querying any GitHub API endpoint for data that standard subcommands don't expose. Works with any repository by passing --repo owner/repo or a URL, so it isn't tied to a local git checkout.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install github
or

Click the Install button at the top of this page for one-click setup

When to Use Github

Best Fit

  • You want an agent to monitor or triage GitHub issues and pull requests on your behalf.
  • You need to inspect CI/CD pipeline status — listing workflow runs, viewing failed step logs, or diagnosing a broken build.
  • You need structured JSON output from GitHub for downstream processing or reporting.
  • You want to query GitHub REST API endpoints that go beyond what standard gh subcommands expose (e.g. fetching specific PR fields with --jq filters).

When Not to Use

  • You need to interact with GitHub at a Git protocol level (cloning, pushing commits, rebasing) — this skill is for the GitHub platform API, not raw Git operations.
  • You require a GitLab, Bitbucket, or other non-GitHub host; the gh CLI is GitHub-only.

Key Features

Pull Request Management

List, view, and check the status of pull requests with commands like gh pr checks and gh pr list. Always works against any repo by specifying --repo owner/repo, even outside a git directory.

CI Run Monitoring

Inspect GitHub Actions workflow runs with gh run list, gh run view, and --log-failed to surface only the failing step logs. Ideal for agents that need to diagnose broken pipelines without manual log hunting.

Raw API Access

The gh api command unlocks any GitHub REST API endpoint. Combine it with --jq filters to extract exactly the fields you need — for example, pulling a PR's title, state, and author in one call.

Structured JSON Output

Most gh subcommands support --json flags so responses can be piped into --jq expressions or consumed directly by downstream tools. This makes it straightforward for agents to parse and act on GitHub data programmatically.

Issue Tracking

List and filter issues with gh issue list, including JSON output for structured queries. Supports filtering by labels, state, assignee, and more through standard gh flags.

Use Cases

Automated PR review assistant

An agent checks all open PRs, fetches their CI status via gh pr checks, and surfaces any PRs that are failing or stalled — giving the developer a prioritized list without manual dashboard checking.

CI failure diagnosis

When a build breaks, the agent runs gh run view <run-id> --log-failed to pull only the failed step logs and summarizes the root cause, saving engineers from scrolling through lengthy CI output.

Issue triage and reporting

The agent queries open issues with gh issue list --json and --jq filters to generate a structured report — grouping by label, age, or assignee — for a weekly team digest.

Advanced GitHub data extraction

Using gh api with custom --jq queries, an agent retrieves specific metadata (e.g., PR merge commit SHA, reviewer list, or workflow timing) that isn't surfaced through standard subcommands.

Connecting to VM...
npx clawhub@latest install github
153Current Installs
1.5kAll-time Installs
📦
v1.0.0Version
View Source(ClawHub)

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!