Agent skill

Gh Issues

by TypedDevs in TypedDevs/bashunit

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

MITAuto-check: notesTesting & QA

Install Gh Issues

skills CLI
$ npx skills add TypedDevs/bashunit --skill gh-issues -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TypedDevs/bashunit gh-issues --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TypedDevs/bashunit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/gh-issues .claude/skills/gh-issues && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-issues
GitHub stars
434
Used in
1 other repo
Token cost
~1.7k tokens
SKILL.md length
792 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

  • Works in 3 steps: Discover → Worktree Sanity → Process Loop
  • Tasks that involve Test-driven development
  • SKILL.md covers Purpose, Args, Phase 1: Discover and Phase 2: Worktree Sanity, plus 5 more sections
  • Calls gh, git and make

What it does

Gh Issues is an agent skill from TypedDevs/bashunit. Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test-driven development. It works with GitHub and Bash. The repository describes itself as: A simple yet powerfull testing library for bash scripts. The licence is MIT.

When your agent uses it

  • Tasks that involve Test-driven development

Example prompts

  • “/gh-issues”

Requirements

  • Docker
  • Pre-approved tools (allowed-tools): Read, Bash, Skill

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Discover
  2. Worktree Sanity
  3. Process Loop

What it can do on your machine

Read from SKILL.md and the folder at commit 8f297fb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Skill

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gh Issues loads about 1.7k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 792 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Skill

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TypedDevs/bashunit at commit 8f297fb, republished under its MIT licence (© TypedDevs). 792 words, ~1,727 tokens.

