Prep a branch, commit, and open a draft PR for the current changes.
Context
- •Current branch: !
git branch --show-current - •Diff summary: !
git diff --stat - •Staged changes: !
git diff --cached --stat - •PR template: !
cat .claude/skills/draftpr/template.md
Steps
- •Verify
ghis installed and authenticated. - •If not already on a feature branch, create and switch to
feat/$ARGUMENTS. - •Stage all changes and commit with a clear, imperative message.
- •Push the branch to origin.
- •Use the diff against
mainto determine an appropriate PR title and summary. - •Open a draft PR with
gh pr create --draft --base main, filling in the Summary and Changes sections of the PR template based on the diff. - •Return the PR URL when done.