github

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

37,131 stars

Best use case

github is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

Teams using github should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/github/SKILL.md --create-dirs "https://raw.githubusercontent.com/HKUDS/nanobot/main/nanobot/skills/github/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/github/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How github Compares

Feature / AgentgithubStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# GitHub Skill

Use the `gh` CLI to interact with GitHub. Always specify `--repo owner/repo` when not in a git directory, or use URLs directly.

## Pull Requests

Check CI status on a PR:
```bash
gh pr checks 55 --repo owner/repo
```

List recent workflow runs:
```bash
gh run list --repo owner/repo --limit 10
```

View a run and see which steps failed:
```bash
gh run view <run-id> --repo owner/repo
```

View logs for failed steps only:
```bash
gh run view <run-id> --repo owner/repo --log-failed
```

## API for Advanced Queries

The `gh api` command is useful for accessing data not available through other subcommands.

Get PR with specific fields:
```bash
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
```

## JSON Output

Most commands support `--json` for structured output.  You can use `--jq` to filter:

```bash
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
```

Related Skills

weather

37131
from HKUDS/nanobot

Get current weather and forecasts (no API key required).

tmux

37131
from HKUDS/nanobot

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

summarize

37131
from HKUDS/nanobot

Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).

skill-creator

37131
from HKUDS/nanobot

Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.

memory

37131
from HKUDS/nanobot

Two-layer memory system with grep-based recall.

cron

37131
from HKUDS/nanobot

Schedule reminders and recurring tasks.

clawhub

37114
from HKUDS/nanobot

Search and install agent skills from ClawHub, the public skill registry.

clickhouse-github-forensics

3891
from openclaw/skills

Query GitHub event data via ClickHouse for supply chain investigations, actor profiling, and anomaly detection. Use when investigating GitHub-based attacks, tracking repository activity, analyzing actor behavior patterns, detecting tag/release tampering, or reconstructing incident timelines from public GitHub data. Triggers on GitHub supply chain attacks, repo compromise investigations, actor attribution, tag poisoning, or "query github events".

Security

github-tools

3891
from openclaw/skills

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

DevOps & Infrastructure

openclaw-github-repo-commander

31392
from sickn33/antigravity-awesome-skills

7-stage super workflow for GitHub repo audit, cleanup, PR review, and competitor analysis

github

31392
from sickn33/antigravity-awesome-skills

Use the `gh` CLI for issues, pull requests, Actions runs, and GitHub API queries.

github-workflow-automation

31392
from sickn33/antigravity-awesome-skills

Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini CLI](https://github.com/google-gemini/gemini-cli) and modern DevOps practices.