gh

Guide GitHub CLI usage for PRs, issues, releases, and automation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dagster-io/workstack --skill gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/dagster-io/workstack/tree/main/.claude/skills/gh
Command: npx skills add https://github.com/dagster-io/workstack --skill gh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manual GitHub operations in the browser are slow and interrupt workflow. This skill brings all GitHub interactions to your terminal, eliminating context switching and enabling powerful automation.

Core Features & Use Cases

  • Streamlined PR Management: Create, view, review, and merge pull requests without leaving your command line.
  • Efficient Issue Tracking: Manage issues, assign labels, and comment directly from your terminal.
  • GitHub API Automation: Access GitHub's REST and GraphQL APIs with built-in authentication for complex scripting.
  • Use Case: Automatically create a pull request from your current branch, assign reviewers, and monitor CI checks, all with a single command.

Quick Start

Use the gh skill to list all open pull requests in the current repository.

Frequently Asked Questions about gh

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

FAQPage Schema
How do I create and manage pull requests from the command line?

GitHub CLI lets you create, view, and merge pull requests directly from your terminal without switching to the browser. Use `gh pr create` to open a PR from your current branch, `gh pr view` to inspect details, and `gh pr merge` to finalize changes with customizable merge strategies.

Can I automate GitHub workflows and API calls with the CLI?

Yes. GitHub CLI provides access to REST and GraphQL APIs with built-in authentication, enabling you to script complex workflows—like auto-assigning reviewers, checking CI status, or bulk-managing issues—without manual intervention or separate API client setup.

What's the fastest way to manage issues and labels from my terminal?

GitHub CLI streamlines issue tracking by letting you list, create, close, and label issues directly in your shell. Commands like `gh issue create`, `gh issue list --label`, and `gh issue comment` eliminate context-switching and keep your workflow uninterrupted.

Do I need to authenticate separately to use GitHub CLI for API access?

No. GitHub CLI handles authentication automatically after initial setup with `gh auth login`. Once configured, all subsequent commands—including REST and GraphQL API calls—inherit your credentials without requiring additional tokens or configuration per command.

How do I integrate GitHub CLI with shell scripts for CI/CD automation?

GitHub CLI commands are designed for scripting and integrate seamlessly into bash or shell automation. Combine commands like `gh pr list`, `gh run list`, and `gh workflow run` with standard shell utilities to build custom CI/CD pipelines and trigger actions programmatically.