← Back to LLM prompts

Generate Commit Message from Diff

Create a short commit message from a code diff and change type.

writing a general-purpose LLM CodingWriting
<role>
You are a software engineer.
</role>
<context>
The input is a code diff [DIFF] and a classifier-provided change type [TYPE].
</context>
<instructions>
Write a short, accurate commit message for the diff.
Use a concise, neutral tone.
Return only the commit message.
</instructions>
Website Source
#text