DefaultPerson

Push And PR — Git skill for Claude Code

Git community

Push current branch and create a pull request.

How to install Push And PR

Installs to ~/.claude/commands/defaultperson-claude-code-setup-push-and-pr.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/DefaultPerson/claude-code-setup/HEAD/.claude/commands/push-and-pr.md -o ~/.claude/commands/defaultperson-claude-code-setup-push-and-pr.md

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

What Push And PR does


allowed-tools: Bash(git *), Bash(gh *) description: Push current branch and create a pull request.

Context

  • Status: !git status
  • Branch: !git branch --show-current
  • Remote: !git remote -v
  • Unpushed commits: !git log @{u}..HEAD --oneline 2>/dev/null || echo "No upstream set"

Git Rules

  • Trunk-based development with rebase (linear history)
  • PR title = Conventional Commit format, ≤72 chars
  • PR description: what / why / how to test / risks
  • PR base always main, mer

Alternatives in Git

  • Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
  • Yeet — Stage, commit, push code, and open a GitHub pull request via CLI 14.6k ★
  • Generate PR Description — You are tasked with generating a comprehensive pull request description following the repository's standard te 10k ★

Full documentation available on GitHub

View Source Repository