Agent skill

GitHub

by AFK-surf in AFK-surf/OpenBridge

Work with GitHub through the gh CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments.

MITAuto-check passedDevelopment

Install GitHub

skills CLI
$ npx skills add AFK-surf/OpenBridge --skill github -a claude-code

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

GitHub CLI
$ gh skill install AFK-surf/OpenBridge github --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/AFK-surf/OpenBridge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/macos/OpenBridge/Resources/SystemSkills.bundle/github .claude/skills/github && 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
github
GitHub stars
430
Token cost
~2.1k tokens
SKILL.md length
815 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

Work with GitHub through the gh CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments.

  • Works in 5 steps: Call ListOAuthCredentials. → If a github credential is available and… → If no usable GitHub credential exists,… → …
  • Tasks that involve Pull requests
  • SKILL.md covers Typical Goals, Operating Principles, Managed OAuth and Initial Checks, plus 7 more sections
  • Calls gh and git; reaches github.com; needs GH_TOKEN

What it does

GitHub is an agent skill from AFK-surf/OpenBridge. Work with GitHub through the gh CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments.

Its SKILL.md is about 2.1k 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. It works with GitHub. The repository describes itself as: A free, safe and open agent for everything. Alternative to Claude Cowork & Codex. Open Bridge, the AI bridge between your intention and get the job done. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/github”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Call ListOAuthCredentials.
  2. If a github credential is available and active, use its alias in Exec.credential_env; replace "default" below with the actual alias…
  3. If no usable GitHub credential exists, call RequestOAuthAuthorization with provider: "github", a short stable alias such as "default", and…
  4. Share the returned authorization_url with the user and wait for them to confirm they completed authorization.
  5. Call CompleteOAuthAuthorization with the returned state. If it returns completed, retry the GitHub command with Exec.credential_env using…

What it can do on your machine

Read from SKILL.md and the folder at commit a9ca905. 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
    • git

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    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

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

Context cost

GitHub loads about 2.1k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 815 words of instructions outside code blocks.

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

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 AFK-surf/OpenBridge at commit a9ca905, republished under its MIT licence (© AFK-surf). 815 words, ~2,090 tokens.

Download SKILL.mdSave it as .claude/skills/github/SKILL.md (or your agent's skills folder).
name
github
description
Work with GitHub through the `gh` CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments.

GitHub

Use this skill whenever the task involves GitHub and the gh CLI is available or should be made available. Prefer direct gh commands over browser-only workflows for operations that have stable CLI support.

Typical Goals

  • Inspect, create, update, label, assign, or close issues.
  • Inspect, create, checkout, review, comment on, merge, or monitor pull requests.
  • Check GitHub Actions runs, jobs, failed logs, and commit statuses.
  • Query repository metadata, branches, tags, releases, artifacts, and security or Dependabot alerts when permissions allow.
  • Use gh api or GraphQL for fields not exposed by first-class subcommands.
  • Install or authenticate gh on a persistent VM when the user needs reusable GitHub CLI access.

Operating Principles

  • Use --repo owner/name when outside the target repository or when ambiguity is possible.
  • Prefer --json with --jq for machine-readable output instead of parsing tables.
  • Prefer managed OAuth over device-flow setup. When GitHub credentials are missing, expired, or insufficient, use RequestOAuthAuthorization to connect the user's GitHub account, then pass the saved credential to Exec.credential_env.
  • Confirm destructive or hard-to-reverse actions before running them unless the user explicitly requested the action.
  • Do not claim an issue, PR, workflow, or release was changed until the CLI command succeeds.
  • If auth or permissions fail, report the concrete blocker and the command that exposed it.
  • Keep generated issue and PR text concise and specific; avoid adding unrelated templates or markdown documents unless asked.

Managed OAuth

Before running a device-flow login or asking the user for a token, check whether a GitHub OAuth credential already exists:

  1. Call ListOAuthCredentials.
  2. If a github credential is available and active, use its alias in Exec.credential_env; replace "default" below with the actual alias returned by ListOAuthCredentials:
    json
    [{"env_var":"GH_TOKEN","provider":"github","alias":"default","value":"access_token"}]
  3. If no usable GitHub credential exists, call RequestOAuthAuthorization with provider: "github", a short stable alias such as "default", and a concise reason. Request scopes that match the task, for example ["repo"] for private repository read/write, ["read:org"] for organization metadata, and ["workflow"] only when workflow file changes or Actions operations require it.
  4. Share the returned authorization_url with the user and wait for them to confirm they completed authorization.
  5. Call CompleteOAuthAuthorization with the returned state. If it returns completed, retry the GitHub command with Exec.credential_env using the returned alias. If it returns pending, ask the user to finish the browser flow. If it returns failed or expired, start a fresh authorization flow.

Managed OAuth keeps tokens out of the transcript. Do not print the token or try to read it directly; inject it only for the subprocess that needs GitHub access. gh honors GH_TOKEN, so a full gh auth login is usually unnecessary when using this flow.

Initial Checks

bash
gh --version
gh auth status -h github.com
git remote -v

When the repository is known:

bash
gh repo view owner/name --json nameWithOwner,defaultBranchRef,viewerPermission

Issues

Search issues:

bash
gh issue list --repo owner/name --search "login timeout session expired" --json number,title,state,url,labels,updatedAt

View an issue:

bash
gh issue view 123 --repo owner/name --json number,title,body,state,url,labels,assignees,comments

Create an issue:

bash
gh issue create --repo owner/name --title "Investigate login timeout on macOS" --body "..."

Update or comment:

bash
gh issue edit 123 --repo owner/name --add-label bug --add-assignee @me
gh issue comment 123 --repo owner/name --body "..."

Pull Requests

List and view PRs:

bash
gh pr list --repo owner/name --state open --json number,title,author,headRefName,baseRefName,isDraft,reviewDecision,statusCheckRollup
gh pr view 55 --repo owner/name --json number,title,body,state,url,files,commits,reviews,comments

Check out a PR when code inspection is needed:

bash
gh pr checkout 55 --repo owner/name

Create or update a PR:

bash
gh pr create --repo owner/name --base main --head feature-branch --title "Title" --body "..."
gh pr edit 55 --repo owner/name --title "New title" --body "..."

Review, comment, and merge:

bash
gh pr review 55 --repo owner/name --comment --body "..."
gh pr review 55 --repo owner/name --approve --body "..."
gh pr merge 55 --repo owner/name --squash --delete-branch

Use the repository's merge policy and user instructions when choosing merge mode.

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

Actions And CI

Check PR checks:

bash
gh pr checks 55 --repo owner/name

List and inspect workflow runs:

bash
gh run list --repo owner/name --limit 20
gh run view <run-id> --repo owner/name --json status,conclusion,event,headBranch,headSha,jobs
gh run view <run-id> --repo owner/name --log-failed

Rerun only when requested or when it is clearly part of the task:

bash
gh run rerun <run-id> --repo owner/name --failed

Releases, Tags, And Artifacts

bash
gh release list --repo owner/name
gh release view v1.2.3 --repo owner/name --json tagName,name,body,isDraft,isPrerelease,assets
gh release create v1.2.3 --repo owner/name --title "v1.2.3" --notes "..."
gh run download <run-id> --repo owner/name --dir /tmp/artifacts

Advanced API Queries

Use REST when it is straightforward:

bash
gh api repos/owner/name/pulls/55 --jq '{title, state, user: .user.login}'

Use GraphQL for review threads, project items, or nested data:

bash
gh api graphql -f query='
query($owner:String!, $repo:String!, $number:Int!) {
  repository(owner:$owner, name:$repo) {
    pullRequest(number:$number) {
      title
      reviewThreads(first:50) {
        nodes { isResolved comments(first:10) { nodes { body author { login } } } }
      }
    }
  }
}' -F owner=owner -F repo=name -F number=55

Authentication And Setup

If gh is already authenticated, use it. If setup is required on a persistent VM, prefer the managed OAuth flow above and run gh commands with Exec.credential_env. Install gh using the platform package manager or GitHub's documented package source when needed.

Preferred verification:

bash
gh auth status -h github.com
gh api user --jq '.login'

If normal browser handoff is inconvenient in the local VM, use a device flow:

  1. Capture an interactive login for https://github.com/login with allowed domain github.com.
  2. Confirm browser session state exists in the local browser profile if that flow is available.
  3. Install python3, Playwright for Python, Chromium, xvfb, and Chromium runtime libraries on the VM if browser automation is needed.
  4. Copy the cookie file to the VM, for example /tmp/github-cookies.json.
  5. Start a live gh auth login --hostname github.com --git-protocol https --web --skip-ssh-key process and keep it running.
  6. Use Playwright under xvfb-run to open https://github.com/login/device, reuse saved cookies, enter the one-time code, and authorize the CLI.
  7. Re-run the verification commands.

Important details for the GitHub device page:

  • Device codes expire quickly; restart the flow if automation stalls.
  • GitHub may split the code across inputs user-code-0 through user-code-8; skip the hidden hyphen input.
  • Headful Chromium under xvfb-run -a may be more reliable than headless Chromium for the final authorization button.

Failure Handling

  • gh auth status fails: authenticate or explain the missing credentials.
  • HTTP 404 from gh api: check repository name, token scopes, and whether the authenticated user has access.
  • Empty search results: report the query used before creating new GitHub objects.
  • CI logs unavailable: inspect run permissions, retention, and whether the job is still running.
  • Rate limit or SSO failures: surface the exact gh error and do not retry blindly.

© AFK-surf, 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 macos/OpenBridge/Resources/SystemSkills.bundle/github of AFK-surf/OpenBridge.

Open the folder on GitHubat commit a9ca905

Compare with similar skills

GitHub 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.

GitHub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitHub this skillAFK-surf/OpenBridge430—~2.1kAutomated safety check: PassMIT
Gh Update PR Descriptionlidofinance/staking-modules119—~568Automated safety check: PassGPL-3.0
Autofixtsedio/tsed3.1k2 repos~2.9kAutomated safety check: NotesMIT
Gh QueueLanternOps/breeze131—~5kAutomated safety check: PassAGPL-3.0
Nestjs Git Commit PR Messageaiskillstore/marketplace430—~2.4kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0

Similar skills

  • Gh Update PR Description

    lidofinance/staking-modules

    Update the current-branch GitHub PR title, description, and labels with gh CLI using this repository's PR template.

    119 GitHub stars~568 tokensUpdated today
    DevelopmentAuto-check passed
  • Autofix

    tsedio/tsed

    Safely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute reviewer-provided prompts directly

    3.1k GitHub starsUsed in 2 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Gh Queue

    LanternOps/breeze

    A skill your agent uses when reviewing, triaging, or managing the incoming GitHub backlog on the Breeze repo — PRs, Discussions, AND Issues.

    131 GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check passed
  • Nestjs Git Commit PR Message

    aiskillstore/marketplace

    Prepares and publishes intentional Git changes for NestJS projects.

    430 GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed

More from AFK-surf/OpenBridge

All 14 skills in this repo
  • Swiftui UI Patterns

    AFK-surf/OpenBridge

    Best practices and example-driven guidance for building SwiftUI views and components.

    430 GitHub starsUsed in 4 repos~887 tokens
    Auto-check passed
  • Swiftui Expert Skill

    AFK-surf/OpenBridge

    Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.

    430 GitHub starsUsed in 2 repos~3.9k tokens
    Auto-check passed
  • UI Designer

    AFK-surf/OpenBridge

    Design or restyle user interfaces using vendored DESIGN.md references from popular product and brand-inspired visual systems.

    430 GitHub stars~4.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Bridge Agent Log Analyzer

    AFK-surf/OpenBridge

    Analyze Bridge agent execution logs from ~/.bridge/sessions, reconstruct the agent's actual runtime behavior, and explain tool execution, failures, retries, and artifacts from persisted session files.

    430 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Format Converter

    AFK-surf/OpenBridge

    Convert files between formats. An agent skill from AFK-surf/OpenBridge.

    430 GitHub stars~549 tokensUpdated 3 mo ago
    Auto-check passed
  • Skill Manager

    AFK-surf/OpenBridge

    Manage skills: create, install, modify, or delete skills. An agent skill from AFK-surf/OpenBridge.

    430 GitHub stars~749 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about GitHub

What does GitHub do?

Work with GitHub through the gh CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments. GitHub is an agent skill from AFK-surf/OpenBridge. Work with GitHub through the gh CLI, including issues, pull requests, reviews, Actions runs, releases, repository metadata, API queries, and CLI authentication/setup on persistent environments.

When should I use GitHub?

GitHub fits situations like: tasks that involve Pull requests.

How do I install GitHub in Claude Code?

Run `npx skills add AFK-surf/OpenBridge --skill github -a claude-code`. Or copy the skill folder (macos/OpenBridge/Resources/SystemSkills.bundle/github in AFK-surf/OpenBridge) into .claude/skills/github in your project. Claude Code loads it when a task matches its description.

How do I install GitHub in Codex?

Run `npx skills add AFK-surf/OpenBridge --skill github -a codex`. Or copy the skill folder (macos/OpenBridge/Resources/SystemSkills.bundle/github in AFK-surf/OpenBridge) into .agents/skills/github in your project. Codex loads it when a task matches its description.

Can I use GitHub 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 AFK-surf/OpenBridge --skill github -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/github, .gemini/skills/github, .github/skills/github and .opencode/skills/github in your project.

What does GitHub need to run?

Going by SKILL.md and its folder, GitHub needs the command-line tools its instructions call (gh and git) and credentials named GH_TOKEN.

Does GitHub access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is GitHub 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 GitHub use?

GitHub 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 GitHub use?

About 2.1k tokens (SKILL.md is roughly 8.4k 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 GitHub?

Skills that share tags, products or a category with GitHub: Gh Update PR Description (lidofinance/staking-modules, 119 stars), Autofix (tsedio/tsed, 3.1k stars), Gh Queue (LanternOps/breeze, 131 stars) and Nestjs Git Commit PR Message (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitHub?

AFK-surf (a GitHub organization) maintains it in AFK-surf/OpenBridge, which has 430 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on June 10, 2026.

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