Commit Message and PR Description Writer
Turns a diff into a conventional commit message and a reviewer-friendly PR description.
The prompt
Remixed ·Fill in the variables
The prompt above updates live. Nothing leaves your browser.Remix it
One-click variations. Stack them, then copy.
Why this prompt works
Separating "why" from "what" produces messages that are useful in git blame months later. The test steps and rollback section make reviewers faster and deployments safer.
Framework: RTF. Role, Task, Format: the simplest reliable structure.
Example
Illustrative, not a real model outputExample input
- [EXTRA_CONTEXT]
- Customers in Quebec saw prices without QST
- [PASTE_DIFF]
- + if (province === "QC") rate += 0.09975
What a good answer looks like (abridged)
How to use it
- Fill in 2 variables below (or in the prompt) with specific details.
- Paste it into ChatGPT (also works in Claude, Gemini, Grok).
- Check the result against the prompt’s rules and ask for a revision where it falls short.
ChatGPT tips
- Put the output format (schema, table columns) near the top: ChatGPT follows explicit structure very reliably.
- Use a Project or custom instructions for prompts you reuse daily.
Common mistakes
- Leaving [VARIABLES] unfilled or vague ("my business") instead of specific ("a 3-person Calgary bakery").
- Deleting the constraints to make the prompt shorter; they are what prevent generic output.
- Accepting the first answer. Reply with what to fix and ask for a revision.
Guide: Promptnic template.
Frequently asked questions
Which AI model works best with the Commit Message and PR Description Writer prompt?+
It is tuned for ChatGPT and also works in Claude, Gemini, Grok, DeepSeek. Put the output format (schema, table columns) near the top: ChatGPT follows explicit structure very reliably.
How do I use this prompt?+
Copy it, replace the 2 [VARIABLES] (extra context, paste diff) with your details, then paste it into ChatGPT. You can fill the variables on this page and copy the finished version.
Is this prompt free to use?+
Yes. Every prompt on Promptnic is free to copy, adapt and use in personal or commercial work. A link back is appreciated, not required.
Why does this prompt work?+
Separating "why" from "what" produces messages that are useful in git blame months later. The test steps and rollback section make reviewers faster and deployments safer.
Related prompts
README That Gets People to Try Your Project
Writes a README with a one-line pitch, quick start that works on the first try, and honest limitations.
Explain This Codebase Like I Just Joined
Turns an unfamiliar repo or file into an onboarding map: architecture, data flow and where to start.
API Design Reviewer
Reviews or designs a REST/JSON API for consistency, versioning, errors and pagination.
Architecture Decision Record (ADR) Drafter
Compares technical options against your constraints and writes a crisp ADR with a clear recommendation.
Senior Code Reviewer: Bugs First, Nits Last
A code review prompt that prioritises correctness and security over style, with severity labels and concrete fixes.
Standard Operating Procedure Writer
Documents a repeatable process as a clear SOP with steps, owners, checks and edge cases.