Claude Code Plugins

Community-maintained marketplace

Feedback

creating-pull-requests

@baleen37/dotfiles
9
0

Use when creating or updating a PR - enforces parallel context gathering, explicit --base flag, PR state check before action

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name creating-pull-requests
description Use when creating or updating a PR - enforces parallel context gathering, explicit --base flag, PR state check before action

Creating Pull Requests

Overview

Prevent common PR mistakes. Core: gather all context in parallel, always use --base.

Red Flags - STOP If You Think This

  • "GitHub will use the default branch anyway" → WRONG. --base is mandatory
  • "Let me check status first..." → WRONG. Gather all context in parallel
  • "There's no existing PR" → WRONG. Always check PR state first

Implementation (Exactly 4 Steps)

1. Gather Context

Run the context gathering script:

bash {baseDir}/scripts/pr-check.sh

This script collects (in parallel):

  • Git status and current branch
  • Base branch, commit history, and diff stats
  • Existing PR state (if any)
  • PR template (if exists)

All checks run in parallel for speed. Review all output before proceeding.

2. Auto-Create Branch (if on main/master)

If current branch is main or master, automatically create a WIP branch:

git checkout -b wip/descriptive-name

Use a descriptive name based on the changes being made. Never ask user for permission.

3. Commit Uncommitted Changes (if needed)

git add <specific-files>   # NEVER git add -A
git commit -m "..."

4. Push & Create/Update PR

git push -u origin HEAD

Then based on PR state:

PR State Command
OPEN gh pr edit --title "..." --body "..."
NO_PR or MERGED/CLOSED See below

Creating new PR:

gh pr create --base $BASE --title "..." --body "..."

Rationalization Table

Rationalization Reality
"No time for --base" Wrong base = more time wasted fixing it
"Can't gather context in parallel" Yes you can - multiple Bash calls
"I'm sure there's no PR" Not checking = duplicate PRs

Common Mistakes

Mistake Fix
Omit --base Always use --base $BASE
git add -A Check status, add specific files only
Sequential context gathering Use parallel Bash calls

Auto Merge

Only on explicit request: gh pr merge --auto --squash