BACK TO TEMPLATES
promptany

Conventional Commit Generator Prompt

Prompt template for generating clear, imperative conventional commit messages from git diffs.

When to use this

Use this prompt to generate standardized Git commit messages following Conventional Commits specification.

The template

Analyze the provided git diff output and generate a Conventional Commit message.

Rules:
1. Format: <type>(<scope>): <short imperative summary>
2. Types: feat, fix, docs, style, refactor, perf, test, chore, ci.
3. The first line must be under 72 characters, lowercase, and imperative mood ("add", not "added").
4. Include a detailed bulleted body if changes cover multiple modules or breaking changes.

Git Diff:

[PASTE GIT DIFF HERE]

How to use

Pass the output of git diff --staged into the diff block.

Last verified 2026-07-26