How to Use AI Prepare Commit Message
This guide walks you through generating an AI-assisted commit message with the hook in place.
Prerequisites
- You installed the hook. See How to install.
- You have changes ready to commit in your repository.
- You configured model and API settings. See the Configuration reference.
Generate a commit message
-
Stage your changes.
git add <files> -
Start a commit.
git commit - Review the generated message in your editor.
- 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.