--- name: pr description: "Writes and opens or updates a high-quality pull request from the branch diff: plain summary, visual change shape, verification proof, and merge risk. Use when opening, rewriting, or tightening a PR description." user-invocable: true argument-hint: "[branch, base, issue, or PR]" disable-model-invocation: true --- # Pull request Write a pull request a reviewer can understand in under a minute. Write in plain, simplified technical English. ## Steps 1. Inspect `git diff ...HEAD`, the branch commits, and the linked spec or ticket. Never write a PR description from memory. 2. Check the diff for stray debug logs, unintended files, or out-of-scope edits. Flag or clean them before opening. 3. Write the PR title and body using the repository's PR template, or the template below if it has none. 4. Link any completed issue (`Closes #...`, Linear ID, or Jira key). 5. If the change includes UI that benefits from visual proof, capture screenshots (do not commit temporary image files) and attach them with `gh pr create --attach` or `gh pr edit --attach` (for example `--attach './shot.png#Alt text'`, or reference `![alt](./shot.png)` in the body so `gh` rewrites the path to the uploaded asset). 6. Push the branch and open or update the PR, unless the user only asked for the text. Open as a draft if local checks have not passed yet; otherwise open or mark it ready for review. Never merge. ## Template ```markdown ## What ## Why ## What changed ## Where to look closely ## Verification ## Risk ``` ## Rules - Lead with the user-visible outcome, not a file-by-file tour. - State only checks you actually ran. List anything skipped under `Not verified`. - Keep the title under 72 characters and outcome-focused. - Delete placeholder comments before posting. ## Return The PR URL (or drafted title and body), linked issues, risk level, and anything unverified.