Skip to content
Promptnic

Commit Message and PR Description Writer

Turns a diff into a conventional commit message and a reviewer-friendly PR description.

Open in:ChatGPTClaudeGrokPerplexity

The prompt

From the diff below, write: 1. A commit message in Conventional Commits format (type(scope): summary, max 72 chars), with a short body explaining why, not what. 2. A pull request description with: Summary, Why, How to test (numbered steps), Risks/rollback, Screenshots needed (yes/no). Context the diff does not show: [EXTRA_CONTEXT] Diff: [PASTE_DIFF]

Fill in the variables

The prompt above updates live. Nothing leaves your browser.

Remix it

One-click variations. Stack them, then copy.

Open in Prompt Lab →

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 output

Example 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)

fix(tax): apply QST for Quebec orders Quebec orders only charged GST, undercharging by 9.975%. ## How to test 1. Create a cart with a QC address ...

How to use it

  1. Fill in 2 variables below (or in the prompt) with specific details.
  2. Paste it into ChatGPT (also works in Claude, Gemini, Grok).
  3. 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