Skip to content
Agentmart
Submit a tool

gh-cli

Interact with GitHub repositories using the GitHub CLI (gh).

Skill by ahandsel

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ahandsel-gh-cli

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Interact with GitHub repositories using the GitHub CLI (gh). Covers pull requests, issues, releases, workflow runs, and branch operations. Supports beginner and intermediate tracks, write-operation confirmation, and an --auto flag to skip prompts.

Use cases: writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/gh-cli

What's inside

Skill name
gh-cli
Description
Interact with GitHub repositories using the GitHub CLI (gh). Covers pull requests, issues, releases, workflow runs, and branch operations. Supports beginner and intermediate tracks, write-operation confirmation, and an --auto flag to skip prompts.
License
MIT
Instructions
427 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# GitHub CLI skill

Use the `gh` CLI to read and write GitHub data for the repository in the current working directory.


## Choose your track

| Track        | You should pick this if...                                        |
| ------------ | ----------------------------------------------------------------- |
| Beginner     | You have never used `gh` or need setup help                       |
| Intermediate | `gh` is installed and authenticated; you want a command reference |


## Prerequisites

* `gh` CLI installed (see Beginner Track for instructions)
* Authenticated via `gh auth login`
* Current working directory is inside a cloned GitHub repository, or run `gh repo set-default` to set one

---


## Beginner Track


### 1 Installation


#### macOS

```bash
brew install gh
```


#### Linux (Debian / Ubuntu)

```bash
(type -p wget > /dev/null || sudo apt-get install wget -y) \
  && sudo mkdir -p -m 755 /etc/apt/keyrings \
  && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
  && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
  && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
  && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
  && sudo apt update \
  && sudo apt install gh -y
```


#### Windows (WSL)

Inside your WSL terminal, follow the Linux instructions above.

Verify the install:

```bash
gh --version
```

Expected output (version number may differ):

```text
gh version 2.x.x (2025-xx-xx)
```


### 2 Authentication

Run:

```bash
gh auth login
```

The CLI walks you through an interactive prompt:

1. Select **GitHub.com** (or GitHub Enterprise if applicable).
2. Choose your preferred protocol - **HTTPS** is simplest.
3. Authenticate via **browser** (recommended) or paste a personal access token.

Expected output on success:

```text
✓ Logged in as your-username
```


### 3 Environment verification

Check auth status:

```bash
gh auth status
```

Expected output:

```text
github.com
  ✓ Logged in to github.com account your-username (keyring)
  - Active account: true
```

If the current directory is not inside a cloned repo, set a default:

```bash
gh repo set-default
```

This prompts you to pick from your repositories.


### 4 Command guide


#### Repository and branch operations

**Pull the latest commits on the current branch**

From ahandsel/tokyo-geek, MIT.

More from ahandsel/tokyo-geek

Signals

Stars
2
Forks
0
Open issues
1
Last commit (this folder)
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from ahandsel

Cite this page

gh-cli skill. Agent Mart. https://agentmart.dev/skills/ahandsel-gh-cli (last updated 2026-10-24)