How to Write a Pull Request Description with AI A developer outlines a workflow using AI tools like ChatGPT, Claude, or Gemini to generate pull request descriptions from git diffs, reducing writing time from 15 minutes to under 2 minutes. The method involves extracting the diff, prompting an AI with a structured template, and optionally creating a PR template for team consistency. The approach aims to improve code review quality by lowering the friction of writing detailed descriptions. Writing a good PR description takes longer than it should. You've already done the hard work — the code is done — but now you're staring at a blank text box trying to summarize context, motivation, and testing notes while your brain is already on the next task. AI handles this well. Here's a step-by-step walkthrough you can use today. Bad PR descriptions slow down review cycles. Reviewers ask questions that are already answered in the diff, or they approve without really understanding the change. The fix isn't discipline — it's reducing the friction of writing a good description in the first place. Start by pulling the diff between your branch and main: git diff main...HEAD pr diff.txt If the diff is large 500+ lines , focus on the meaningful parts — skip lockfile changes and generated files: git diff main...HEAD -- ' .ts' ' .py' ' .go' pr diff.txt Open your AI tool of choice ChatGPT, Claude, Gemini — all work here and use this prompt: You are a senior engineer writing a pull request description for a code review. Here is the diff: