gh-issues
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
Install via CLI (Recommended)
clawhub install openclaw/openclaw/skills/gh-issuesWhat This Skill Does
The gh-issues skill is a powerful GitHub issue management tool designed to automate the workflow of identifying, fixing, and integrating changes for GitHub issues. It acts as an orchestrator, leveraging sub-agents to implement fixes for reported bugs or feature requests. The skill fetches issues from a specified repository, optionally filtering them by labels, assignees, or milestones. Once issues are identified, it can automatically spawn sub-agents to develop, test, and commit code changes. It further automates the process of creating pull requests (PRs) from your fork to the main repository and monitors these PRs for review comments. If review comments are detected, it spawns sub-agents to address them, ensuring issues are fully resolved and merged. The skill supports both direct execution and a --watch mode for continuous monitoring, as well as a --dry-run option for testing purposes. It strictly uses the GitHub REST API via curl and does not depend on the gh CLI, making it robust and easily deployable.
Installation
To install the gh-issues skill, run the following command in your OpenClaw environment:
clawhub install openclaw/openclaw/skills/gh-issues
This command will download and configure the skill, making it available for use.
Use Cases
- Automated Bug Fixing: Automatically detect, fix, and create pull requests for issues labeled as 'bug'.
- Continuous Issue Resolution: Monitor a repository for new issues and automatically assign sub-agents to address them.
- PR Review Management: Automatically respond to review comments on your pull requests, accelerating the review process.
- Milestone-based Development: Focus on fixing issues within a specific milestone, such as 'v1.0'.
- Personal Issue Triage: Assign issues to yourself (
@me) and have the skill help implement the fixes. - Forked Repository Workflow: Seamlessly work with your forks, pushing branches and opening PRs from your fork to the upstream repository.
- Scheduled Maintenance: Use
--cronmode for automated, unattended runs to catch up on issues or reviews.
Example Prompts
gh-issues openclaw/openclaw --label bug --limit 5 --watch --interval 10gh-issues my-org/my-repo --milestone v2.1 --assignee @me --fork my-username/my-repogh-issues another-org/another-repo --reviews-only --notify-channel -123456789
Tips & Limitations
- GitHub Token: Ensure your
GH_TOKENenvironment variable is correctly set with appropriate permissions for thegh-issuesskill to interact with the GitHub API. - API Rate Limits: Be mindful of GitHub API rate limits, especially when using
--watchmode with a short--interval. - Fork Setup: For the
--forkoption to work effectively, ensure your specified fork repository exists and you have push access to it. - Dry Run: Always use
--dry-runfirst to test your configuration and understand the skill's actions without making any actual changes. - Error Handling: While the skill is robust, complex issues or unexpected API responses might require manual intervention. Review the output carefully.
- Sub-Agent Configuration: The effectiveness of the fixes depends heavily on the capabilities and configuration of the sub-agents spawned by
gh-issues. The--modelflag allows specifying a particular LLM for these sub-agents. --reviews-only: This flag is extremely useful for focusing solely on addressing feedback for already open PRs without processing new issues.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-openclaw-gh-issues": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
sag
ElevenLabs text-to-speech with mac-style say UX.
bear-notes
Create, search, and manage Bear notes via grizzly CLI.
mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
eightctl
Control Eight Sleep pods (status, temperature, alarms, schedules).
xurl
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.