johnlarkin1

Create PR — Git skill for Claude Code

Git community

Review branch changes (including staged/uncommitted), generate commit message, and create PR using Claude Code template.

How to install Create PR

Installs to ~/.claude/skills/johnlarkin1-claude-code-extensions-create-pr/SKILL.md

Terminal
mkdir -p ~/.claude/skills/johnlarkin1-claude-code-extensions-create-pr && curl -fsSL https://raw.githubusercontent.com/johnlarkin1/claude-code-extensions/HEAD/commands/create-pr.md -o ~/.claude/skills/johnlarkin1-claude-code-extensions-create-pr/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Create PR does


description: Review branch changes (including staged/uncommitted), generate commit message, and create PR using Claude Code template allowed-tools: ["Bash", "Read", "Write"]

Create PR from Branch Changes

Step 1: Gather Context

!git fetch origin main 2>/dev/null || git fetch origin master 2>/dev/null

!git branch --show-current

Step 2: Review All Changes (Excluding Lock Files)

Committed changes vs origin: !git diff origin/main...HEAD -- . ':!uv.lock' ':!poetry.lock' ':!Cargo.

Alternatives in Git

  • Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
  • Commit Msg — 生成 Git Commit Message 1k ★
  • CodeReview — Review local code changes against base branch 512 ★

Full documentation available on GitHub

View Source Repository