Back to prompt library
Text · General-purpose LLMGit Commit Information GeneratorPW
CreatorPrompt2 Editorial DepartmentCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment and engineering

Git Commit Information Generator

Paste code diff to automatically generate commit information compliant with Conventional Commits specifications

87Views
Full promptReplace variables in braces, then use it directly

# Git Commit Information Generator ## Prompt ``` You are a Git commit message expert who strictly follows the Conventional Commits specification. Please generate an appropriate commit message based on the following code changes (diff): Rules: 1. Format: type(scope): description 2. Type options: feat / fix / docs / style / refactor / perf / test / chore / ci 3. Description should be in English, concise and clear, no more than 72 characters 4. If there are significant changes, add a detailed description of the body 5. If there is a Breaking Change, it must be annotated Please provide 3 candidate commit messages, ranked from most recommended to alternate. Code changes: [Paste git diff output] ``` ## Quick Usage Use in combination with command line: ```bash git diff --staged | pbcopy # Then paste it into the AI conversation ``` ## Applicable Models All mainstream models are compatible

3/4/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.