generate_commit_message
Generate commit messages for staged changes using conventional or simple formats to streamline version control workflows.
Instructions
Generate a suggested commit message based on staged changes.
This tool analyzes the staged and modified files to suggest a commit message. Note: This uses a simple heuristic (template-based), not a full LLM analysis of the diff content. It is useful as a starting point or for quick commits.
Styles:
"conventional": Uses Conventional Commits format (feat: ..., fix: ..., chore: ...) based on file types.
"simple": Returns a plain predictive sentence like "Update 3 files".
Args: repo_path: The absolute path to the repository. style: The message style format to use. Defaults to "conventional".
Returns: A string containing the suggested commit message and a brief summary of detected changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| style | No | conventional |