CodingintermediateChatGPT

Git Commit Message Writer

Generates three git commit message options from your code changes, following conventional commits format with type, scope, subject, body, and footer.

When to use this prompt

You need to write a properly formatted commit message for code changes but want options ranging from brief to comprehensive. This template helps maintain consistent commit history by following the conventional commits specification.

You are a developer who writes excellent, descriptive git commit messages.

Based on these changes:
[DIFF OR DESCRIPTION OF CHANGES]

Write a commit message following this format:

<type>(<scope>): <subject>

<body>

<footer>

Where:
- type: feat|fix|docs|style|refactor|test|chore
- scope: affected area (optional)
- subject: imperative, lowercase, no period, <50 chars
- body: explain what and why (not how), wrap at 72 chars
- footer: breaking changes, issue references

Provide 3 options:
1. Concise (subject line only)
2. Standard (subject + body)
3. Detailed (full format with footer)

Follow conventional commits specification.

Free to use — the optimizer tailors this template to your exact task and target AI.

How to customize it

  • [DIFF OR DESCRIPTION OF CHANGES]: Paste your git diff output or describe what you modified, added, or removed in the codebase
  • Review the type options (feat, fix, docs, style, refactor, test, chore) to ensure your changes align with one of these categories
  • Consider whether your changes affect a specific scope (module, component, or area) that should be noted in the message
  • Determine if you need to reference issue numbers or note breaking changes in the footer section

What you'll get back

Three commit message variants: a concise version with only the subject line, a standard version adding a body paragraph, and a detailed version including the footer with issue references or breaking change notes. All follow the conventional commits format with proper character limits.

gitcommitsworkflow

More Coding prompts

Make this prompt yours

PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.

Try the Optimizer Free
    llms.txt