github

Automate read-only GitHub operations using gh CLI commands.

64|5|Updated Jan 12, 2023
One-click install
npx skills add https://github.com/kaushikgopal/dotfiles --skill github-kaushikgopal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/kaushikgopal/dotfiles/tree/main/.ai/skills/github
Command: npx skills add https://github.com/kaushikgopal/dotfiles --skill github-kaushikgopal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables controlling GitHub through the gh CLI, avoiding web UIs and APIs and enabling reproducible workflows.

Core Features & Use Cases

  • Non-destructive reads: VIEW, LIST, SHOW, and status checks with gh commands only.
  • Common Ops: PRs, issues, workflows, releases, and repository operations using gh commands.
  • Use Case: Quickly audit open PRs in a repo, or check the status of a workflow without leaving the terminal.

Quick Start

Use gh to view a repo's PRs and issues. Example: gh pr list

Frequently Asked Questions about github

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

FAQPage Schema
How do I view and list pull requests in a GitHub repository from the terminal?

Use gh pr list to display all pull requests in your repository. The gh CLI fetches PR data without opening a web browser, enabling quick terminal-based audits of PR status, author, and merge state.

Can I check GitHub workflow status and run details without leaving the terminal?

Yes, use gh workflow list and gh run list to inspect workflows and their execution history. The gh CLI surfaces workflow status, run outcomes, and logs directly in your terminal without web UI navigation.

What GitHub operations does the gh CLI support safely for read-only access?

The gh CLI supports non-destructive reads on pull requests, issues, workflows, runs, and repository metadata. Operations use VIEW, LIST, and SHOW commands with non-interactive flags to ensure safe, reproducible queries without accidental modifications.

How do I automate GitHub repository audits and checks in scripts?

Use gh CLI commands with --json output flags and non-interactive options to automate PR reviews, issue tracking, and release inspections. This enables reproducible, scriptable workflows that integrate GitHub operations into CI/CD pipelines and terminal automation.

Does gh CLI work if I haven't authenticated with my GitHub account?

The gh CLI prompts for gh auth login if authentication fails. Set up credentials once, then use --repo owner/name to specify repository context when needed for subsequent non-destructive read operations.

What's the difference between using gh CLI versus the GitHub web interface for repository operations?

The gh CLI enables reproducible, scriptable GitHub workflows within your terminal and automation tools, avoiding web UI friction. It supports batch operations, piping to other tools, and integration into terminal-based development workflows more efficiently than browser-based navigation.