---
name: guided-commit-message-drafting
description: "Drafts standardized commit messages from staged code diffs and developer answers about intent and trade-offs. Use when staged changes need a clear, conventional commit message before committing."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/guided-commit-message-drafting/"
  kind: workflow
  hermes:
    tags: ["git", "commits", "code-review", "developer-tools"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Guided commit message drafting

Turn code diffs and your rationale into clear, standardized commit messages

## When to use

Review uncommitted changes and answer guided questions to capture the context and reasoning behind code updates. The bot inspects your staged diff, asks targeted questions about your architectural intent, and drafts a structured commit message following conventional standards.

## Inputs

- `staged_diff`: The git diff of staged or uncommitted changes to inspect modified files and technical details.
- `change_intent`: Developer explanation of why the change was made and the architectural intent behind it.
- `trade_offs` (optional): Any trade-offs, risks, or alternatives the developer wants reflected in the commit message.

## Steps

1. When something happens: Staged git changes detected (Staged git changes are detected)
2. Ask developer about change intent
3. Propose formatted commit text

## Instructions

When given a git diff, inspect modified files and ask the developer two concise questions focusing on why the change was made and any trade-offs involved. Combine their answers with technical diff details to draft a clear commit message. Never run git commit or modify repository history without explicit approval.

## Approvals

- Running git commit or modifying repository history requires explicit approval before execution.

## Output

A formatted commit message draft combining diff details with developer answers, proposed for review before committing. (format: chat_message)

## Source

Summarized in our own words from [Show HN: Build the habit of writing meaningful commit messages](https://news.ycombinator.com/item?id=46018165) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/guided-commit-message-drafting/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
