git_commit
Generate conventional commits with type and message, optionally commit specific files or bypass hooks, to enforce structured commit history.
Instructions
Create conventional commit (type: message) with Claude attribution.
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
Options:
files: commit specific files only (default: all changes)
skip_hooks: bypass pre-commit hooks via --no-verify
Returns: {sha, stats: {files_changed, insertions, deletions}, message}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"message": "<message>"
},
"name": "git_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| message | Yes | ||
| files | No | ||
| skip_hooks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||