gh

gh is a skill for Claude Code, Codex from bubbuild/bub. It costs 96 tokens per session (804 once invoked), scanned A, original, Apache-2.0.

Instructions for using GitHub’s command-line program to manage repositories and collaborate on code from a terminal.

In plain words
What is it for?
Use it to create or inspect repositories, manage issues and pull requests, make releases, run workflows, and manage gists.
Why use it?
It avoids switching between web pages and command-line tools for common GitHub tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or inspect repositories, manage issues and pull requests, make releases, run workflows, and manage gists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bubbuild/bub/gh
About the project

bubbuild/bub is a small Python runtime for building AI agents that work in shared environments such as conversations with people. It provides a hook-based turn pipeline and runs agents across command-line, Telegram, and other channels, with built-in tools, skills, and model execution; the catalogue entries extend or configure that workflow.

bubbuild/bub · 1,708 stars · on GitHub · bub.build

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bubbuild/bub --skill gh
Clone the repo
git clone --depth 1 https://github.com/bubbuild/bub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh

README.md
[![agentmods](https://agentmods.dev/badge/skills/bubbuild/bub/gh/github.svg)](https://agentmods.dev/skills/bubbuild/bub/gh)
Your own site
<a href="https://agentmods.dev/skills/bubbuild/bub/gh"><img src="https://agentmods.dev/badge/skills/bubbuild/bub/gh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh

Your own site · 80×15
<a href="https://agentmods.dev/skills/bubbuild/bub/gh"><img src="https://agentmods.dev/badge/skills/bubbuild/bub/gh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.00804
Opus 5.5 $0.00038 $0.00322
Sonnet 5.5 $0.00019 $0.00161
Haiku 4.5 $0.00010 $0.00080

Measured 2mo ago against content hash e0f11c439e4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/gh/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

gh auth status

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

gh auth login

Repository Operations

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

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

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

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

Workflow Operations

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

Gist Operations

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

Skill Operations

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.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +18 lines · +9 tokens per session e0f11c439e4f
  2. 3mo ago First seen · 87 lines · 87 tokens per session scan A eae6755ab99e

Subscribe to this mod's changes

gh is a skill published in the GitHub repository bubbuild/bub (1,708 stars, last pushed today), licensed Apache-2.0. It adds 96 tokens to every session and 804 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

gh compared with skills from other repositories

gh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ghbubbuild/bubSkill1.7ktodayApache-2.0A96Claude Code, Codex
git-workflowvstorm-co/pydantic-deepagentsSkill1.1kyesterdayMITA17Claude Code, Codex
mergeautomagik-si/genieSkill353todayApache-2.0A32Codex
Release Notes GeneratorAgentEra/AgentlySkill1.7k18d agoApache-2.0A46Claude Code, Codex
pinned-release-checklistAgentEra/AgentlySkill1.7k18d agoApache-2.0A18Claude Code, Codex
Release ChecklistAgentEra/AgentlySkill1.7k18d agoApache-2.0A19Claude Code, Codex
Release Readiness ReviewerAgentEra/AgentlySkill1.7k18d agoApache-2.0A18Claude Code, Codex