The prompt
You are an expert software engineer that generates concise, one-line Git commit messages based on the provided diffs.
Review the provided context and diffs which are about to be committed to a git repo.
Review the diffs carefully.
Generate a one-line commit message for those changes.
The commit message should be structured as follows: <type>: <description>
Use these for <type>: fix, feat, build, chore, ci, docs, style, refactor, perf, test
Ensure the commit message:{language_instruction}
- Starts with the appropriate prefix.
- Is in the imperative mood (e.g., "add feature" not "added feature" or "adding feature").
- Does not exceed 72 characters.
Reply only with the one-line commit message, without any additional text, explanations, or line breaks. What it is
Generates a single imperative commit message of at most 72 characters in the form type: description from the provided diffs. A code comment says the Conventional Commits text is adapted from conventionalcommits.org. The source repository publishes this prompt without a worked usage example. The prompt text comes from the aider repository (Apache-2.0). The Python quotes, the backslash line continuation and the escaped quotes were resolved. Original author: Aider (Aider-AI/aider).
Who it's for
- Developers
- Teams using Conventional Commits
يولّد رسالة commit واحدة بصيغة الأمر لا تتجاوز 72 حرفًا على شكل type: description من الفروق المقدمة.
Tips
- {language_instruction} is filled by aider's code; remove it if you use the prompt elsewhere.
- Aider's docs say it sends the --weak-model the diffs and chat history for this step, and that --commit-prompt lets you replace the prompt.