cpr

Community

Stage, commit, and open a GitHub PR

Authorjpaddison3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates staging, committing, and creating a GitHub pull request from the current repository, reducing manual git command sequencing and branch-handling friction.

Core Features & Use Cases

  • Automatic Branch Handling: Detects when the current branch is main or master and consults CLAUDE.md for branch policies, creating a new branch if required.
  • Safe, Single-Step Commands: Executes git and gh operations one command at a time to match allowed-tool constraints and avoid shell chaining.
  • Commit and PR Body Management: Writes commit messages and PR bodies to temporary files in project_root/tmp or /tmp and uses them with git commit -F and gh pr create --body-file.
  • Use Case: After making local edits, use this Skill to stage changes, create a branch if needed, push to the remote, and open a PR without manual file edits.

Quick Start

Commit staged changes, create a branch if on main/master per CLAUDE.md, push to the remote, and open a GitHub PR using the gh CLI with commit and PR bodies saved to a temporary file.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cpr
Download link: https://github.com/jpaddison3/dotfiles/archive/main.zip#cpr

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.