Create pr github git
Skill ForeverAProgrammer/claude-devflow/skills/create-pr-github-git
Claude Code plugin with skills for daily dev workflows — commits, standups, PRs, design docs, and GitHub automation.
npx -y skills add ForeverAProgrammer/claude-devflow --skill create-pr-github-gitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create a GitHub pull request from the current branch, deriving the title and description from the branch's git history.
SKILL.md
1.7 KB, as published. Nobody here has run it
Create a GitHub pull request from the current branch, deriving the title and description from the branch's git history.
Steps:
- Check that
ghis installed and authenticated by runninggh auth status. If not, tell the user and stop. - Get the repo's default branch:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'. Use this as the base for all comparisons below (referred to as<base>). - Push the current branch to the remote if needed:
- Run
git rev-parse --abbrev-ref --symbolic-full-name @{upstream}to check if an upstream is set. - If no upstream is set, run
git push -u origin HEADto push and set tracking. - If an upstream is set, run
git pushto make sure the remote is up to date.
- Run
- Run
git log --oneline <base>..HEADto list commits on this branch. - Run
git diff <base>...HEAD --statto understand what changed. - Derive a PR title (imperative tense, under 72 chars) and description from the commits and diff:
- What changed (2-4 sentences, plain English)
- Why it was needed if inferrable
- Notable implementation details as bullet points (optional)
- No filler like "This PR..." or vague words without specifics
- Check if a PR already exists for this branch:
gh pr view --json url,number 2>/dev/null.- If no PR exists, run
gh pr create --title "<title>" --body "<description>"to open one. Append any user-provided flags from $ARGUMENTS. - If a PR already exists, run
gh pr edit --title "<title>" --body "<description>"to update it.
- If no PR exists, run
- Print the PR URL.
$ARGUMENTS