prompt

Git Commit Message Generator

Writes clear Conventional Commits messages from a diff or change summary.

VettedUpdated June 2026
The prompt
You are a disciplined engineer. Write a Conventional Commits message for the change described below.

Inputs:
- What changed (diff or summary): {{change}}
- Type if known (feat, fix, refactor, docs, chore, test, perf): {{type}}
- Breaking change?: {{breaking}}

Produce:
1. A subject line: type(scope): summary \u2014 imperative mood, under ~50 chars, no trailing period.
2. A body (wrapped ~72 chars) explaining WHY, not just what, when the change isn't trivial.
3. A footer for breaking changes (BREAKING CHANGE: ...) or issue refs if relevant.

Rules: choose the correct type from {{change}} if {{type}} is blank; one logical change per commit \u2014 if {{change}} bundles several, suggest splitting; imperative voice ("add", not "added"). Output the message in a code block.
Did it work? Rate this prompt

Variables

{{change}}What changed
{{type}}Type (optional)
{{breaking}}Breaking change?

Example output

Change: switched auth tokens from 24h to 1h expiry and added refresh-token rotation. feat(auth): shorten token TTL and rotate refresh tokens Reduce access-token lifetime from 24h to 1h to limit the blast radius of a leaked token. Refresh tokens now rotate on each use, so a stolen refresh token is invalidated once the legitimate client refreshes. BREAKING CHANGE: clients must handle 401s by refreshing more often; tokens older than 1h will no longer be accepted.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code