| name | commit-pr |
| description | Stage changes, commit, push, and create/update PR with review-ready hygiene. |
Commit PR
Trigger
Use when implementation branch is ready for publish.
Inputs
- Staged diff and current branch.
- Task completion summary.
Outputs
- Commit with concise message.
- Pushed branch and PR URL.
Procedure
- Validate branch not protected unless forced.
- Show and confirm staged set.
- Stage all only if
--stage-all.
- Commit with concise generated message.
- Push and create/update PR.
Guardrails
- Refuse on protected branch unless explicit override.
- Do not commit if gh unavailable or unauthenticated.
Success criteria
- Branch is pushed and PR exists with review-ready body.
Prefer Superpowers
- Use
receiving-code-review and requesting-code-review for review lifecycle.
Avoid scope creep
- No unrelated file changes after commit.