github

Manages GitHub issues, pull requests, and CI runs via the gh CLI.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/redlanternstudios/swarmclaw --skill github-redlanternstudios
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/redlanternstudios/swarmclaw/tree/main/skills/github
Command: npx skills add https://github.com/redlanternstudios/swarmclaw --skill github-redlanternstudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interacting with GitHub repositories through the web UI is slow and hard to automate. This Skill lets you perform GitHub operations—checking PR status, triaging issues, inspecting CI failures, and querying the API—directly from the command line using the official gh CLI. ## Core Features & Use Cases - Pull Request Management: List, view, create, merge PRs, and check CI status with gh pr commands. - Issue Triage: Create, list, filter, and close issues with structured JSON output and jq filtering. - CI/Workflow Inspection: View workflow runs, fetch failed step logs, and re-run failed jobs. - API Queries: Run arbitrary GitHub API queries with gh api and --jq for precise field extraction. - Use Case: A developer wants to review PR #55 before merging. The Skill generates a summary with title, author, diff stats, and CI check results in one command sequence. ## Quick Start Ask the agent to check the CI status and show a summary of pull request 55 in the owner/repo repository using the gh CLI.

Frequently Asked Questions about github

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check PR CI status from the command line?

Run `gh pr checks <number> --repo owner/repo` to see the status of all CI checks for a pull request. You can also use `gh pr view` with `--json` to get mergeable state and other metadata.

How to view failed GitHub Actions logs with gh CLI?

Use `gh run view <run-id> --repo owner/repo --log-failed` to display only the logs from failed steps. To retry, run `gh run rerun <run-id> --failed --repo owner/repo`.

Does the gh CLI require authentication before use?

Yes, run `gh auth login` once to authenticate with your GitHub account, then verify with `gh auth status`. Without authentication, most commands against private repositories will fail.

Can I use gh CLI for local git operations like cloning?

No, this Skill is not for local git operations or cloning. Use git directly for commits, branches, and `git clone`; the gh CLI is intended for GitHub platform features like issues, PRs, and Actions.

How do I filter GitHub issues or PRs with JSON output?

Most gh commands support `--json` with field names and `--jq` for filtering. For example, `gh pr list --json number,title,mergeable --jq '.[] | select(.mergeable == "MERGEABLE")'` lists only mergeable PRs.

Why do gh api queries hit rate limits?

GitHub API rate limits apply to repeated queries. Use `gh api --cache 1h` to cache responses for an hour and reduce the number of requests sent to the API.