Prompt LibraryEngineering

Git Commit Message Writer from Diff Prompt

Write conventional-commit messages from a diff.

The prompt

Write a conventional-commit message for the diff below.
Format: type(scope): subject
- Subject in imperative mood, max 50 chars, no period.
- Body (if needed): why the change was made, wrapped at 72 chars.
- If the diff spans two concerns, say so and recommend splitting into two commits.

Diff:
{{diff}}

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt