generate_commit_message
Analyzes staged git changes to suggest a conventional commit message in format type(scope): description. Auto-detects type and scope from diffs, with options to override.
Instructions
Analyses staged changes and produces a conventional commit message suggestion.
Reads staged diffs and file metadata to generate a commit message in the
format type(scope): description. The LLM should use the returned analysis
to craft the final message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the Git repository | |
| commit_type | No | Override the conventional commit type (e.g. 'feat', 'fix', 'docs'). Auto-detected if omitted. | |
| scope | No | Override the scope (e.g. 'auth', 'api'). Auto-detected from changed files if omitted. | |
| lite_mode | No | Skip loading the full diff for faster analysis. Useful for large repos. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |