Agent skill

Gh

by bubbuild in bubbuild/bub

GitHub CLI skill for interacting with GitHub via the gh command line tool.

Apache-2.0Auto-check passedDevelopment

Install Gh

skills CLI
$ npx skills add bubbuild/bub --skill gh -a claude-code

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

GitHub CLI
$ gh skill install bubbuild/bub gh --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/bubbuild/bub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/gh .claude/skills/gh && 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
GitHub stars
1.7k
Token cost
~798 tokens
SKILL.md length
222 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

GitHub CLI skill for interacting with GitHub via the gh command line tool.

  • Manage GitHub repositories
  • SKILL.md covers Prerequisites, Repository Operations, Issue Operations and Pull Request Operations, plus 5 more sections
  • Calls gh; needs GH_TOKEN and GITHUB_TOKEN
  • Work with issues and pull requests

What it does

Gh is an agent skill from bubbuild/bub. GitHub CLI skill for interacting with GitHub via the gh command line tool. Use when Bub needs to (1) Create, view, or manage GitHub repositories, (2) Work with issues and pull requests, (3) Create and manage releases, (4) Run and monitor GitHub Actions workflows, (5) Create and manage gists, (6) Install and manage agent skills, or (7) Perform any GitHub operations via command line.

Its SKILL.md is about 800 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 Development, covering Pull requests and CI/CD. It works with GitHub, GitHub Actions and Python. The repository describes itself as: Bub it. Build it. A tiny agent runtime, composable with plugins. The licence is Apache-2.0.

When your agent uses it

  • Manage GitHub repositories
  • Work with issues and pull requests
  • Create and manage releases
  • Run and monitor GitHub Actions workflows

Example prompts

  • “/gh”

Requirements

  • A credential in GITHUB_TOKEN

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

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

  • Network

    No URLs in SKILL.md. Its commands use gh, 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 these keys or tokens, usually read from environment variables:

    • GH_TOKEN
    • GITHUB_TOKEN

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

Context cost

Gh loads about 798 tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 222 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 bubbuild/bub at commit b4a61bf, republished under its Apache-2.0 licence (© bubbuild). 222 words, ~798 tokens.

