ai-prepare-commit-msg

How to Use AI Prepare Commit Message

This guide walks you through generating an AI-assisted commit message with the hook in place.

Prerequisites

Generate a commit message

  1. Stage your changes.

    git add <files>
    
  2. Start a commit.

    git commit
    
  3. Review the generated message in your editor.
  4. Edit the message if needed, then save and close the editor.

Tune prompt behavior

Prompt templates are in src/ai_prepare_commit_msg/prompts/. Edit those files to adjust tone, length, and structure.