GitHub — OpenClaw Skill
GitHub operations via the gh CLI: issues, PRs, CI runs, code review, and API queries.
What This Skill Does
The GitHub skill gives your OpenClaw agent full access to GitHub operations through the official gh CLI. Your agent can check pull request status, view reviews and merge readiness, monitor CI and workflow runs, create and comment on issues, merge PRs, query the GitHub API for repository statistics, and list repos, releases, and collaborators -- all through natural language commands.
This is one of the most powerful development skills in the OpenClaw ecosystem. Instead of switching between your terminal and GitHub's web UI, you can ask your agent to triage issues, summarize PR changes, re-run failed CI jobs, or create new pull requests. The skill supports structured JSON output with jq filtering, so your agent can extract exactly the data you need from any GitHub API endpoint.
The skill is designed for GitHub-hosted repositories. For local git operations like committing, pushing, or branching, the agent uses git directly. For code review involving multi-file diffs, it pairs well with the coding-agent skill.
Example Prompts
Check if there are any open PRs on my-org/backend-api that are ready to merge and list their CI status
Create a GitHub issue on acme/webapp titled "Login page 500 error on mobile Safari" with a description of the bug including steps to reproduce
Show me the failed CI logs for PR #142 on my-org/infra and summarize what went wrong
List all issues labeled "bug" in my-org/frontend that were opened in the last 7 days and sort by most commented
Give me a quick summary of PR #88 on acme/core -- what changed, who authored it, how many files were modified, and whether CI passed
Re-run the failed jobs on the latest workflow run for my-org/deploy and let me know when it passes
How many stars and forks does openclawbot/openclaw have? Also list the 5 most recent releases.
Requirements
Binary dependency: gh (GitHub CLI)
- macOS:
brew install gh - Ubuntu/Debian:
apt install gh - Authentication: Run
gh auth loginonce to connect your GitHub account
Setup on KiwiClaw
This skill is pre-installed and configured on all KiwiClaw plans. The gh CLI is available on every tenant machine. Connect your GitHub account in the KiwiClaw dashboard and the agent is ready to manage your repositories. No manual setup needed.
Setup Self-Hosted
- Install the GitHub CLI:
brew install gh(macOS) orapt install gh(Linux) - Authenticate:
gh auth loginand follow the prompts - Verify:
gh auth statusshould show your account - The skill will be automatically available to OpenClaw once
ghis on the PATH
Related Skills
- Coding Agent -- delegate coding tasks and PR reviews to AI sub-agents
- Slack -- post CI notifications and PR summaries to Slack channels
- Discord -- share repo updates with your Discord community
- Trello -- sync GitHub issues with Trello boards for project tracking
FAQ
What can the GitHub skill do in OpenClaw?
The GitHub skill lets your OpenClaw agent create and manage issues, open and merge pull requests, check CI/workflow run status, view failed logs, query the GitHub API for repository data, and perform code reviews -- all via the gh CLI.
Does the GitHub skill require a GitHub token?
Yes. The gh CLI needs to be authenticated via gh auth login. On KiwiClaw, you connect your GitHub account once in the dashboard and authentication is handled automatically.
Can the GitHub skill work with private repositories?
Yes. As long as the authenticated GitHub account has access to the private repository, the skill can list issues, PRs, CI runs, and all other operations on that repo.
Is the GitHub skill safe to use?
The GitHub skill has been security-vetted by KiwiClaw. It uses the official gh CLI from GitHub and only performs operations you explicitly request. All actions are logged and auditable.