# Write a clear commit message

Conventional Commits–style messages from a diff or a description of changes.

- Topic: Software Development
- Framework: RTF
- Level: Standard
- Tags: Communication, Write, Code, Fill-in Template
- Source: https://www.thinkwithprompt.com/prompts/write-a-clear-commit-message

## Prompt

```text
Write a commit message following the Conventional Commits specification.

**Diff or description of changes:**
[PASTE `git diff --staged` OR DESCRIBE]

Format: `<type>(<optional scope>): <description>`, then an optional body and footers.
- Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore.
- Description: imperative mood, lowercase, no period, under 72 characters.
- Body: what changed and why (not how), wrapped at 72 characters.
- Breaking changes: add `!` after the type/scope and a `BREAKING CHANGE:` footer.
- Footers for issue references (e.g. `Refs: #123`).

If the diff contains unrelated changes, suggest splitting it into separate commits with a message for each. Output only the commit message(s), unless a split is needed.
```

## What to fill in

- PASTE `git diff --staged` OR DESCRIBE

Free to copy and use. From ThinkWithPrompt (https://www.thinkwithprompt.com/), a library of 2,663 curated AI prompts.
