From base
Creates a GitHub pull request using the gh CLI with Conventional Commits formatting. Use when the user says "create PR", "open PR", "make PR", "pull request", "gh-pr", "PR from X to Y", or asks to push changes for review. Handles branch detection, push confirmation, existing PR detection, and generates a structured title and body.
How this skill is triggered — by the user, by Claude, or both
Slash command
/base:gh-prThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a GitHub pull request following standard conventions using the `gh` CLI.
Create a GitHub pull request following standard conventions using the gh CLI.
$ARGUMENTS overrides auto-detection. Examples:
dev to main → explicit head/base branches--draft, --reviewer @user, --label bug → passed to gh pr create"fix auth flow" → used as PR title directlyDetect the current branch as head. Use main as base unless $ARGUMENTS specifies otherwise.
If head equals base, stop: "Cannot create a PR from the base branch to itself."
Run git status --porcelain. If there are uncommitted changes, warn the user and ask whether to proceed or commit first.
git rev-parse --abbrev-ref --symbolic-full-name @{upstream}
git push -u origin <branch> and ask before executing.Never push without user confirmation.
gh pr list --head <branch> --state open
If a PR already exists, show its URL and ask whether to update it or stop.
git log --oneline <base>..HEAD
git diff <base>...HEAD --stat
Read all commit messages to understand the full scope of changes, not just the latest commit.
Title rules:
<type>(<scope>): <subject>$ARGUMENTS provides a title, use it as-isBody template:
## Summary
- What changed and why (max 3 bullets, focus on why)
## Test plan
- [ ] Verification step
- [ ] Another verification step
gh pr create --base <base> --title "<title>" --body "$(cat <<'EOF'
<generated body>
EOF
)"
Append --draft, --reviewer, --label flags from $ARGUMENTS if provided.
Given these commits on feat/retry-auth vs main:
abc1234 add retry logic to auth middleware
def5678 update error messages for token expiry
Title:
feat(auth): add retry logic and improve token error messages
Body:
## Summary
- Added retry with exponential backoff for transient auth failures to reduce 503 errors
- Clarified error messages on token expiry so users see actionable next steps
## Test plan
- [ ] Trigger transient auth failure and verify retry resolves it
- [ ] Force token expiry and confirm updated error message displays
Output on success:
feat(auth): add retry logic and improve token error messages
https://github.com/owner/repo/pull/42
If gh pr create fails:
not logged in) → suggest gh auth logingit remote add origin <url>Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub kevin-rm/claude-code --plugin base