Skip to main content
skill CX Codex

github · mitsuhiko — Claude Code skill: GitHub work via gh CLI

A skill that teaches the agent to work with GitHub through the gh CLI: pull requests, CI runs, issues and raw API queries.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mitsuhiko/agent-stuff --skill github -a claude-code
Open on GitHub

What github does

The skill spells out how the agent should talk to GitHub using gh. It ships ready commands for three jobs: checking CI on a pull request (gh pr checks 55 --repo owner/repo), listing recent workflow runs (gh run list --repo owner/repo --limit 10), and viewing a run to see which steps failed, with logs (gh run view <run-id> --repo owner/repo --log-failed).

When a subcommand does not expose what you need, the skill points at gh api. Pulling specific PR fields looks like this: gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'. Most commands take --json for structured output and --jq to filter it, so results land as data instead of text you have to read.

One rule matters in practice: outside a git directory you must pass --repo owner/repo or hand over a URL directly. Skip it and gh has no idea which repository you mean, so the command fails. The gh CLI itself has to be installed and authenticated — the skill only describes how to drive it.

What it helps with

  • check CI status on a specific pull request
  • find which workflow steps failed and pull their logs
  • list recent CI runs for a repository
  • fetch PR fields that plain subcommands do not show, via gh api
  • filter gh output into JSON with --json and --jq

Example prompts for the agent

  • check CI on PR 55 in owner/repo
  • list the last 10 workflow runs in owner/repo
  • use gh api to get the title, state and author of PR 55

How to install github

1Skills CLI (Vercel)

npx skills add mitsuhiko/agent-stuff --skill github -a claude-code

2Manually: put the files in place

~/.claude/skills/github/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/github/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about github

How do I install the github skill in Claude?

Run npx skills add mitsuhiko/agent-stuff --skill github -a claude-code. The skill file lands at ~/.claude/skills/github/SKILL.md.

What does the github skill do?

It tells the agent how to work with GitHub through the gh CLI: gh issue, gh pr, gh run and gh api for issues, pull requests, CI runs and API queries.

What do I need for the skill to work?

An installed and authenticated gh CLI. Outside a git directory, pass --repo owner/repo or a URL directly, otherwise the command cannot resolve the repository.

Source text

SKILL.md · Apache-2.0
---
name: github
description: "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."
---

# 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)"'
```

© mitsuhiko · Apache-2.0 · mitsuhiko/agent-stuff

Similar skills

All skills for Git and GitHub →

github by other authors comes first.

github openclaw A skill that teaches your agent to drive GitHub through gh: browse pull requests, read CI logs, post comments and query the API. CX Codex +1 6,100installs github Dimillian Guides coding agents to use the gh CLI for inspecting pull requests, issues, and failed CI workflows. CX Codex +1 870installs github kostja94 A skill for marketing on GitHub: repos, READMEs, GitHub Pages and Awesome lists used for SEO and AI citation. CX Codex +1 1,800installs github-triage code-yeongyu Reads every open issue and PR in a repo and writes evidence-backed reports. It never comments, merges or closes anything. CX Codex +1 2,700installs github-pr-review fvadicamo Pulls review comments from a GitHub pull request, sorts them by severity and proposes fixes. Useful once a PR has collected a pile of feedback. CX Codex +1 576installs github-image-upload drogers0 Uploads local images, PDFs, zips and logs to GitHub, then embeds the resulting links in a PR description, issue or comment. CX Codex +1 509installs github-ops daymade Operates GitHub state through gh and API calls, then reads the result back separately. Use it for pull requests, issues, repositories, and access settings. CX Codex +1 1,500installs prs-awaiting-author dyoshikawa Lists open pull requests where the next move belongs to the author: failing CI, unaddressed review comments, or a maintainer question waiting on a reply. CX Codex +1 ★ 1,552repo stars github-workflow Mindrally A rule set that tells your agent how to work with GitHub: pull requests, review comments, Actions workflows, issue templates and branch protection. Useful whenever the agent touches a repo. CX Codex +1 780installs

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor