Skip to content

Guide · Agent skill

How to use the GitHub Issue Auto-Fixer agent skill (gh-issues)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The gh-issues skill is an agent skill that turns your coding agent into an orchestrator for GitHub issues. It pulls open issues from a repository through the GitHub REST API, lets you pick which ones to work on, spawns sub-agents that write fixes on branches, and opens pull requests. This guide explains what the skill does, how to install it, how to trigger it with natural requests, and what to check before you trust its output.

GitHub Issue Auto-Fixerspinabot/brigade · MIT

Quick start

  1. 1Download and unzip. Download the ZIP from this page and unzip it so that SKILL.md sits inside a gh-issues folder.
  2. 2Copy the folder into a skills directory. Place the folder in ~/.claude/skills/ for personal use, in a project's .claude/skills/ folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
  3. 3Provide a GitHub token. Export GH_TOKEN, or store the token under skills.entries.gh-issues in the Brigade config file.
  4. 4Run a dry run. Ask for /gh-issues owner/repo with --dry-run to see the matching issues without spawning sub-agents.
  5. 5Choose issues to process. Reply with all, specific issue numbers, or cancel when the skill shows the table.
  6. 6Review the pull requests. Check the branches and PRs the sub-agents opened, then merge only the changes you have reviewed.

What an agent skill is and what gh-issues makes the agent do

An agent skill is a folder containing a SKILL.md file that gives an agent extra instructions for a specific task. The gh-issues skill is one such folder. Its SKILL.md tells the agent to follow six phases in order: parse arguments, fetch issues, present and confirm, run pre-flight checks, spawn sub-agents to implement fixes, and monitor pull request review comments.

The skill is written for a Brigade-style setup and calls the GitHub REST API with curl. It does not depend on the gh CLI, although its metadata lists curl, git and gh as required binaries.

  • Fetches open issues from a GitHub repository, filtered by label, milestone, assignee or state
  • Shows you a table of the issues and asks which ones to process
  • Spawns sub-agents that write fixes on branches and open pull requests
  • Can watch for new issues or review comments on its PRs and respond to them
  • Can send a final summary with PR links to a Telegram channel

Install the gh-issues skill

Download the ZIP from this page and unzip it. The skill is a folder that contains SKILL.md. Place that folder in one of these locations:

  • Personal skills: ~/.claude/skills/ (available across your projects)
  • Project skills: a project's .claude/skills/ folder (available only in that project)
  • Claude apps: upload the ZIP under Settings → Capabilities → Skills
~/.claude/skills/

Set up your GitHub token

The skill needs a GitHub personal access token. It reads the token from the GH_TOKEN environment variable. If that variable is empty, the skill looks for a key under skills.entries.gh-issues in the Brigade config file, at $BRIGADE_CONFIG_PATH or ~/.brigade/brigade.json, and then at /data/.brigade/brigade.json.

The skill passes the token as a Bearer token on every API call. If authentication fails with HTTP 401 or 403, the skill stops and asks you to check the apiKey stored under skills.entries.gh-issues.

  • Use a token with only the access the task needs, because a mistake could push branches or open PRs in the wrong place
  • If you use --fork, the skill adds a git remote named fork that embeds the token in its URL
export GH_TOKEN="<your token>"

Trigger the skill with a natural request or a slash command

The skill is user-invocable, so you can call it directly as /gh-issues followed by optional arguments. The first positional argument is owner/repo. If you leave it out, the skill reads the origin remote of the current git repository and extracts owner/repo from either an HTTPS or SSH URL.

Flags are optional. Common ones are --label, --limit (default 10), --milestone, --assignee, --state (default open), --fork, --watch, --interval (default 5 minutes), --reviews-only, --cron, --dry-run, --yes, --model and --notify-channel.

  • Preview only: /gh-issues owner/repo --label bug --dry-run
  • Process a small batch: /gh-issues owner/repo --label bug --limit 5
  • Work from your fork: /gh-issues owner/repo --fork you/repo
  • Only address review comments on open PRs: /gh-issues owner/repo --reviews-only
  • Scheduled run: /gh-issues owner/repo --cron
