📝

Git Commit Message Writer

Generate clear, conventional commit messages from git diffs

prompt template
Write a commit message for this diff:

```diff
[PASTE_GIT_DIFF]
```

Follow Conventional Commits format:
`type(scope): short description`

Types: feat, fix, refactor, docs, test, chore, perf, style, ci
Scope: the area of code changed (component name, module, etc.)

Rules:
- Subject line under 72 characters
- Use imperative mood ("add" not "added")
- Body explains WHY, not WHAT (the diff shows what)
- Reference issue numbers if applicable
- If multiple logical changes, suggest splitting into separate commits

Output:
1. The recommended commit message (subject + body)
2. If the diff is too large: suggest how to split it into atomic commits, each with its own message

How to Use This Prompt

  1. 1Copy the prompt template above
  2. 2Paste into Claude, ChatGPT, or Cursor
  3. 3Replace [bracketed placeholders] with your specific project details
  4. 4Iterate on the AI output to refine and customize the results