Download SKILL.mdSave it as .claude/skills/gh/SKILL.md (or your agent's skills folder).
name
gh
description
GitHub CLI skill for interacting with GitHub via the gh command line tool. Use when Bub needs to (1) Create, view, or manage GitHub repositories, (2) Work with issues and pull requests, (3) Create and manage releases, (4) Run and monitor GitHub Actions workflows, (5) Create and manage gists, (6) Install and manage agent skills, or (7) Perform any GitHub operations via command line.

GitHub CLI (gh) Skill

Interact with GitHub using the gh command line tool.

Run commands with Bub's bash tool, setting cwd to the target checkout when using local repository context. If it returns a running shell ID, collect the result with bash.output before retrying the command.

Prerequisites

Use the authentication source specified by the user or workspace. For github.com, GH_TOKEN takes precedence over GITHUB_TOKEN, and both override stored gh credentials.

Check authentication:

bash
gh auth status

If not authenticated, report the blocker; do not silently switch credentials. Run interactive login only when the user requests authentication setup:

bash
gh auth login

Repository Operations

bash
gh repo create <name> [--public|--private]
gh repo clone <owner/repo>
gh repo fork <owner/repo>
gh repo view [owner/repo]
gh repo list [owner]

Issue Operations

bash
gh issue create --title "Title" --body "Body"
gh issue list [--state open|closed]
gh issue view <number>
gh issue close <number>
gh issue comment <number> --body "Comment"

Pull Request Operations

bash
gh pr create --title "Title" --body "Body"
gh pr list [--state open|closed]
gh pr view <number>
gh pr checkout <number>
gh pr merge <number>
gh pr review <number> --approve

Release Operations

bash
gh release create <tag> --generate-notes
gh release list
gh release download <tag>
gh release upload <tag> <file>

Workflow Operations

bash
gh workflow list
gh workflow run <name>
gh run list
gh run view <run-id>
gh run watch <run-id>

Gist Operations

bash
gh gist create <file>
gh gist list
gh gist view <id>

Skill Operations

bash
gh skill search <query>
gh skill preview <owner/repo> <skill>
gh skill install <owner/repo> <skill> --dir .agents/skills
gh skill list --dir .agents/skills
gh skill update <skill> --dir .agents/skills --dry-run
gh skill update <skill> --dir .agents/skills --all

gh skill is in preview; check gh skill --help for availability. Run project-scoped commands from Bub's workspace and use --dir .agents/skills; use --dir "$HOME/.agents/skills" for user-scoped skills. Keep gh's source-tracking metadata so installed skills can be updated.

Tips

  • Use --web to open in browser
  • Use -R owner/repo to specify repository
  • Use --json with --jq for scripting
  • Use GH_PROMPT_DISABLED=1 and supply required flags for unattended execution.
  • Write issue, PR, and comment body files as UTF-8 Markdown with real newlines. Pass them with --body-file, or use --body-file - with a quoted heredoc to preserve shell-sensitive text.
  • Use an explicit --head with gh pr create to avoid implicit pushes or forks; the head branch must already exist remotely.

© bubbuild, Apache-2.0. 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 src/skills/gh of bubbuild/bub.

Open the folder on GitHubat commit b4a61bf

Compare with similar skills

Gh 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh this skillbubbuild/bub1.7k—~798Automated safety check: PassApache-2.0
Renovate Actions PR Reviewbacknotprop/plannotator9.2k—~640Automated safety check: PassApache-2.0
GitHub PR Actions Fixopenteams-lab/openteams627—~878Automated safety check: PassApache-2.0
Code ReviewAzure/sap-automation145—~7kAutomated safety check: PassMIT
ReviewdogAgentSecOps/SecOpsAgentKit2201 repos~3kAutomated safety check: PassCustom licence
Qv Devops PR Reviewtetherto/qvac681—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Renovate Actions PR Review

    backnotprop/plannotator

    Reviews Renovate pull requests that bump GitHub Actions by checking pinned SHAs against upstream tags, scanning changelogs and confirming workflows stay compatible.

    9.2k GitHub stars~640 tokensUpdated today
    DevelopmentAuto-check passed
  • GitHub PR Actions Fix

    openteams-lab/openteams

    OpenTeams skill for watching GitHub Actions checks after a pull request is submitted or updated, inspecting failures, making the smallest safe code fix, validating locally, pushing to the PR branch…

    627 GitHub stars~878 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Code Review

    Azure/sap-automation

    Official

    Review pull requests in the SAP Deployment Automation Framework.

    145 GitHub stars~7k tokensUpdated today
    DevelopmentAuto-check passed
  • Reviewdog

    AgentSecOps/SecOpsAgentKit

    Automated code review and security linting integration for CI/CD pipelines using reviewdog.

    220 GitHub starsUsed in 1 repo~3k tokens
    DevelopmentAuto-check passed
  • Qv Devops PR Review

    tetherto/qvac

    PR review for DevOps changes — runs the generic /qv-pr-review flow then layers a structured GitHub Actions security audit (action pinning, permissions, OIDC, secrets handling).

    681 GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • CI

    aiblueprinthq/ai-blueprint

    Set up or normalize one project Verify command and matching GitHub Actions checks while preserving existing CI, with an optional local pre-push hook.

    461 GitHub stars~2.2k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from bubbuild/bub

  • Telegram

    bubbuild/bub

    Telegram Bot skill for sending and editing Telegram messages via Bot API.

    1.7k GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Questions about Gh

What does Gh do?

GitHub CLI skill for interacting with GitHub via the gh command line tool. Gh is an agent skill from bubbuild/bub. GitHub CLI skill for interacting with GitHub via the gh command line tool.

When should I use Gh?

Gh fits situations like: manage GitHub repositories; work with issues and pull requests; create and manage releases; run and monitor GitHub Actions workflows.

How do I install Gh in Claude Code?

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

How do I install Gh in Codex?

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

Can I use Gh 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 bubbuild/bub --skill gh -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, .gemini/skills/gh, .github/skills/gh and .opencode/skills/gh in your project.

What does Gh need to run?

Going by SKILL.md and its folder, Gh needs the command-line tools its instructions call (gh) and credentials named GH_TOKEN and GITHUB_TOKEN. Our summary lists: A credential in GITHUB_TOKEN.

Does Gh access the network?

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

Is Gh safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gh use?

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

How many tokens does Gh use?

About 798 tokens (SKILL.md is roughly 3.2k 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?

Skills that share tags, products or a category with Gh: Renovate Actions PR Review (backnotprop/plannotator, 9.2k stars), GitHub PR Actions Fix (openteams-lab/openteams, 627 stars), Code Review (Azure/sap-automation, 145 stars) and Reviewdog (AgentSecOps/SecOpsAgentKit, 220 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh?

bubbuild (a GitHub organization) maintains it in bubbuild/bub, which has 1,679 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.

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