plugins/commit-helper/skills/creating-pr-from-branch/SKILL.md
Create a pull request from the current branch. Analyzes commits, generates title+body from PR template, pauses for approval, then pushes and creates PR. Use after committing changes.
npx skillsauth add qte77/claude-code-utils-plugin creating-pr-from-branchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Base branch: $ARGUMENTS (default: main)
Run using the Bash tool:
git branch --show-current — current branch namegit log --oneline <base>..HEAD — commits to includegit diff --stat <base>..HEAD — overall diff statsgit remote -v — verify remote existsIf no commits ahead of base, stop and inform the user.
Title: Derive from commits using conventional commit format.
type[(scope)]: description)Body: Check for .github/pull_request_template.md. If it exists, populate
its sections. If not, use this minimal format:
## Summary
<1-3 bullet points describing what and why>
## Commits
<list commits from git log>
Body guidelines:
Closes #N if the branch name contains an issue numberPresent the title and body. Ask the user:
Once approved:
# Push branch (set upstream)
git push -u origin <branch-name>
# Create PR
# In Codespaces: override token if GH_PAT is needed for cross-repo
gh pr create --base <base> --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"
Auth handling: If gh pr create fails with 403/422, retry with
GITHUB_TOKEN="" GH_TOKEN="${GH_PAT}" prefix (Codespaces token override).
After creation, output the PR URL.
gh pr view --web — open in browser (optional, ask user)development
Analyzes industry websites for design patterns, layout, typography, and content strategies using first-principles thinking. Use when researching website design, UI patterns, or competitive design analysis.
development
Audits website usability for UX optimization, covering forms, navigation, validation, and microcopy. Use when reviewing user experience, task completion flows, or interface friction points.
development
Audits website accessibility for WCAG 2.1 AA compliance, generating findings and code fixes. Use when reviewing accessibility, keyboard navigation, screen reader compatibility, or inclusive design.
development
Writes tests following TDD (using vitest and @testing-library/react) best practices. Use when writing unit tests, integration tests, or component tests in TypeScript.