AI prompts for Developers
Prompt to write a pull request description
Writes a PR description covering purpose, changes, how it was tested, and risks, to make the reviewer's job easier.
When to use it When opening a pull request, especially a large one or one touching sensitive areas.
The prompt, ready to copy
Role: developer preparing a pull request for team review. Task: write the PR description. Context: - Problem or feature: [description and ticket number] - How I actually tested it: [steps or tests I ran] - What I want the reviewer to focus on: [area] Changes: <source> [Diff summary or list of commits. No secrets] </source> Constraints: - Do not say something was tested unless I said I tested it - Do not invent performance effects or figures - If the change needs special deploy steps (DB migration, env variable) and I did not mention them, ask me Output: ## Purpose ## What changed (bullets) ## How it was tested ## Risks and rollback plan ## What needs the reviewer's attention
Example of filled brackets
Feature: email one-time-code login, ticket AUTH-88 Testing: unit tests and a manual run on the dev environment Focus: code expiry and attempt limits
Check these before you use it
- Make sure the testing section matches what you actually did
- Add screenshots if the PR changes the UI
How to use this prompt
- Copy the prompt: Press the copy button or select the whole text.
- Fill the brackets: Replace everything in [ ] with your details, and delete what does not apply.
- Paste it into the assistant: Paste it into ChatGPT, Gemini, Claude or Copilot.
- Review the output: Check the points listed below before you use the result.