gencommit
Generates Conventional Commits-style Git commit messages by providing specifications, steps, templates, and examples from code changes.
Instructions
当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范说明、步骤、输出模板和示例,供 AI 根据变更内容生成最终 commit message。它不直接代写最终消息,也不应被判定为空结果
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gencommit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Commit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别 | |
| changes | No | 代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff | |
| project_root | No | 可选,目标 Git 仓库根目录或其子目录。未提供 changes 时用于确认当前项目确实是 Git 仓库 |