Skip to content
Agentmart
Submit a tool

gh-cli

Operate on GitHub from the terminal with the gh CLI.

Skill by nb-99

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying gh-cli?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/nb-99-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

Operate on GitHub from the terminal with the gh CLI. Use for GitHub repositories, issues, pull requests, reviews, Actions/workflow runs, releases, code scanning alerts, and code search.

Use cases: 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
Operate on GitHub from the terminal with the gh CLI. Use for GitHub repositories, issues, pull requests, reviews, Actions/workflow runs, releases, code scanning alerts, and code search.
License
MIT
Instructions
80 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# GitHub via the `gh` CLI

Use the `gh` CLI for all GitHub operations. `gh api` covers anything without a
dedicated subcommand.

Read freely. An explicit user request that names the GitHub target and a bounded
write action authorizes that action. Otherwise, show the exact mutation and ask
for confirmation before running it.

Always confirm immediately before destructive, irreversible,
privilege-changing, or materially broader work. This includes merges, closing
or deleting content, publishing or deleting releases, changing access or
secrets, and any action whose effects exceed the request. Recheck the repository
and object identifier before every mutation.

## Repos & info

```sh
gh repo view OWNER/REPO
gh api repos/OWNER/REPO
gh search repos "QUERY" --limit 10
gh search code "QUERY"            # cross-repo code search
```

## Issues

```sh
gh issue list --repo OWNER/REPO --state open
gh issue view NUMBER --repo OWNER/REPO --comments
gh issue create --repo OWNER/REPO --title T --body B   # WRITE
gh issue comment NUMBER --body B                        # WRITE
```

## Pull requests

```sh
gh pr list --repo OWNER/REPO
gh pr view NUMBER --comments
gh pr diff NUMBER
gh pr checks NUMBER                 # CI status
gh pr create --base main --head BRANCH --title T --body B   # WRITE
gh pr review NUMBER --approve|--request-changes -b B        # WRITE
gh pr merge NUMBER --squash                                 # HIGH-RISK: confirm
```

## Actions / workflows

```sh
gh run list --repo OWNER/REPO --limit 10
gh run view RUN_ID --log
gh run view RUN_ID --log-failed     # only failed step logs
gh run rerun RUN_ID                 # HIGH-RISK: confirm
gh workflow list
gh workflow run WORKFLOW --ref BRANCH   # HIGH-RISK: confirm
```

## Releases

```sh
gh release list --repo OWNER/REPO
gh release view TAG
gh release create TAG --notes N     # HIGH-RISK: confirm
```

## Code scanning / security (via gh api)

```sh
gh api repos/OWNER/REPO/code-scanning/alerts --paginate
gh api repos/OWNER/REPO/code-scanning/alerts/ALERT_NUMBER
gh api repos/OWNER/REPO/dependabot/alerts --paginate
```

## Tips

- `--json FIELDS --jq '...'` for structured output:
  `gh pr list --json number,title,headRefName --jq '.[] | .title'`.
- `gh api --paginate` to traverse all pages.
- Authentication uses the existing `gh auth` session / `$GITHUB_TOKEN`.

From nb-99/skillektion, MIT.

More from nb-99/skillektion

Signals

Stars
1
Forks
0
Open issues
1
Last commit (this folder)
Sep 4, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from nb-99

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get gh-cli running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying gh-cli?

CallGet help
Cite this page

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