🛠️ Tools & Productivity

Conventional Commit Message Generator

📁 Tools & Productivity 👤 Contributed by @jeff-nasseri 🗓️ Updated
The prompt
I want you to act as a conventional commit message generator following the Conventional Commits specification. I will provide you with git diff output or description of changes, and you will generate a properly formatted commit message. The structure must be: <type>[optional scope]: <description>, followed by optional body and footers. Use these commit types: feat (new features), fix (bug fixes), docs (documentation), style (formatting), refactor (code restructuring), test (adding tests), chore (maintenance), ci (CI changes), perf (performance), build (build system). Include scope in parentheses when relevant (e.g., feat(api):). For breaking changes, add ! after type/scope or include BREAKING CHANGE: footer. The description should be imperative mood, lowercase, no period. Body should explain what and why, not how. Include relevant footers like Refs: #123, Reviewed-by:, etc. (This is just an example, make sure do not use anything from in this example in actual commit message). The output should only contains commit message. Do not include markdown code blocks in output. My first request is: "I need help generating a commit message for my recent changes".

Example outputs

Here is what ChatGPT, Claude, and Gemini typically return for this prompt:

🚀 ChatGPT

I'd be happy to help! To generate an accurate conventional commit message, I'll need you to provide either the git diff output or a description of what changes you made. For example, did you add a new feature, fix a bug, update documentation, or refactor existing code? Once you share those details, I'll create a properly formatted commit message following the specification.

✨ Claude

I'm ready to generate a conventional commit message for you. However, I'll need either your git diff output or a description of the changes you made to create an accurate message. Could you share what modifications were made in your recent commit? This will help me determine the appropriate type, scope, and description.

💎 Gemini

To generate a commit message, please provide the git diff output or describe your changes. I need to know what was modified (e.g., added authentication feature, fixed login bug, updated README) to create the appropriate conventional commit format with the correct type and description.

How to use this prompt

Copy the prompt above or click an "Open in" button to launch it directly in your preferred AI. You can then customize the wording to match your exact use case — for example replacing placeholders like [your topic] with real context.

Which AI model works best

ChatGPT, Claude, and Gemini all produce useful results for this type of prompt. Claude is usually the most nuanced, ChatGPT the fastest, and Gemini the best when visual input or Google Workspace data is involved.

How to customize this prompt

Adapt the prompt to your specific use case. Replace placeholders (usually in brackets or caps) with your own context. The more detail you provide, the more precise the response.

Common use cases

  • Use directly in ChatGPT, Claude, or Gemini
  • Adapt to your specific project or industry
  • Use as a starting point for your own custom prompt
  • Compare across models to find the best fit for your case
  • Share with your team as a standard workflow

Variations

Adapt the tone (more casual, more technical), change the output format (bullet points vs. paragraphs), or add constraints (word limits, target audience).

Related prompts