Claude-skill-registry GitHub Pull Requests
Create a GitHub pull request with conventional commit title
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/gh-pull-requests" ~/.claude/skills/majiayu000-claude-skill-registry-github-pull-requests && rm -rf "$T"
manifest:
skills/data/gh-pull-requests/SKILL.mdsource content
GitHub Pull Requests Skill
You are helping the user create a GitHub pull request for the current branch.
Steps
-
Get the current branch name (base branch is always
):maingit branch --show-current -
Ensure main is merged into the branch (no merge conflicts):
git fetch origin main git merge origin/main --no-edit- If merge conflicts occur, stop and help the user resolve them before proceeding
- If the merge introduces new commits, push the updated branch
-
Analyze the changes:
git log origin/main..HEAD --oneline git diff origin/main..HEAD --stat -
Read commit messages for context:
git log origin/main..HEAD --format="%B---" -
Generate the PR:
- Title: Use conventional commits format (e.g.,
,feat: add user authentication
)fix: resolve null pointer in parser - Body: Fill out the template below concisely
- Title: Use conventional commits format (e.g.,
PR Template
## Description (1-2 sentences on what this PR does) ## Reason (1-2 sentences on why this change was needed)
Output
Run this command with the generated title and body. Use a heredoc for the body to handle newlines:
gh pr create --web --title "feat: example title" --body "$(cat <<'EOF' ## Description Brief description here. ## Reason Why this was done. EOF )"
Guidelines
- Keep title under 72 characters
- Use conventional commit prefixes:
,feat
,fix
,refactor
,docs
,chore
,testperf - Be concise - no fluff or excessive detail
- If the branch name contains a ticket ID (e.g.,
), DO NOT include it in the titleCOP-123 - Only create ONE pull request