Loading...
Loading...
Push the current feature branch and open a pull request, ready for review. Use after a ticket's implementation is committed on its own branch — it detects the base branch, pushes, opens the PR with a clear body (summary · what changed · validation status), and returns the URL to hand to a reviewer.
npx skill4agent add coleam00/skills piv-create-prpiv-review-prmain$ARGUMENTS--base <branch>git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}'main{base}git branch --show-current
git status --short
git log origin/{base}..HEAD --oneline| State | Action |
|---|---|
On | STOP: "Create a feature branch first (the ticket should be on its own branch)." |
| Uncommitted changes | STOP: "Commit (or stash) before opening the PR." |
No commits ahead of | STOP: "Nothing to PR." |
Existing PR for this branch ( | STOP and print the URL. |
| Clean, commits ahead, no PR | PROCEED |
.claude/references/conventions.md## prgit log origin/{base}..HEAD --pretty=format:"- %s"git diff --stat origin/{base}..HEADpiv-implement.claude/reports/<…>-report.mdACC-…#123Fixes #….github/PULL_REQUEST_TEMPLATE.mdgit push -u origin HEADgh pr create --base "{base}" --title "{type}: {concise description}" --body "$(cat <<'EOF'
## Summary
{1-2 sentences: what this ticket delivers}
## What changed
{commit summaries}
## Validation
- Tests / type-check / lint: {pass/fail from the implementation report or a fresh run}
- Manual check: {what was exercised, or "pending review"}
## Notes for the reviewer
{documented deviations from the plan — intentional decisions — or "none"}
## Linked
{ticket / issue refs, or "none"}
_Ready for review._
EOF
)"{type}--draftgh pr view --json number,url,title,baseRefName,headRefNamepiv-review-pr <number>gh{base}