/gh-issues owner/repo --label bug --limit 5 --dry-run

Confirm which issues the agent processes

After fetching, the skill displays a table with each issue's number, title and labels. It then asks you to reply with "all", a comma-separated list of issue numbers such as 42, 37, or "cancel". With --dry-run it stops after the table. With --yes it processes every listed issue without asking.

Before creating branches, the skill checks git status. If the working tree has uncommitted changes, it warns you that those changes will not be included in the sub-agents' branches and asks whether to continue.

Use fork mode and watch mode carefully

With --fork, issues are fetched from the source repository, code is pushed to your fork, and pull requests are opened from the fork to the source repository. This lets you trial fixes without pushing branches to the main repository.

With --watch, the skill keeps polling every --interval minutes. The first poll asks for confirmation unless you pass --yes. Later polls process new issues automatically and show the table so you can see what is being processed. With --cron, the skill forces --yes and exits without waiting for results.

  • Use --model (for example glm-5) to choose the model for sub-agents; otherwise the agent's default is used
  • Use --notify-channel with a Telegram channel ID to receive only the final PR summary, not status updates

Safety notes: scripts and network access

The skill runs scripts and uses the network. It calls api.github.com with your token, runs git commands in the current repository, and may push branches and open pull requests. Read the SKILL.md and check the owner/repo and --fork values before running it on anything important.

Sub-agents act on issue text alone. Generated code may be wrong or insecure, so review every pull request before merging. Start with --dry-run and a small --limit.

  • Do not point it at repositories where you cannot review AI-written pull requests before merging
  • Avoid complex or ambiguous issues that need human design decisions
  • Prefer a fork and a narrowly scoped token while you are evaluating it

What people use it for

  • Clear up a backlog of small, well-described bugs labelled bug, with --label bug and a limit of 5
  • Trial parallel automated fixes on your fork with --fork before any change reaches the main repository
  • Run scheduled issue triage through cron jobs using --cron
  • Watch a repository with --watch and respond to review comments on PRs the skill opened with --reviews-only

Frequently asked questions

How do I install the gh-issues agent skill?

Download the ZIP from this page and unzip it. Place the gh-issues folder in ~/.claude/skills/ for personal use, in a project's .claude/skills/ folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.

What do I need to run gh-issues?

The metadata lists curl, git and gh as required binaries, though the skill uses curl and the REST API rather than gh. You also need a GitHub personal access token exposed as GH_TOKEN or stored under skills.entries.gh-issues in the Brigade config. A Telegram channel ID is optional, for --notify-channel.

Is gh-issues free to use?

The skill is published under the MIT licence. This page does not state any price, so check the source repository for licence terms before using it.

Does gh-issues run scripts and use the network?

Yes. The skill runs scripts and makes network calls to the GitHub REST API. It can also push branches and open pull requests, so review the SKILL.md and use --dry-run first.

Why does gh-issues say authentication failed?

The skill stops on HTTP 401 or 403 responses. Check that your token is set in GH_TOKEN or stored under skills.entries.gh-issues in the active Brigade config path, and that the token has access to the repository.

How is gh-issues different from just asking an agent to fix an issue?

gh-issues adds a fixed six-phase workflow: it fetches and filters issues, asks you to confirm, checks the working tree, spawns parallel sub-agents on branches, opens PRs, and can monitor review comments. A plain request does not include those checkpoints or the fork and watch options.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use gh-issues if you maintain a backlog of simple, well-described bugs or small enhancements and you will review every AI-written pull request before merging. Pick something else if your issues need human design decisions, if you cannot review generated code, or if you would be uncomfortable with an agent holding a token that can write to important repositories.

Download the skill