Download SKILL.mdSave it as .claude/skills/gh-issues/SKILL.md (or your agent's skills folder).
name
gh-issues
description
Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.
allowed-tools
Read, Bash, Skill
user-invocable
true
argument-hint
[--limit N] [--label foo] [--dry-run]
disable-model-invocation
true

GitHub Issues Watcher

Purpose

Process every open GitHub issue that is unassigned or assigned to the current user (@me), one after another, by delegating each to the /gh-issue skill. Stop on first hard failure so it can be inspected.

Driven from inside the Claude session rather than a polling shell script.

Args

  • --limit N — process at most N issues this run (default: all).
  • --label foo — only issues carrying label foo.
  • --dry-run — list issues that would be processed; do not invoke /gh-issue.

Strip leading # if user passes #123 style.

Phase 1: Discover

Fetch open issues that are unassigned or assigned to @me, oldest first. GitHub search does not OR these cleanly, so run two queries and merge:

bash
# Unassigned
gh issue list \
  --state open \
  --search "no:assignee" \
  --json number,title,labels,assignees,createdAt \
  --limit 200

# Assigned to me
gh issue list \
  --state open \
  --assignee "@me" \
  --json number,title,labels,assignees,createdAt \
  --limit 200

Merge:

  • Deduplicate by number.
  • Keep only issues whose assignees array is empty or contains the current user (gh api user -q .login).
  • Drop issues assigned to anyone else (defensive).
  • Skip tracker/epic issues — those whose body is a checklist of other issues (e.g. - [ ] #123 …). Process the child issues directly, not the parent.
  • Apply --label filter if given.
  • Apply --limit if given.
  • Sort ascending by createdAt (FIFO).

Print the queue: #<num> <title> [assignee] per line, where [assignee] is unassigned or @me. If empty, exit cleanly.

Phase 2: Worktree Sanity

Before touching any issue:

bash
git status --porcelain
git fetch origin main
git checkout main && git reset --hard origin/main

Abort if worktree dirty. Never auto-stash.

Phase 3: Process Loop

For each issue in the queue:

  1. Re-check assignment state (someone else may have grabbed it):

    bash
    gh issue view <num> --json assignees -q '.assignees[].login'
    me=$(gh api user -q .login)
    • Empty output → unassigned, proceed.
    • Only $me listed → already mine, proceed (skip self-assign step).
    • Any other login present → skip this issue.
  2. Invoke the /gh-issue skill with the issue number. That skill owns:

    • self-assign via gh issue edit <num> --add-assignee @me (no-op if already assigned)
    • branch from fresh main (prefix from labels: fix/, feat/, docs/)
    • strict TDD: RED → GREEN → REFACTOR (no production code without a failing test first)
    • full suite green locally (./bashunit tests/ and ./bashunit --parallel tests/)
    • CHANGELOG.md entry under ## Unreleased for user-facing changes
    • commit with conventional message + Closes #<num> in the body
    • PR opened via /pr #<num>
  3. Before pushing, run the exact command CI's strict job uses — plain sequential runs miss simple-mode and strict-mode bugs that CI rejects:

    bash
    ./bashunit --parallel --simple --strict tests/

    In --simple mode print_line emits only a one-char marker, so assert on pure helper functions, not on print_line stdout. Under --strict (set -euo pipefail): no [ cond ] && assignment (use if), initialise arrays with =() and read elements as ${arr[i]:-}, and never enable shopt -s extdebug in the parent shell (isolate it inside a $() subshell).

  4. After /gh-issue returns, wait for CI green on the PR:

    bash
    gh pr checks --watch

    Fix red checks on the branch before moving on. Bash 3.0 CI fails often — check that job specifically. A red docker/registry step is usually a transient Docker Hub timeout, not your code: gh run rerun <id> --failed.

  5. Merge when allowed:

    bash
    gh pr merge --auto --squash --admin
  6. Close the issue if the squash-merge did not. GitHub builds the squash commit from the PR body, and /pr writes Related #<num> there (never Closes), so the Closes #<num> in the branch commit body is lost. After merge:

    bash
    gh issue view <num> --json state -q .state   # still OPEN?
    gh issue close <num> --reason completed -c "Done in #<pr> (merged)."

    If the issue belongs to a tracker/epic, tick its checkbox in the parent issue body. Use sed for the tick — bash ${body/- [ ] #N/...} treats [ ] as a glob (it matches a space, not literal brackets) and silently does nothing:

    bash
    gh issue view <tracker> --json body -q .body \
      | sed 's/- \[ \] #<num>/- [x] #<num>/' | gh issue edit <tracker> --body-file -
  7. Sync main for next iteration:

    bash
    git checkout main && git fetch origin main && git reset --hard origin/main
  8. Continue with next issue.

Show full SKILL.md (247 more words)Show less

Stop Conditions

Halt the loop and surface the failure when:

  • /gh-issue errors out or leaves the worktree dirty.
  • ./bashunit tests/ or ./bashunit --parallel tests/ fails after implementation (for the right reason — distinguish pre-existing failures; see Notes).
  • make sa (ShellCheck) or make lint (EditorConfig) fails.
  • CI stays red after one fix attempt.
  • Merge is blocked by branch protection beyond --admin bypass.
  • --limit reached.
  • Queue empty.

Do not retry blindly. Report which issue failed and why.

Dry Run

With --dry-run, only execute Phase 1 and print the queue. No assignment, no branching, no commits.

Preconditions

  • gh authenticated, can read issues, open and merge PRs.
  • Worktree clean.
  • main exists and tracks origin/main.
  • /gh-issue and /pr skills available in this session.

Notes

  • Bash 3.0+ compatibility is mandatory. No declare -A, [[ ]], ${var,,}, negative array indexing, or &>> in src/. See .claude/rules/bash-style.md.
  • Quality gate is make sa + make lint, not bare shfmt. shfmt -w . without project flags rewrites the whole tree (collapses line-continuations, flips binary-op style, tabs the indent_size = unset files). Match the surrounding 2-space style by hand and rely on make lint (EditorConfig) to verify. There is no shfmt make target.
  • Know your baseline. tests/unit/coverage_subshell_test.sh fails on some macOS setups regardless of the change — confirm a failure is new (git stash + re-run) before treating it as a regression.
  • Treat GitHub CI as the full quality gate; locally run focused tests during implementation, the full sequential + parallel suite once before commit.
  • Never split bundled changes into multiple PRs unless the issue explicitly demands it.

© TypedDevs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/gh-issues of TypedDevs/bashunit.

Open the folder on GitHubat commit 8f297fb

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in TypedDevs/bashunit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gh Issues next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gh Issues compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh Issues this skillTypedDevs/bashunit4341 repos~1.7kAutomated safety check: NotesMIT
Opsmill Dev Test Driving Bugsopsmill/infrahub531—~4kAutomated safety check: PassApache-2.0
Maggyalinaqi/maggy707—~1.5kAutomated safety check: PassMIT
Vulnhunter Fixcapitalone/VulnHunter1.1k1 repos~7.9kAutomated safety check: WarnApache-2.0
Bats Shell Testing Patternswshobson/agents40k12 repos~1.3kAutomated safety check: PassMIT
Auto GitHub Contributornexu-io/auto-github-contributor137—~2.5kAutomated safety check: NotesMIT

Similar skills

  • Writes a single failing test that reproduces a bug after its root-cause analysis is complete, before any fix is written.

    531 GitHub stars~4k tokensUpdated today
    Testing & QAAuto-check passed
  • Maggy

    alinaqi/maggy

    Maggy is a local AI engineering command center. An agent skill from alinaqi/maggy.

    707 GitHub stars~1.5k tokensUpdated 14 days ago
    Testing & QAAuto-check passed
  • Vulnhunter Fix

    capitalone/VulnHunter

    Automate vulnerability remediation from VulnHunter scan results using TDD.

    1.1k GitHub starsUsed in 1 repo~7.9k tokens
    Testing & QAAuto-check: warnings
  • Writes unit tests for shell scripts with Bats: error-condition tests, fixtures and mocks, cross-shell checks, parallel runs, helper files and CI integration.

    40k GitHub starsUsed in 12 repos~1.3k tokens
    Testing & QAAuto-check passed
  • Auto GitHub Contributor

    nexu-io/auto-github-contributor

    Interactively pick a quick-win contribution in any GitHub repo — either a labeled issue ("good first issue", "help wanted", docs) or a repo-scan candidate (typo, missing tests, i18n gap, actionable…

    137 GitHub stars~2.5k tokensUpdated 5 mo ago
    Testing & QAAuto-check: notes
  • Work Issue

    joesaby/astro-mermaid

    End-to-end workflow for resolving a GitHub issue in astro-mermaid — triages complexity, then runs brainstorm → TDD → implement → docs/spec → code review at the right depth.

    123 GitHub stars~891 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed

More from TypedDevs/bashunit

All 11 skills in this repo
  • Commit

    TypedDevs/bashunit

    Stage and commit changes using conventional commits format. An agent skill from TypedDevs/bashunit.

    434 GitHub stars~781 tokensUpdated yesterday
    Auto-check: notes
  • Gh Issue

    TypedDevs/bashunit

    Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

    434 GitHub stars~721 tokensUpdated yesterday
    Auto-check: notes
  • PR

    TypedDevs/bashunit

    Push branch and create a GitHub PR with concise, issue-linked description

    434 GitHub stars~1k tokensUpdated yesterday
    Auto-check: notes
  • Pre Release

    TypedDevs/bashunit

    Run comprehensive pre-release validation checklist. An agent skill from TypedDevs/bashunit.

    434 GitHub stars~488 tokensUpdated yesterday
    Auto-check: notes
  • Release

    TypedDevs/bashunit

    Run pre-release validation and execute the release process. An agent skill from TypedDevs/bashunit.

    434 GitHub stars~618 tokensUpdated yesterday
    Auto-check: notes
  • Check Coverage

    TypedDevs/bashunit

    Analyze test coverage and identify untested code paths. An agent skill from TypedDevs/bashunit.

    434 GitHub starsUsed in 1 repo~326 tokens
    Auto-check: notes

Works with

Questions about Gh Issues

What does Gh Issues do?

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially. Gh Issues is an agent skill from TypedDevs/bashunit. Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

When should I use Gh Issues?

Gh Issues fits situations like: tasks that involve Test-driven development.

How do I install Gh Issues in Claude Code?

Run `npx skills add TypedDevs/bashunit --skill gh-issues -a claude-code`. Or copy the skill folder (.claude/skills/gh-issues in TypedDevs/bashunit) into .claude/skills/gh-issues in your project. Claude Code loads it when a task matches its description.

How do I install Gh Issues in Codex?

Run `npx skills add TypedDevs/bashunit --skill gh-issues -a codex`. Or copy the skill folder (.claude/skills/gh-issues in TypedDevs/bashunit) into .agents/skills/gh-issues in your project. Codex loads it when a task matches its description.

Can I use Gh Issues in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TypedDevs/bashunit --skill gh-issues -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-issues, .gemini/skills/gh-issues, .github/skills/gh-issues and .opencode/skills/gh-issues in your project.

What does Gh Issues need to run?

Going by SKILL.md and its folder, Gh Issues needs the command-line tools its instructions call (gh, git and make). Our summary lists: Docker. Its frontmatter pre-approves these tools: Read, Bash, Skill.

Does Gh Issues access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gh Issues safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Gh Issues use?

Gh Issues is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gh Issues use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gh Issues?

Skills that share tags, products or a category with Gh Issues: Opsmill Dev Test Driving Bugs (opsmill/infrahub, 531 stars), Maggy (alinaqi/maggy, 707 stars), Vulnhunter Fix (capitalone/VulnHunter, 1.1k stars) and Bats Shell Testing Patterns (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh Issues?

TypedDevs (a GitHub organization) maintains it in TypedDevs/bashunit, which has 434 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

Source: TypedDevs/bashunit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.