Collapse the PR ritual into one /pr command
Diff → commit → push → open PR is the same six commands every time. A `.cursor/commands/pr.md` file makes it `/pr`.
- Type: Prompt
- Tags: Coding Agent Hacks, Intermediate, Cursor
- Updated: 2026-10-01
Prompt
Diff → commit → push → open PR is the same six commands every time. A `.cursor/commands/pr.md` file makes it `/pr`. Cursor's Head of Education shared a tiny custom command that handles the whole PR ritual. Drop a markdown file at `.cursor/commands/pr.md` describing the steps. Type `/pr` in chat and the agent runs git diff, writes a commit message from the changes, pushes, and uses `gh pr create` to open the PR. Implementation example: # .cursor/commands/pr.md Create a pull request for the current changes. 1. Look at the staged and unstaged changes with `git diff` 2. Write a clear commit message based on what changed 3. Commit and push to the current branch 4. Use `gh pr create` to open a pull request with title/description 5. Return the PR URL when done
More prompts
- Expense Report Automation System — Save More Time
- Meeting Scheduling Link Standardization — Save More Time
- Invoice Generation and Delivery Automation — Save More Time
- Document Template Automation Library — Save More Time
- Calendar Management Automation Rules — Save More Time
- File Organization and Naming System — Save More Time
- Recurring Payment Automation Setup — Save More Time
- Data Entry Elimination Framework — Save More Time