gh

Execute gh CLI commands to manage GitHub issues and pull requests.

2|Updated Aug 20, 2025
One-click install
npx skills add https://github.com/disusered/dotfiles-universal --skill gh-disusered
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/disusered/dotfiles-universal/tree/main/ai/claude/skills/tools/gh
Command: npx skills add https://github.com/disusered/dotfiles-universal --skill gh-disusered

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates common GitHub operations directly from the command line, eliminating the need to switch to a web browser. It ensures adherence to critical Gitflow rules and prevents destructive operations, saving developers time and reducing the risk of workflow errors.

Core Features & Use Cases

  • PR & Issue Management: View, create, comment on, and manage GitHub Pull Requests and Issues.
  • Automated Gitflow: Automatically determines target branches based on Gitflow conventions and enforces user confirmation before creating PRs, preventing critical mistakes.
  • Safe Operations: Explicitly forbids destructive Git commands like git rebase or git push --force without explicit user permission, protecting codebase integrity.
  • Use Case: After committing your changes, use this skill to create a new Pull Request with a pre-generated description, ensuring it targets the correct branch (e.g., feature/* to develop) and adheres to all communication policies, all without leaving your terminal.

Quick Start

Create a new GitHub issue with the title "Bug: Login button not working" and the body "Users are reporting that the login button is unresponsive on the homepage."

Frequently Asked Questions about gh

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

FAQPage Schema
How do I create a pull request from the command line with GitHub?

Create a pull request using the gh CLI tool by running `gh pr create` with your branch and target branch. The Skill automatically determines the correct target branch based on Gitflow conventions (e.g., feature branches to develop) and confirms your source and target before submission, preventing mistakes.

Can I manage GitHub issues and pull requests without leaving my terminal?

Yes. Automate GitHub workflow tasks directly from your terminal using gh CLI commands to list, view, create, comment on, edit, and review issues and pull requests across repositories without switching to a web browser.

What safety features prevent accidental destructive operations on GitHub?

The Skill forbids destructive Git commands like rebase and force push without explicit user permission, enforces branch-targeting rules, and requires confirmation before PR creation. Write actions demand explicit authorization to protect codebase integrity.

How does Gitflow automation work with pull request creation?

The Skill detects your current branch, applies Gitflow conventions to determine the correct target branch automatically, and confirms both source and target branches with you before creating the pull request, eliminating manual branch selection errors.

Does the gh CLI tool work across multiple repositories?

Yes. The Skill provides comprehensive command coverage for issues and pull requests with appropriate repository context options, allowing you to manage tasks across different repositories from a single command line interface.

What's required to run GitHub automation tasks from the command line?

You need Bash as the execution environment and the gh CLI tool installed. The Skill handles the rest, automating GitHub operations while enforcing safety constraints and Gitflow conventions without additional configuration.