commit-pr

Create a conventional commit, push the branch, and open a GitHub pull request.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eriknovak/ErikNovak --skill commit-pr-eriknovak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-pr
Source: https://github.com/eriknovak/ErikNovak/tree/main/.dotfiles/.claude/skills/commit-pr
Command: npx skills add https://github.com/eriknovak/ErikNovak --skill commit-pr-eriknovak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consolidates the process of creating a conventional commit, pushing the branch to a remote, and opening a pull request into a single, repeatable workflow.

Core Features & Use Cases

  • Generates a conventional commit message from changes and commits locally.
  • Pushes the current branch to the configured remote, creating a new branch if needed.
  • Creates a pull request on GitHub with a structured title and body using the GitHub CLI.
  • Validates repository state (not on main) and reports the PR URL on success.
  • Use Case: when finishing a feature branch and wanting to open a PR quickly without manual multi-step commands.

Quick Start

Stage your changes, commit with a conventional message, push the branch, and create a PR using the GitHub CLI.

Frequently Asked Questions about commit-pr

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

FAQPage Schema
How do I automate creating a conventional commit and opening a GitHub pull request?

To automate creating a conventional commit and opening a GitHub pull request, this Skill analyzes local changes to propose a commit message, pushes the branch to the remote, and opens a PR via the GitHub CLI.

Can I push a feature branch and create a PR in one step?

Yes, you can push a feature branch and create a PR in one step. The Skill pushes your current branch to the configured remote, creating a new remote branch if needed, and then opens a pull request with a structured title and body.

Do I need the GitHub CLI installed to automate commits and pull requests?

Yes, you need the GitHub CLI (gh) installed and authenticated to automate commits and pull requests. The Skill requires a Git repository with a GitHub remote and uses gh to create the pull request and return the URL.

What is a conventional commit and how does this workflow generate the message?

A conventional commit follows a structured format for readable history. This workflow analyzes your staged changes to propose a conventional commit message automatically, ensuring consistent formatting before pushing and opening a PR.

Why does the pull request automation fail when I am on the main branch?

Pull request automation fails on the main branch because the workflow validates your repository state to prevent direct main commits. You must switch to a feature branch for the Skill to push changes and open a pull request.