Try it: messy draft → one hotkey → polished
Before — your draft
ok so this fixes the double charge thing (#482). problem was the webhook handler wasnt idempotent so when stripe retried we created a second invoice. added an idempotency check on event id, stored in new processed_events table. need to run the migration before deploy!! also renamed handleWebhook -> handleStripeEvent bc it was confusing. tested locally with stripe cli replaying the same event 5x, only one invoice.
After — PR Description
In the real app this happens in place — in Gmail, Word, Outlook, Slack or your terminal — with Alt+Shift+Z / ⌥⇧Z. No copy-paste, no prompt.
What the PR Description lens does
It reorganizes your notes into the sections reviewers look for — summary, motivation, list of changes, testing notes and any migration steps — as Markdown that renders on GitHub, GitLab and Bitbucket. Every change you mention is kept, grouped, and stripped of the stream-of-consciousness. Things a reviewer should verify become checkboxes. It works only from what you wrote, so if your notes say nothing about testing, add a line before you transform.
- In-app name
- PR Description
- Directory description
- Clean pull request summary with context and changes
- Category
- Software Engineering · 25 lenses
- Lens id
pr-description
When to use the PR Description lens, and when not to
When to use it
- You're about to open a PR and the description box contains “fixes stuff” and a ticket number.
- The diff touches several areas and the reviewer needs to know which change is the real one and which are fallout.
- There's a migration, env var or config change that whoever deploys must see before merging.
- Your team requires a PR template and you'd rather fill it from notes than section by section.
- You're handing a branch to someone else and the PR description doubles as the handoff.
When not to
- You're writing for customers. PR descriptions are for reviewers; Release Notes turns merged changes into benefits users understand.
- You're reviewing someone else's PR. Code Reviewer gives structured feedback with severity labels.
- It's a one-line typo fix. A clear title is enough — don't pad a trivial PR with empty sections.
3 real drafts
All PR Description examples
Before
ok so this fixes the double charge thing (#482). problem was the webhook handler wasnt idempotent so when stripe retried we created a second invoice. added an idempotency check on event id, stored in new processed_events table. need to run the migration before deploy!! also renamed handleWebhook -> handleStripeEvent bc it was confusing. tested locally with stripe cli replaying the same event 5x, only one invoice.
After
Fix duplicate invoices from retried Stripe webhooks (#482) Why Stripe retries webhook deliveries. Our handler wasn't idempotent, so a retried event created a second invoice and the customer was charged twice. What changed - Added an idempotency check keyed on the Stripe event ID - New processed_events table stores handled event IDs - Renamed handleWebhook → handleStripeEvent for clarity (no behavior change) Testing - Replayed the same event 5× locally with the Stripe CLI; exactly one invoice was created ⚠️ Migration Run the processed_events migration before deploying. Reviewer checklist - [ ] Idempotency check runs before an invoice is created - [ ] Migration is safe to run against production data - [ ] No remaining references to handleWebhook
Before
dark mode for settings page. used the existing theme tokens mostly but had to add 2 new ones for the toggle bg. didnt touch the other pages yet thats next PR. screenshots attached. the switch component had a focus ring bug in safari too, fixed that while i was in there
After
Add dark mode to the Settings page Why Starts dark mode support with the Settings page. Other pages follow in a separate MR. What changed - Settings page now uses the existing theme tokens - Added 2 new tokens for the toggle background - Fixed the Switch component's focus ring in Safari (found while working on this page) Testing - Screenshots attached Out of scope - Dark mode for the remaining pages (next MR) Reviewer checklist - [ ] New toggle tokens follow the existing naming - [ ] Focus ring fix doesn't change Switch behavior in other browsers
Before
9f3c2e1 bump node 18->20 in ci + dockerfile 4b7a0d8 update jest, old version broke on node 20 e21c9f4 regen snapshots (whitespace only, no real changes) a08d6b3 engines field -> node 20 7c5e113 wip
After
Upgrade Node 18 → 20 in CI and Docker What changed - CI and Dockerfile now use Node 20 - Updated Jest (the previous version broke on Node 20) - package.json engines field updated for Node 20 - Regenerated some snapshot tests (whitespace-only differences) Testing - [Link to passing CI run on Node 20] Reviewer checklist - [ ] Snapshot diffs are whitespace-only - [ ] Deploy environments are ready for Node 20
Hotkey workflow: PR Description in any app
Select the text, or just keep typing
Gmail, Slack, LinkedIn and Google Docs work through the Chrome extension; Word, Outlook, Mail, VS Code and terminals through the Mac, Windows and Linux apps. Zero Shot suggests lenses as you type.
Press Alt+Shift+Z / ⌥⇧Z, or Alt+Shift+L and type “PR Description”
The hotkey applies the lens Zero Shot suggests first for your text. To run PR Description specifically, open Spotlight, type its name and pick it. Either way the rewrite replaces your text in place; there is no prompt to write. If you use PR Description daily, pin it in your dashboard's My Lenses tab so it stays in the set your hotkey cycles through.
Press Alt+T to compare
Cycles through the 5 cached lens results instantly, so you can see PR Description next to the alternatives before you send.
Press Alt+U to undo
Puts back your exact original text, whichever lens you ended on.
In the terminal (zs CLI)
zs -l pr-description "your draft"
echo "your draft" | zs -l pr-description -c # also copies the result
zs -l pr-description --local --model llama3.2 "your draft" # offline via Ollama, $0-c copies the rewrite to your clipboard as well as printing it. --local talks to Ollama at http://127.0.0.1:11434/v1 and keeps the text on your machine, but your local model only gets the lens name, not Zero Shot's full PR Description instructions, so expect a rougher approximation than the default cloud mode. Setup for every platform is on the setup page.
Tips for better PR Description rewrites
- Give it the why. “Stripe retries webhooks” turns a list of changes into something a reviewer can judge; a bare list of file names can't be rescued by any rewrite.
- Mention migrations, env vars and feature flags explicitly, even in one word. They get their own section so nobody merges and deploys without them.
- In a terminal, git log main..HEAD --oneline | zs -l pr-description -c puts a first draft on your clipboard to paste into the PR form.
- For a tiny PR, select the result and run Concise from Spotlight (Alt+Shift+L) to drop the sections you don't need.
Related lenses
- Code Reviewer-l code-reviewerTechnical code review with actionable feedbackExamples & how to use
- Release Notes-l release-notesUser-facing release notes for product updatesExamples & how to use
- Bug Report-l bug-reportDetailed bug report with reproduction steps and expected behaviorExamples & how to use
- Jira-l jiraProduct ticket formatExamples & how to use
- Senior Dev-l seniordevTechnical specificationExamples & how to use
More Software Engineering lenses
None of these has a full guide yet, but each runs the same way: hotkey, Spotlight or zs -l <id>. Hit Try to load one into the playground below, or browse all 996 in the lens directory.
API Docs
api-docsClean REST/GraphQL API documentation
Architect Brief
architect-briefHigh-level system architecture summary
Changelog Entry
changelog-entryStandardized changelog in Keep a Changelog format
Code Comment
code-commentClear inline and block comments for code documentation
Commit Message
commit-messageConventional commit message with scope and body
Debug Log
debug-logStructured debugging analysis with hypothesis and next steps
Deployment Notes
deployment-notesPre/post deployment checklist and runbook
Design Doc
design-docEngineering design document with alternatives analysis
Try the PR Description lens on your own draft
Paste your own draft below. 50 free transforms, no card — the same rewrite runs in any app with Alt+Shift+Z (⌥⇧Z on Mac).
Try it yourself
Type or paste text, then use the hotkeys to transform
Frequently asked questions
What should a pull request description include?
A one-line summary, why the change is needed, what changed, how you tested it, and anything the deployer must do (migrations, config, flags). Link the issue. A reviewer should be able to decide where to look closely without opening every file.
How long should a PR description be?
Long enough that a reviewer gets it in about 30 seconds. For most PRs that's a summary line plus 3–8 bullets. Large or risky changes deserve more context; a typo fix needs only a title.
Does the PR Description lens read my code?
No. It rewrites the text you select or type — your notes, commit messages, or a git log piped into the zs CLI. It has no access to your repository, so anything important needs to be in the notes.
Can I use it right in GitHub's PR form?
Yes. With the Mac, Windows or Linux app, type your notes in the description box, select them and press Alt+Shift+Z (⌥⇧Z on Mac). The output is Markdown, so check it in the Preview tab before you submit.
Should my repo have a PR template?
A template keeps descriptions consistent across a team, and the lens's sections line up with the common ones (summary, changes, testing). If your template has extra headings, keep it and use the lens output to fill it in rather than replacing it.
