create-github-pr

Create GitHub Pull Requests from a feature branch using gh CLI.

3|Updated Jul 13, 2020
One-click install
npx skills add https://github.com/nieomylnieja/dotfiles --skill create-github-pr-nieomylnieja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-github-pr
Source: https://github.com/nieomylnieja/dotfiles/tree/main/config/agents/skills/create-github-pr
Command: npx skills add https://github.com/nieomylnieja/dotfiles --skill create-github-pr-nieomylnieja

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate the creation of GitHub Pull Requests from a feature branch, including comprehensive analysis of commits and an interactive confirmation flow.

Core Features & Use Cases

  • Analyze branch state and commits to understand the scope of changes.
  • Generate a concise, well-formed PR title and body based on the commits.
  • Prompt for confirmation before pushing and creating the PR, with options to regenerate or edit.
  • Push the branch when needed and create the PR via gh pr create, handling common edge cases like uncommitted changes and existing PRs.

Quick Start

Run the skill to analyze your current branch, generate a PR title and body, and create the PR after you confirm.

Frequently Asked Questions about create-github-pr

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

FAQPage Schema
How do I automate GitHub pull request creation from a feature branch?

To automate GitHub pull request creation, this skill analyzes your local branch commits to generate a PR title and body, then pushes the branch and runs gh pr create after you confirm.

Can I automatically generate a pull request title and body from my git commits?

Yes, you can generate a pull request title and body from git commits by analyzing the branch state and commit history to automatically draft a concise and well-formed PR description for review.

Do I need the gh CLI installed to create GitHub PRs from the command line?

Yes, you need the gh CLI installed to create GitHub PRs from the command line, along with git and jq, because the skill relies on these dependencies to analyze branches and execute the pull request creation.

What happens if I have uncommitted changes when automating a pull request?

When automating a pull request with uncommitted changes, the script handles this common edge case during analysis to ensure your working directory state is managed properly before pushing the branch and creating the PR.

Is there a way to review and edit a generated PR title before pushing the branch?

Yes, there is an interactive confirmation flow that prompts you to review, edit, or regenerate the proposed PR title and body before the script actually pushes your branch and creates the pull request.