Use when the user wants to create a pull request with an auto-generated description for the current branch.
Load the writer skill: Skill(cpe:writer)
Create a pull request for the current branch with a well-written, auto-generated description.
Infer from the user's message:
main)Before creating the PR, verify the branch is push-ready:
# Check there are no uncommitted changes
git status --porcelain
# Confirm upstream is set or push-able
git remote -v
git branch --show-current
If there are uncommitted changes, ask the user to commit them first before proceeding.
Detect base branch:
git log --oneline HEAD..origin/main 2>/dev/null | wc -lGet the diff:
git log --oneline origin/main...HEAD
git diff origin/main...HEAD --stat
Write the PR title in conventional format (≤72 chars):
<type>(<scope>): <description>
Types: feat, fix, docs, refactor, test, ci, chore, perf
Write the PR body:
## What
[What changed — 2-4 bullets]
## Why
[The motivation — business reason, bug context, or design decision]
## How to test
[Step-by-step verification instructions for the reviewer]
## Notes
[Breaking changes, deploy dependencies, follow-up items — omit section if empty]
Push if not yet pushed:
git push -u origin HEAD
Create the PR:
gh pr create \
--title "<title>" \
--body "<body>" \
[--draft if requested] \
[--base <branch> if specified]
Display the PR URL and number to the user.