github-cli-workflow

Create GitHub pull requests using the gh CLI.

2|3|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/ulises-jeremias/agentic-workstation --skill github-cli-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-cli-workflow
Source: https://github.com/ulises-jeremias/agentic-workstation/tree/main/home/dot_local/share/agentic-workstation/skills/github-cli-workflow
Command: npx skills add https://github.com/ulises-jeremias/agentic-workstation --skill github-cli-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of creating and managing GitHub pull requests using the gh CLI, eliminating the need for manual PR creation and reducing the risk of errors.

Core Features & Use Cases

  • Automated PR Creation: Create draft pull requests from the command line, using a title and optional body file.
  • Branch Tracking: Ensures the working branch is in sync with the remote before creating a PR.
  • PR Template Usage: Utilizes repository PR templates for the PR body when available.
  • Fallback Mechanism: Provides a fallback for manual PR creation in case of CLI failure.
  • Use Case: For developers who frequently need to create pull requests on GitHub and want to automate the process for efficiency and consistency.

Quick Start

Create a draft PR with a title and body file using the gh CLI.

Frequently Asked Questions about github-cli-workflow

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

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

The gh CLI automates pull request creation by using your current branch and a specified title. It ensures your working branch is synced with the remote, utilizes repository PR templates for the body, and provides a fallback for manual creation if the CLI command fails.

Do I need to push my branch before using gh CLI to create a pull request?

Yes, the working branch must be pushed to the remote repository before creating a PR. The Skill requires the gh CLI to be authenticated and relies on branch tracking to ensure your local branch is in sync with the remote before attempting PR creation.

Can I use repository PR templates when automating PR creation with gh CLI?

Yes, the Skill automatically utilizes repository PR templates for the PR body when they are available. You can also provide an optional body file to supply the content for the pull request, ensuring consistency across automated PR creation.

What happens if the gh CLI fails to create a pull request?

If the gh CLI fails, the Skill provides a fallback mechanism for manual PR creation. This ensures your workflow is not blocked by CLI failures, allowing you to proceed with manual creation as a backup to maintain your development process.

Is gh CLI better than the GitHub web interface for managing pull requests?

Using the gh CLI eliminates manual web interaction and reduces the risk of errors during PR creation. It is ideal for developers and teams using GitHub for version control who want to streamline their PR workflow and maintain consistency through command-line automation.