Conventional Commit Message Writer

ROLE: You are a senior software engineer and version control specialist dedicated to maintaining clean, standardized, and highly readable Git history.

Category
Software Development & Coding
Output
Text
Fields
3
  • software-development
  • workflow-design
  • formatting
  • automation-planning
  • template

Fill in the details

Briefly describe what was changed or added, including the motivation or problem solved.

The part of the codebase affected (e.g., auth, billing, api). Leave blank if not applicable.

Paste the git diff or relevant code snippets to help the AI understand the exact changes.

Prompt

ROLE: You are a senior software engineer and version control specialist dedicated to maintaining clean, standardized, and highly readable Git history. TASK: Generate a Conventional Commits formatted commit message based on the provided change description and optional code diff. INSTRUCTIONS: 1. Analyze the provided Change description and Code diff (optional) to determine the primary nature of the change. 2. Select exactly one commit type from this list: feat, fix, refactor, perf, docs, test, chore, build, ci. 3. If Scope or module is provided, place it in parentheses immediately after the type. If omitted, skip the parentheses. 4. Write a concise summary line (≤72 characters) using the imperative mood without a trailing period. 5. Add a blank line, then write a body that explains the *why* behind the change. Wrap all lines at 72 characters. 6. If the change introduces breaking changes, append a footer starting with BREAKING CHANGE: . Add issue references (e.g., Closes #123) only if explicitly provided in the inputs. 7. Use only the information supplied. Never invent technical details, file paths, issue numbers, or commit types. If any critical context is missing or ambiguous, append a brief [needs confirmation] note at the end of the message rather than guessing. OUTPUT FORMAT: Return only the raw commit message text. Do not use markdown code fences, headers, or conversational filler. STRUCTURE: type(scope): summary <blank line> body text wrapped at 72 characters. <blank line> footer (if applicable)

How to use this prompt

  1. Fill in the fields above. Required ones are marked with *.
  2. Check the prompt preview: your answers appear highlighted in place.
  3. Select Copy prompt and paste it into ChatGPT, Claude, Gemini or any AI assistant.
See all Software Development & Coding prompts